260 HepMC::HEPEVT_Wrapper::zero_everything();
264 std::vector<int> Py8PartonIdx;
265 Py8PartonIdx.clear();
266 std::vector<int> HEPEVTPartonIdx;
267 HEPEVTPartonIdx.clear();
273 int Py8PartonCounter = 0;
274 int HEPEVTPartonCounter = 0;
278 for (
int iprt=1; iprt<
event.size(); iprt++ )
281 if (
abs(part.status()) < 22 )
continue;
284 Py8PartonCounter = iprt;
290 for (
int iprt=2; iprt<hepeup.
NUP; iprt++ )
293 HepMC::HEPEVT_Wrapper::set_id( index, hepeup.
IDUP[iprt] );
294 HepMC::HEPEVT_Wrapper::set_status( index, 2 );
295 HepMC::HEPEVT_Wrapper::set_momentum( index, hepeup.
PUP[iprt][0], hepeup.
PUP[iprt][1], hepeup.
PUP[iprt][2], hepeup.
PUP[iprt][4] );
296 HepMC::HEPEVT_Wrapper::set_mass( index, hepeup.
PUP[iprt][4] );
298 HepMC::HEPEVT_Wrapper::set_parents( index, 0, 0 );
299 HepMC::HEPEVT_Wrapper::set_children( index, 0, 0 );
300 if ( hepeup.
MOTHUP[iprt].first > 2 && hepeup.
MOTHUP[iprt].second > 2 )
302 HEPEVTPartonCounter++;
305 Py8PartonIdx.push_back( Py8PartonCounter );
307 HEPEVTPartonIdx.push_back( HEPEVTPartonCounter);
308 HEPEVTPartonCounter++;
311 HepMC::HEPEVT_Wrapper::set_number_entries( index );
316 for (
int iprt=1; iprt<workEvent.size(); iprt++ )
319 const Particle& part = workEvent[iprt];
323 if ( part.status() < 51 )
continue;
325 HepMC::HEPEVT_Wrapper::set_id( index, part.id() );
328 HepMC::HEPEVT_Wrapper::set_status( index, 1 );
329 HepMC::HEPEVT_Wrapper::set_momentum( index, part.px(), part.py(), part.pz(), part.e() );
330 HepMC::HEPEVT_Wrapper::set_mass( index, part.m() );
331 HepMC::HEPEVT_Wrapper::set_position( index, part.xProd(), part.yProd(), part.zProd(), part.tProd() );
332 HepMC::HEPEVT_Wrapper::set_parents( index, 0, 0 );
334 HepMC::HEPEVT_Wrapper::set_children( index, 0, 0 );
340 if ( parentId <= 0 )
continue;
342 for (
int idx=0;
idx<(int)Py8PartonIdx.size();
idx++ )
344 if ( parentId == Py8PartonIdx[
idx] )
346 int idx1 = HEPEVTPartonIdx[
idx];
347 HepMC::HEPEVT_Wrapper::set_parents( index, idx1+1, idx1+1 );
354 HepMC::HEPEVT_Wrapper::set_number_entries( index );
const HEPEUP * getHEPEUP() const
std::vector< std::pair< int, int > > MOTHUP
std::vector< FiveVector > PUP
Abs< T >::type abs(const T &t)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...