GeneratorInterface
PartonShowerVeto
src
JetMatching.cc
Go to the documentation of this file.
1
#include <memory>
2
3
#include <memory>
4
#include <string>
5
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
8
9
#include "
GeneratorInterface/LHEInterface/interface/LHERunInfo.h
"
10
#include "
GeneratorInterface/LHEInterface/interface/LHEEvent.h
"
11
12
#include "
GeneratorInterface/PartonShowerVeto/interface/JetMatchingMadgraph.h
"
13
#include "
GeneratorInterface/PartonShowerVeto/interface/JetMatchingAlpgen.h
"
14
15
namespace
gen
{
16
17
JetMatching::JetMatching
(
const
edm::ParameterSet
&
params
) {
fMatchingStatus
=
false
; }
18
19
JetMatching::~JetMatching
() {}
20
21
void
JetMatching::init
(
const
lhef::LHERunInfo
*
runInfo
) {}
22
23
void
JetMatching::beforeHadronisation
(
const
lhef::LHEEvent
*
event
) {}
24
25
void
JetMatching::beforeHadronisationExec
() {}
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 ¶ms)
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 ¶ms)
Definition:
JetMatching.cc:17
Generated for CMSSW Reference Manual by
1.8.16