test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TopSingleLeptonHLTValidation.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HLTriggerOffline/Top
4 // Class: TopSingleLeptonHLTValidation
5 //
13 //
14 // Original Author: Elvire Bouvier
15 // Created: Thu, 16 Jan 2014 16:27:35 GMT
16 //
17 //
18 #ifndef TOPSINGLELEPTONHLTVALIDATION
19 #define TOPSINGLELEPTONHLTVALIDATION
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
30 
34 
37 
43 
44 //
45 // class declaration
46 //
47 
49  public:
52 
53  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
54 
55 
56  private:
57  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59 
60  // ----------member data ---------------------------
61  // DQM
71  // Electrons
75  double ptElectrons_;
76  double etaElectrons_;
77  double isoElectrons_;
78  unsigned int minElectrons_;
79  // Muons
80  const reco::Muon *mu_;
83  double ptMuons_;
84  double etaMuons_;
85  double isoMuons_;
86  unsigned int minMuons_;
87  // Jets
88  const reco::Jet *jet_;
91  double ptJets_;
92  double etaJets_;
93  unsigned int minJets_;
94  // Trigger
97  std::vector<std::string> vsPaths_;
98  // Flags
99  bool isAll_ = false;
100  bool isSel_ = false;
101 };
102 
103 //
104 // constants, enums and typedefs
105 //
106 
107 //
108 // static data member definitions
109 //
110 
111 //
112 // constructors and destructor
113 //
115  sDir_(iConfig.getUntrackedParameter<std::string>("sDir","HLTValidation/Top/Efficiencies/")),
116  sElectrons_(iConfig.getUntrackedParameter<std::string>("sElectrons","gsfElectrons")),
117  ptElectrons_(iConfig.getUntrackedParameter<double>("ptElectrons",0.)),
118  etaElectrons_(iConfig.getUntrackedParameter<double>("etaElectrons",0.)),
119  isoElectrons_(iConfig.getUntrackedParameter<double>("isoElectrons",0.)),
120  minElectrons_(iConfig.getUntrackedParameter<unsigned int>("minElectrons",0)),
121  sMuons_(iConfig.getUntrackedParameter<std::string>("sMuons","muons")),
122  ptMuons_(iConfig.getUntrackedParameter<double>("ptMuons",0.)),
123  etaMuons_(iConfig.getUntrackedParameter<double>("etaMuons",0.)),
124  isoMuons_(iConfig.getUntrackedParameter<double>("isoMuons",0.)),
125  minMuons_(iConfig.getUntrackedParameter<unsigned int>("minMuons",0)),
126  sJets_(iConfig.getUntrackedParameter<std::string>("sJets","ak5PFJets")),
127  ptJets_(iConfig.getUntrackedParameter<double>("ptJets",0.)),
128  etaJets_(iConfig.getUntrackedParameter<double>("etaJets",0.)),
129  minJets_(iConfig.getUntrackedParameter<unsigned int>("minJets",0)),
130  sTrigger_(iConfig.getUntrackedParameter<std::string>("sTrigger","TriggerResults")),
131  vsPaths_(iConfig.getUntrackedParameter< std::vector<std::string> >("vsPaths"))
132 
133 {
134  // Electrons
135  tokElectrons_ = consumes< edm::View<reco::GsfElectron> >(edm::InputTag(sElectrons_));
136  // Muons
137  tokMuons_ = consumes< edm::View<reco::Muon> >(edm::InputTag(sMuons_));
138  // Jets
139  tokJets_ = consumes< edm::View<reco::Jet> >(edm::InputTag(sJets_));
140  // Trigger
141  tokTrigger_ = consumes<edm::TriggerResults>(edm::InputTag(sTrigger_, "", "HLT"));
142 }
143 
144 
146 {
147 
148  // do anything here that needs to be done at desctruction time
149  // (e.g. close files, deallocate resources etc.)
150 
151 }
152 #endif
153 
154 //define this as a plug-in
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
Base class for all types of Jets.
Definition: Jet.h:20
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
TopSingleLeptonHLTValidation(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
Definition: Run.h:41