hepmc - Diff between revs 103 and 280
Subversion Repositories:
| Rev 103 | Rev 280 | |||
|---|---|---|---|---|
| Line 69... | Line 69... | |||
| 69 | << i << std::endl; | 69 | << i << std::endl; | |
| 70 | call_pyevnt(); // generate one event with Pythia | 70 | call_pyevnt(); // generate one event with Pythia | |
| 71 | // pythia pyhepc routine convert common PYJETS in common HEPEVT | 71 | // pythia pyhepc routine convert common PYJETS in common HEPEVT | |
| 72 | call_pyhepc( 1 ); | 72 | call_pyhepc( 1 ); | |
| 73 | HepMC::GenEvent* evt = hepevtio.read_next_event(); | 73 | HepMC::GenEvent* evt = hepevtio.read_next_event(); | |
| - | 74 | // pythia uses GeV and mm | ||
| - | 75 | evt->set_units( HepMC::MomentumUnits::GeV, HepMC::PositionUnits::mm); | ||
| 74 | // set number of multi parton interactions | 76 | // set number of multi parton interactions | |
| 75 | evt->set_mpi( pypars.msti[31-1] ); | 77 | evt->set_mpi( pypars.msti[31-1] ); | |
| 76 | // do event selection | 78 | // do event selection | |
| 77 | if ( is_good_event(evt) ) ++num_good_events; | 79 | if ( is_good_event(evt) ) ++num_good_events; | |
| 78 | // we also need to delete the created event from memory | 80 | // we also need to delete the created event from memory | |
