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 {
8 
10  public:
12  ~JetMatchingMadgraph() override;
13 
14  protected:
15  void init(const lhef::LHERunInfo* runInfo) override;
16  void beforeHadronisation(const lhef::LHEEvent* event) override;
17  void beforeHadronisationExec() override;
18 
19  int match( const lhef::LHEEvent* partonLevel, const std::vector<fastjet::PseudoJet>* jetInput ) override;
20 
21  double getJetEtaMax() const override;
22 
23 /*
24  int match(const HepMC::GenEvent *partonLevel,
25  const HepMC::GenEvent *finalState,
26  bool showeredFinalState);
27 */
28  std::set<std::string> capabilities() const override;
29 
30  template<typename T>
31  static T parseParameter(const std::string &value);
32  template<typename T>
33  static T getParameter(const std::map<std::string, std::string> &params,
34  const std::string &var, 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(
40  const std::map<std::string, std::string> &params,
41  T &param, const std::string &name);
42 
43  std::map<std::string, std::string> mgParams;
44 
47  bool soup;
48  bool exclusive;
49 };
50 
51 } // namespace gen
52 
53 
54 #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