CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetMatchingMadgraph.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_PartonShowerVeto_JetMatchingMadggraph_h
2 #define GeneratorInterface_PartonShowerVeto_JetMatchingMadgraph_h
3 
5 
6 namespace gen
7 {
8 
10  public:
13 
14  private:
15  void init(const lhef::LHERunInfo* runInfo);
18 
19  int match(const HepMC::GenEvent *partonLevel,
20  const HepMC::GenEvent *finalState,
21  bool showeredFinalState);
22 
23  std::set<std::string> capabilities() const;
24 
25  template<typename T>
26  static T parseParameter(const std::string &value);
27  template<typename T>
28  static T getParameter(const std::map<std::string, std::string> &params,
29  const std::string &var, const T &defValue = T());
30  template<typename T>
31  T getParameter(const std::string &var, const T &defValue = T()) const;
32 
33  template<typename T>
34  static void updateOrDie(
35  const std::map<std::string, std::string> &params,
36  T &param, const std::string &name);
37 
38  std::map<std::string, std::string> mgParams;
39 
42  bool soup;
43  bool exclusive;
44 };
45 
46 } // namespace gen
47 
48 
49 #endif // GeneratorCommon_PartonShowerVeto_JetMatchingMadgraph_h
void init(const lhef::LHERunInfo *runInfo)
void beforeHadronisation(const lhef::LHEEvent *event)
static T parseParameter(const std::string &value)
static void updateOrDie(const std::map< std::string, std::string > &params, T &param, const std::string &name)
static T getParameter(const std::map< std::string, std::string > &params, const std::string &var, const T &defValue=T())
int match(const HepMC::GenEvent *partonLevel, const HepMC::GenEvent *finalState, bool showeredFinalState)
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
JetMatchingMadgraph(const edm::ParameterSet &params)
std::map< std::string, std::string > mgParams
std::set< std::string > capabilities() const
long double T