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