3 #include <boost/shared_ptr.hpp>
27 const boost::shared_ptr<LHEEvent> &
event)
const
30 const HEPEUP *hepeup =
event->getHEPEUP();
31 for(
int i = 0;
i < hepeup->
NUP;
i++) {
33 factor *=
get(hepeup->
IDUP[
i], hadronisation);
41 std::map<int, double>::const_iterator
pos =
cache.find(pdgId);
42 if (pos ==
cache.end()) {
48 <<
"Particle with pdgId " << pdgId
49 <<
" only partly decayed in hadronizer, "
50 "reducing respective event cross-section "
51 "contribution with a factor of "
52 << val <<
"." << std::endl;
54 cache.insert(std::make_pair(pdgId, val));
void set(int pdgId, bool both=true, double value=1.0)
double getFactor(const Hadronisation *hadronisation, const boost::shared_ptr< LHEEvent > &event) const
std::map< int, double > cache
virtual double totalBranchingRatio(int pdgId) const
double get(int pdgId, const Hadronisation *hadronisation) const
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