CMS 3D CMS Logo

PFTauSelector.cc
Go to the documentation of this file.
3 
6 
9 
10 class PFTauSelector : public ObjectSelector<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 
PFTauSelector(const edm::ParameterSet &ps)
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:136
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)