CMS 3D CMS Logo

JetMatching.cc
Go to the documentation of this file.
1 #include <memory>
2 
3 #include <memory>
4 #include <string>
5 
8 
11 
14 
15 namespace gen {
16 
18 
20 
22 
24 
26 
27  std::set<std::string> JetMatching::capabilities() const {
28  std::set<std::string> result;
29  result.insert("psFinalState");
30  result.insert("hepmc");
31  return result;
32  }
33 
34  std::unique_ptr<JetMatching> JetMatching::create(const edm::ParameterSet& params) {
35  std::string scheme = params.getParameter<std::string>("scheme");
36 
37  std::unique_ptr<JetMatching> matching;
38 
39  if (scheme == "Madgraph") {
40  matching = std::make_unique<JetMatchingMadgraph>(params);
41  } else if (scheme == "Alpgen") {
42  matching = std::make_unique<JetMatchingAlpgen>(params);
43  } else if (scheme == "MLM") {
44  matching.reset();
45  } else
46  throw cms::Exception("InvalidJetMatching") << "Unknown scheme \"" << scheme
47  << "\""
48  " specified for parton-shower matching."
49  << std::endl;
50 
51  if (!matching.get())
52  throw cms::Exception("InvalidJetMatching") << "Port of " << scheme << "scheme \""
53  << "\""
54  " for parton-shower matching is still in progress."
55  << std::endl;
56 
57  return matching;
58  }
59 
60 } // namespace gen
MessageLogger.h
gen::JetMatching::capabilities
virtual std::set< std::string > capabilities() const
Definition: JetMatching.cc:27
JetMatchingMadgraph.h
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
TtSemiLepJetCombMVATrainer_cfi.matching
matching
Definition: TtSemiLepJetCombMVATrainer_cfi.py:13
JetMatchingAlpgen.h
gen
Definition: PythiaDecays.h:13
gen::JetMatching::~JetMatching
virtual ~JetMatching()
Definition: JetMatching.cc:19
lhef::LHERunInfo
Definition: LHERunInfo.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
LHERunInfo.h
lhef::LHEEvent
Definition: LHEEvent.h:23
gen::JetMatching::create
static std::unique_ptr< JetMatching > create(const edm::ParameterSet &params)
Definition: JetMatching.cc:34
gen::JetMatching::fMatchingStatus
bool fMatchingStatus
Definition: JetMatching.h:86
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
generator_cfi.scheme
scheme
Definition: generator_cfi.py:22
gen::JetMatching::beforeHadronisationExec
virtual void beforeHadronisationExec()
Definition: JetMatching.cc:25
Exception
Definition: hltDiff.cc:245
gen::JetMatching::beforeHadronisation
virtual void beforeHadronisation(const lhef::LHEEvent *event)
Definition: JetMatching.cc:23
submitPVValidationJobs.runInfo
dictionary runInfo
Definition: submitPVValidationJobs.py:1013
LHEEvent.h
mps_fire.result
result
Definition: mps_fire.py:311
cms::Exception
Definition: Exception.h:70
ParameterSet.h
event
Definition: event.py:1
gen::JetMatching::init
virtual void init(const lhef::LHERunInfo *runInfo)
Definition: JetMatching.cc:21
gen::JetMatching::JetMatching
JetMatching(const edm::ParameterSet &params)
Definition: JetMatching.cc:17