CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BranchingRatios.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_LHEInterface_BranchingRatios_h
2 #define GeneratorInterface_LHEInterface_BranchingRatios_h
3 
4 #include <map>
5 
6 #include <boost/shared_ptr.hpp>
7 
8 namespace lhef {
9 
10 class LHEEvent;
11 class Hadronisation;
12 
14  public:
17 
18  void reset();
19 
20  void set(int pdgId, bool both = true, double value = 1.0);
21  double getFactor(const Hadronisation *hadronisation,
22  const boost::shared_ptr<LHEEvent> &event) const;
23 
24  private:
25  double get(int pdgId, const Hadronisation *hadronisation) const;
26 
27  mutable std::map<int, double> cache;
28 };
29 
30 } // namespace lhef
31 
32 #endif // GeneratorCommon_LHEInterface_BranchingRatios_h
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
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