23 std::cout <<
"AntiTrigger name: " <<
Name() << std::endl;
27 std::cout <<
"Particles to reject: ";
28 for (
int i = 0;
i < numberOfParticles; ++
i)
31 if (
i != numberOfParticles - 1) std::cout <<
", ";
33 std::cout << std::endl;
38 return canSearchDecay;
65 bool listCanBeParsed =
true;
75 listCanBeParsed =
false;
86 if (
Verbosity() >=
VERBOSITY_SOME) std::cout <<
"Your particle list cannot be parsed, " <<
Name() <<
" will not be registered" << std::endl;
93 bool particleWasFound =
false;
95 m_geneventmap = findNode::getClass<PHHepMCGenEventMap>(topNode,
"PHHepMCGenEventMap");
98 std::cout <<
"AntiTrigger: Missing node PHHepMCGenEventMap" << std::endl;
105 std::cout <<
"AntiTrigger: Missing node PHHepMCGenEvent" << std::endl;
111 for (HepMC::GenEvent::particle_const_iterator
p = theEvent->particles_begin();
p != theEvent->particles_end(); ++
p)
115 particleWasFound =
true;
116 if (
Verbosity() >=
VERBOSITY_MORE) std::cout <<
"This event will be rejected due to: " << (*p)->pdg_id() << std::endl;
120 return particleWasFound;
125 bool particleFound =
true;
126 if (!TDatabasePDG::Instance()->GetParticle(particle.c_str()))
130 std::cout <<
"The particle, " << particle <<
" is not in the particle list" << std::endl;
131 std::cout <<
"Check TDatabasePDG for a list of available particles" << std::endl;
133 particleFound =
false;
136 return particleFound;
141 std::cout <<
"\n---------------AntiTrigger information---------------" << std::endl;
142 std::cout <<
"AntiTrigger name: " <<
Name() << std::endl;
144 std::cout <<
"Particles to reject: ";
145 for (
int i;
i < numberOfParticles; ++
i)
148 if (
i != numberOfParticles - 1) std::cout <<
", ";
150 std::cout << std::endl;
151 std::cout <<
"Number of events skipped: " <<
m_counter << std::endl;
152 std::cout <<
"-----------------------------------------------------\n" << std::endl;