CMS 3D CMS Logo

JetMatchingMadgraph.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_PartonShowerVeto_JetMatchingMadgraph_h
2 #define GeneratorInterface_PartonShowerVeto_JetMatchingMadgraph_h
3 
5 
6 namespace gen {
7 
9  public:
11  ~JetMatchingMadgraph() override;
12 
13  protected:
14  void init(const lhef::LHERunInfo *runInfo) override;
15  void beforeHadronisation(const lhef::LHEEvent *event) override;
16  void beforeHadronisationExec() override;
17 
18  int match(const lhef::LHEEvent *partonLevel, const std::vector<fastjet::PseudoJet> *jetInput) override;
19 
20  double getJetEtaMax() const override;
21 
22  /*
23  int match(const HepMC::GenEvent *partonLevel,
24  const HepMC::GenEvent *finalState,
25  bool showeredFinalState);
26 */
27  std::set<std::string> capabilities() const override;
28 
29  template <typename T>
30  static T parseParameter(const std::string &value);
31  template <typename T>
32  static T getParameter(const std::map<std::string, std::string> &params,
33  const std::string &var,
34  const T &defValue = T());
35  template <typename T>
36  T getParameter(const std::string &var, const T &defValue = T()) const;
37 
38  template <typename T>
39  static void updateOrDie(const std::map<std::string, std::string> &params, T &param, const std::string &name);
40 
41  std::map<std::string, std::string> mgParams;
42 
45  bool soup;
46  bool exclusive;
47  };
48 
49 } // namespace gen
50 
51 #endif // GeneratorInterface_PartonShowerVeto_JetMatchingMadgraph_h
void init(const lhef::LHERunInfo *runInfo) override
void beforeHadronisation(const lhef::LHEEvent *event) override
static T parseParameter(const std::string &value)
static void updateOrDie(const std::map< std::string, std::string > &params, T &param, const std::string &name)
double getJetEtaMax() const override
static T getParameter(const std::map< std::string, std::string > &params, const std::string &var, const T &defValue=T())
int match(const lhef::LHEEvent *partonLevel, const std::vector< fastjet::PseudoJet > *jetInput) override
Definition: value.py:1
JetMatchingMadgraph(const edm::ParameterSet &params)
void beforeHadronisationExec() override
std::map< std::string, std::string > mgParams
long double T
std::set< std::string > capabilities() const override
Definition: event.py:1