CMS 3D CMS Logo

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