CMS 3D CMS Logo

PFTauSelector.cc
Go to the documentation of this file.
3 
6 
9 
10 class PFTauSelector : public ObjectSelectorStream<PFTauSelectorDefinition> {
11 public:
13  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
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 
21  psd1.add<edm::InputTag>("discriminator");
22  psd1.add<double>("selectionCut");
24  ps1.addParameter<edm::InputTag>("discriminator", edm::InputTag("fixedConePFTauDiscriminationByIsolation"));
25  ps1.addParameter<double>("selectionCut", 0.5);
26  desc.addVPSet("discriminators", psd1, {ps1});
27 
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 
ConfigurationDescriptions.h
ObjectSelectorStream.h
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
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
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition: ParameterSetDescription.cc:33
PFTauSelector::PFTauSelector
PFTauSelector(const edm::ParameterSet &ps)
Definition: PFTauSelector.cc:12
PFTauSelector
Definition: PFTauSelector.cc:10
edm::ParameterSetDescription::addVPSet
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
Definition: ParameterSetDescription.h:149
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:124
ModuleDef.h
ObjectSelectorStream
edm::InputTag
Definition: InputTag.h:15