23 PHG4InEvent *ineve = findNode::getClass<PHG4InEvent>(topNode,
"PHG4INEVENT");
26 cout <<
PHWHERE <<
"no PHG4INEVENT node" << endl;
29 pair<multimap<int, PHG4Particle *>::iterator, multimap<int, PHG4Particle *>::iterator > beginend = ineve->
GetParticles_Modify();
30 multimap<int, PHG4Particle *>::iterator particleiter;
33 cout <<
"PHG4InputFilter before filter" << endl;
36 particleiter = beginend.first;
37 while (particleiter != beginend.second)
41 double eta =
get_eta((particleiter->second)->get_px(), (particleiter->second)->get_py(), (particleiter->second)->get_pz());
44 multimap<int, PHG4Particle *>::iterator particleiter_cache = particleiter ;
47 particleiter = particleiter_cache;
53 double eta =
get_eta((particleiter->second)->get_px(), (particleiter->second)->get_py(), (particleiter->second)->get_pz());
56 multimap<int, PHG4Particle *>::iterator particleiter_cache = particleiter ;
59 particleiter = particleiter_cache;
65 double pt = sqrt((particleiter->second)->get_px()*(particleiter->second)->get_px()+ (particleiter->second)->get_py()*(particleiter->second)->get_py());
68 multimap<int, PHG4Particle *>::iterator particleiter_cache = particleiter ;
71 particleiter = particleiter_cache;
77 double pt = sqrt((particleiter->second)->get_px()*(particleiter->second)->get_px()+ (particleiter->second)->get_py()*(particleiter->second)->get_py());
80 multimap<int, PHG4Particle *>::iterator particleiter_cache = particleiter ;
83 particleiter = particleiter_cache;
91 cout <<
"PHG4InputFilter: after filter" << endl;
103 radius = sqrt(x * x + y * y);
104 theta = atan2(radius, z);
105 eta = -log(tan(theta / 2.));
int verbosity
The verbosity level. 0 means not verbose at all.
void DeleteParticle(std::multimap< int, PHG4Particle * >::iterator &iter)
std::pair< std::multimap< int, PHG4Particle * >::iterator, std::multimap< int, PHG4Particle * >::iterator > GetParticles_Modify()
virtual void identify(std::ostream &os=std::cout) const