hepmc - Diff between revs 427 and 432
Subversion Repositories:
| Rev 427 | Rev 432 | |||
|---|---|---|---|---|
| Line 44... | Line 44... | |||
| 44 | // pythia pyhepc routine convert common PYJETS in common HEPEVT | 44 | // pythia pyhepc routine convert common PYJETS in common HEPEVT | |
| 45 | call_pyhepc( 1 ); | 45 | call_pyhepc( 1 ); | |
| 46 | HepMC::GenEvent* evt = hepevtio.read_next_event(); | 46 | HepMC::GenEvent* evt = hepevtio.read_next_event(); | |
| 47 | // pythia uses GeV and mm | 47 | // pythia uses GeV and mm | |
| 48 | evt->use_units( HepMC::Units::GEV, HepMC::Units::MM); | 48 | evt->use_units( HepMC::Units::GEV, HepMC::Units::MM); | |
| - | 49 | // set a couple of arbitrary weights | ||
| - | 50 | evt->weights().push_back(0.456); | ||
| - | 51 | evt->weights()["test2"] = 0.8956; | ||
| 49 | // set number of multi parton interactions | 52 | // set number of multi parton interactions | |
| 50 | evt->set_mpi( pypars.msti[31-1] ); | 53 | evt->set_mpi( pypars.msti[31-1] ); | |
| 51 | // set cross section information | 54 | // set cross section information | |
| 52 | evt->set_cross_section( getPythiaCrossSection() ); | - | ||
| - | 55 | evt->set_cross_section( HepMC::getPythiaCrossSection() ); | ||
| 53 | // | 56 | // | |
| 54 | //.......................make some copies | 57 | //.......................make some copies | |
| 55 | evt->print(out1); | 58 | evt->print(out1); | |
| 56 | HepMC::GenEvent ec = (*evt); | 59 | HepMC::GenEvent ec = (*evt); | |
| 57 | ec.print(out2); | 60 | ec.print(out2); | |
