RecoTauTag
RecoTau
plugins
PFTauSelector.cc
Go to the documentation of this file.
1
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
2
#include "
FWCore/Framework/interface/MakerMacros.h
"
3
4
#include "
CommonTools/UtilAlgos/interface/ObjectSelectorStream.h
"
5
#include "
RecoTauTag/RecoTau/plugins/PFTauSelectorDefinition.h
"
6
7
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
9
10
class
PFTauSelector
:
public
ObjectSelectorStream
<PFTauSelectorDefinition> {
11
public
:
12
PFTauSelector
(
const
edm::ParameterSet
& ps) :
ObjectSelectorStream
<
PFTauSelectorDefinition
>(ps) {}
13
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
14
edm::ParameterSetDescription
desc
;
15
desc
.setComment(
"PF tau selector module"
);
16
17
desc
.add<
edm::InputTag
>(
"src"
,
edm::InputTag
(
"fixedConePFTauProducer"
));
18
desc
.add<
std::string
>(
"cut"
,
"pt > 0"
);
19
20
edm::ParameterSetDescription
psd1;
21
psd1.
add
<
edm::InputTag
>(
"discriminator"
);
22
psd1.add<
double
>(
"selectionCut"
);
23
edm::ParameterSet
ps1;
24
ps1.
addParameter
<
edm::InputTag
>(
"discriminator"
,
edm::InputTag
(
"fixedConePFTauDiscriminationByIsolation"
));
25
ps1.addParameter<
double
>(
"selectionCut"
, 0.5);
26
desc
.addVPSet(
"discriminators"
, psd1, {ps1});
27
28
edm::ParameterSetDescription
psd2;
29
psd2.
add
<
edm::InputTag
>(
"discriminator"
);
30
psd2.
add
<std::vector<std::string>>(
"rawValues"
);
31
psd2.
add
<std::vector<std::string>>(
"workingPoints"
);
32
psd2.
add
<std::vector<double>>(
"selectionCuts"
);
33
desc
.addVPSet(
"discriminatorContainers"
, psd2, {});
34
35
descriptions.
add
(
"pfTauSelector"
,
desc
);
36
}
37
};
38
39
DEFINE_FWK_MODULE
(
PFTauSelector
);
ConfigurationDescriptions.h
ObjectSelectorStream.h
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition:
ParameterSetDescription.h:95
HLT_FULL_cff.InputTag
InputTag
Definition:
HLT_FULL_cff.py:89285
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
PFTauSelector::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
PFTauSelector.cc:13
MakerMacros.h
PFTauSelectorDefinition.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
PFTauSelectorDefinition
Definition:
PFTauSelectorDefinition.h:20
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
PFTauSelector::PFTauSelector
PFTauSelector(const edm::ParameterSet &ps)
Definition:
PFTauSelector.cc:12
PFTauSelector
Definition:
PFTauSelector.cc:10
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition:
ParameterSet.h:135
ModuleDef.h
ObjectSelectorStream
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
edm::InputTag
Definition:
InputTag.h:15
Generated for CMSSW Reference Manual by
1.8.16