CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
HLTHiggsBits Class Reference

#include <HLTHiggsBits.h>

Inheritance diagram for HLTHiggsBits:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void endJob ()
 
 HLTHiggsBits (const edm::ParameterSet &)
 
 ~HLTHiggsBits ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Public Attributes

DQMStoredbe
 
MonitorElementh_el_reco
 
MonitorElementh_emu_reco
 
MonitorElementh_etael1
 
MonitorElementh_etael1_emu
 
MonitorElementh_etael1_emu_trig [20]
 
MonitorElementh_etael1_trig [20]
 
MonitorElementh_etael2
 
MonitorElementh_etael2_trig [20]
 
MonitorElementh_etamu1
 
MonitorElementh_etamu1_emu
 
MonitorElementh_etamu1_emu_trig [20]
 
MonitorElementh_etamu1_trig [20]
 
MonitorElementh_etamu2
 
MonitorElementh_etamu2_trig [20]
 
MonitorElementh_etaph1
 
MonitorElementh_etaph1_trig [20]
 
MonitorElementh_etaph2
 
MonitorElementh_etaph2_trig [20]
 
MonitorElementh_etatau1
 
MonitorElementh_etatau1_trig [20]
 
MonitorElementh_met_hwwdiel
 
MonitorElementh_met_hwwdimu
 
MonitorElementh_met_hwwemu
 
MonitorElementh_mu_reco
 
MonitorElementh_ph_reco
 
MonitorElementh_ptel1
 
MonitorElementh_ptel1_emu
 
MonitorElementh_ptel1_emu_trig [20]
 
MonitorElementh_ptel1_trig [20]
 
MonitorElementh_ptel2
 
MonitorElementh_ptel2_trig [20]
 
MonitorElementh_ptmu1
 
MonitorElementh_ptmu1_emu
 
MonitorElementh_ptmu1_emu_trig [20]
 
MonitorElementh_ptmu1_trig [20]
 
MonitorElementh_ptmu2
 
MonitorElementh_ptmu2_trig [20]
 
MonitorElementh_ptph1
 
MonitorElementh_ptph1_trig [20]
 
MonitorElementh_ptph2
 
MonitorElementh_ptph2_trig [20]
 
MonitorElementh_pttau1
 
MonitorElementh_pttau1_trig [20]
 
MonitorElementh_tau_gen
 
MonitorElementhlt_bitel_hist_reco
 
MonitorElementhlt_bitemu_hist_reco
 
MonitorElementhlt_bitmu_hist_reco
 
MonitorElementhlt_bitph_hist_reco
 
MonitorElementhlt_bittau_hist_gen
 
TTree * HltTree
 
edm::ParameterSet parameters
 

Private Attributes

std::string histName
 
std::vector< std::string > hlNames_
 
std::vector< std::string > hlt_bitnames
 
std::vector< std::string > hlt_bitnamesEg
 
std::vector< std::string > hlt_bitnamesMu
 
std::vector< std::string > hlt_bitnamesPh
 
std::vector< std::string > hlt_bitnamesTau
 
int * hlt_nbits
 
int hlt_whichbit [3][20][21]
 
edm::Handle< edm::TriggerResultsHLTR
 
edm::InputTag hlTriggerResults_
 
bool init_
 
bool l1_decision
 
TFile * m_file
 
HLTHiggsTruth mct_analysis_
 
edm::InputTag mctruth_
 
int n_channel_
 
int n_hlt_bits
 
int n_hlt_bits_eg
 
int n_hlt_bits_mu
 
int n_hlt_bits_ph
 
int n_hlt_bits_tau
 
int neventcount
 
unsigned int nEvents_
 
std::ofstream outfile
 
std::string outFile_
 
std::string outputFileName
 
bool outputMEsInRootFile
 
std::string triggerTag_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

This class is an EDAnalyzer implementing TrigReport (statistics printed to log file) for HL triggers

Date:
2010/02/16 22:33:12
Revision:
1.6
Author
Martin Grunewald

See header file for documentation

Date:
2010/05/03 16:39:07
Revision:
1.6
Author
Mika Huhtinen

Definition at line 61 of file HLTHiggsBits.h.

Constructor & Destructor Documentation

HLTHiggsBits::HLTHiggsBits ( const edm::ParameterSet iConfig)
explicit

histos pt, eta reconstructed objects

Definition at line 43 of file HLTHiggsBits.cc.

References DQMStore::book1D(), dbe, h_el_reco, h_emu_reco, h_etael1, h_etael1_emu, h_etael1_emu_trig, h_etael1_trig, h_etael2, h_etamu1, h_etamu1_emu, h_etamu1_emu_trig, h_etamu1_trig, h_etamu2, h_etaph1, h_etaph1_trig, h_etaph2, h_met_hwwdiel, h_met_hwwdimu, h_met_hwwemu, h_mu_reco, h_ph_reco, h_ptel1, h_ptel1_emu, h_ptel1_emu_trig, h_ptel1_trig, h_ptel2, h_ptmu1, h_ptmu1_emu, h_ptmu1_emu_trig, h_ptmu1_trig, h_ptmu2, h_ptph1, h_ptph1_trig, h_ptph2, h_tau_gen, hlt_bitel_hist_reco, hlt_bitemu_hist_reco, hlt_bitmu_hist_reco, hlt_bitnames, hlt_bitnamesEg, hlt_bitnamesMu, hlt_bitnamesPh, hlt_bitnamesTau, hlt_bitph_hist_reco, hlt_bittau_hist_gen, HltTree, j, mct_analysis_, n_channel_, n_hlt_bits, n_hlt_bits_eg, n_hlt_bits_mu, n_hlt_bits_ph, n_hlt_bits_tau, cmsCodeRules.cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), HLTHiggsTruth::setup(), and triggerTag_.

43  :
44  hlTriggerResults_ (iConfig.getParameter<edm::InputTag> ("HLTriggerResults")),
45  mctruth_ (iConfig.getParameter<edm::InputTag> ("MCTruth")),
46  n_channel_ (iConfig.getParameter<int>("Nchannel")),
47  nEvents_(0),
48  hlNames_(0),
49  init_(false),
50  histName(iConfig.getParameter<std::string>("histName")),
51  hlt_bitnames(iConfig.getParameter<std::vector<std::string> >("hltBitNames")),
52  hlt_bitnamesMu(iConfig.getParameter<std::vector<std::string> >("hltBitNamesMu")),
53  hlt_bitnamesEg(iConfig.getParameter<std::vector<std::string> >("hltBitNamesEG")),
54  hlt_bitnamesPh(iConfig.getParameter<std::vector<std::string> >("hltBitNamesPh")),
55  hlt_bitnamesTau(iConfig.getParameter<std::vector<std::string> >("hltBitNamesTau")),
56  triggerTag_(iConfig.getUntrackedParameter<std::string>("DQMFolder","HLT/Higgs")),
57  outputFileName(iConfig.getParameter<std::string>("OutputFileName")),
58  outputMEsInRootFile(iConfig.getParameter<bool>("OutputMEsInRootFile"))
59 
60 
61 {
62 
63 
64  n_hlt_bits=hlt_bitnames.size(); // total paths
65 
66 
67  n_hlt_bits_eg = hlt_bitnamesEg.size(); // muon paths
68  n_hlt_bits_mu = hlt_bitnamesMu.size(); // electron paths
69  n_hlt_bits_ph = hlt_bitnamesPh.size(); // photon paths
70  n_hlt_bits_tau = hlt_bitnamesTau.size(); // tau paths
71 
72 
73  /*
74  std::cout << "Number of bit names : " << n_hlt_bits << std::endl;
75  if (n_hlt_bits>20) {
76  std::cout << "TOO MANY BITS REQUESTED - TREATING ONLY FIRST 20" << std::endl;
77  n_hlt_bits=20;
78  }*/
79 
80 
81 
82 
83 // 1:H->ZZ->4l, 2:H->WW->2l, 3: H->gg, 4:qqh->2tau, 5:H+->taunu, 6:qqh->inv
84 // The proper channel number has to be set in the cff-file
85  // std::cout << "Analyzing Higgs channel number " << n_channel_ << std::endl;
86 
87  // open the histogram file
88  // m_file=0; // set to null
89  // m_file=new TFile((histName+".root").c_str(),"RECREATE");
90  // m_file->cd();
91  // outfile.open((histName+".output").c_str());
92 
93 
94  // Initialize the tree
95  HltTree = 0;
96  HltTree = new TTree("HltTree","");
97 
98  /* for (int i=0;i<n_hlt_bits;i++) {
99  for (int j=0;j<n_hlt_bits+1;j++) {
100  hlt_whichbit[0][i][j]=0;
101  hlt_whichbit[1][i][j]=0;
102  hlt_whichbit[2][i][j]=0;
103  }
104  }*/
105 
106 
107  mct_analysis_.setup(iConfig, HltTree);
108 
109  // const int kMaxEvents = 50000;
110  /* const int kMaxEvents = 5000000;
111  hlt_nbits = new int[kMaxEvents];
112  HltTree->Branch("NEventCount",&neventcount,"NEventCount/I");
113  HltTree->Branch("HLT_nBits",hlt_nbits,"HLT_nBits[NEventCount]/I");*/
114 
115 
116 
117  //--------------------------------------------
120  //--------------------------------------------
121 
122 
125 
126  // dbe->setCurrentFolder("HLT/Higgs");
127 
128 
129  if (n_channel_==2) {
130  h_met_hwwdimu = dbe->book1D("caloMET_dimu","caloMET_dimu",50,0.0,150.0);
131  h_met_hwwdiel = dbe->book1D("caloMET_diel","caloMET_diel",50,0.0,150.0);
132  h_met_hwwemu = dbe->book1D("caloMET_emu","caloMET_emu",50,0.0,150.0);
133 
134  }
135 
136 
137  if (n_channel_==1 || n_channel_==2 || n_channel_==4){ // only for WW,ZZ, 2tau
138 
139  h_ptmu1 = dbe->book1D("Muon1Pt","Muon1Pt",50,0.0,150.0);
140  h_ptmu2 = dbe->book1D("Muon2Pt","Muon2Pt",50,0.0,150.0);
141  h_etamu1 = dbe->book1D("Muon1Eta","Muon1Eta",50,-2.5,2.5);
142  h_etamu2 = dbe->book1D("Muon2Eta","Muon2Eta",50,-2.5,2.5);
143 
144  h_ptel1 = dbe->book1D("Electron1Pt","Electron1Pt",50,0.0,150.0);
145  h_ptel2 = dbe->book1D("Electron2Pt","Electron2Pt",50,0.0,150.0);
146  h_etael1 = dbe->book1D("Electron1Eta","Electron1Eta",50,-2.5,2.5);
147  h_etael2 = dbe->book1D("Electron2Eta","Electron2Eta",50,-2.5,2.5);
148 
149  hlt_bitmu_hist_reco = dbe->book1D("muHLT","muHLT",hlt_bitnamesMu.size(),0.5,hlt_bitnamesMu.size()+0.5);
150  h_mu_reco = dbe->book1D("MuonEvents","MuonEvents",hlt_bitnamesMu.size(),0.5,hlt_bitnamesMu.size()+0.5);
151 
152  hlt_bitel_hist_reco = dbe->book1D("elHLT","elHLT",hlt_bitnamesEg.size(),0.5,hlt_bitnamesEg.size()+0.5);
153  h_el_reco = dbe->book1D("ElectronEvents","ElectronEvents",hlt_bitnamesEg.size(),0.5,hlt_bitnamesEg.size()+0.5);
154 
155 
156  }
157 
158  if (n_channel_==1 || n_channel_==2){
159 
160  h_ptmu1_emu = dbe->book1D("Muon1Pt_EM","Muon1Pt_EM",50,0.0,150.0);
161  h_ptel1_emu = dbe->book1D("Electron1Pt_EM","Electron1Pt_EM",50,0.0,150.0);
162  h_etamu1_emu = dbe->book1D("Muon1Eta_EM","Muon1Eta_EM",50,-2.5,2.5);
163  h_etael1_emu = dbe->book1D("Electron1Eta_EM","Electron1Eta_EM",50,-2.5,2.5);
164 
165  hlt_bitemu_hist_reco = dbe->book1D("emuHLT","emuHLT",hlt_bitnames.size(),0.5,hlt_bitnames.size()+0.5);
166  h_emu_reco = dbe->book1D("EmuEvents","EmuEvents",hlt_bitnames.size(),0.5,hlt_bitnames.size()+0.5);
167 
168 
169  }
170  // dbe->setCurrentFolder("HLT/Higgs/H2tau");
171 
172  if (n_channel_==3){ // only for Hgg
173 
174  h_ptph1 = dbe->book1D("Photon1Pt","Photon1Pt",50,0.0,200.0);
175  h_ptph2 = dbe->book1D("Photon2Pt","Photon2Pt",50,0.0,200.0);
176  h_etaph1 = dbe->book1D("Photon1Eta","Photon1Eta",50,-2.5,2.5);
177  h_etaph2 = dbe->book1D("Photon2Eta","Photon2Eta",50,-2.5,2.5);
178 
179  hlt_bitph_hist_reco = dbe->book1D("phHLT","phHLT",hlt_bitnamesPh.size(),0.5,hlt_bitnamesPh.size()+0.5);
180  h_ph_reco = dbe->book1D("PhotonEvents","PhotonEvents",hlt_bitnamesPh.size(),0.5,hlt_bitnamesPh.size()+0.5);
181 
182 
183  }
184 
185  if (n_channel_==5){
186 
187  // dbe->setCurrentFolder("HLT/Higgs/Htaunu");
188  // h_pttau1 = dbe->book1D("Tau1Pt","Tau1Pt",50,0.0,500.0);
189  // h_etatau1 = dbe->book1D("Tau1Eta","Tau1Eta",50,-5.0,5.0);
190 
191  hlt_bittau_hist_gen = dbe->book1D("tauHLT","tauHLT",hlt_bitnamesTau.size(),0.5,hlt_bitnamesTau.size()+0.5);
192  h_tau_gen = dbe->book1D("tauEvents","tauEvents",hlt_bitnamesTau.size(),0.5,hlt_bitnamesTau.size()+0.5);
193 
194  }
195 
196  //------------------------------------------------
197  //
198  // Histos pt, eta RECO events firing HLT
199  //
200  //---------------------------------------------------
201 
202  if (n_channel_==1 || n_channel_==2){
203 
204  for (int j=0;j<n_hlt_bits;j++) {
205  std::string histnameptmuem = "Muon1Pt_EM_"+hlt_bitnames[j];
206  std::string histnameetamuem = "Muon1Eta_EM_"+hlt_bitnames[j];
207  std::string histnameptelem = "Electron1Pt_EM_"+hlt_bitnames[j];
208  std::string histnameetaelem = "Electron1Eta_EM_"+hlt_bitnames[j];
209  h_ptmu1_emu_trig[j] = dbe->book1D((histnameptmuem).c_str(),(hlt_bitnames[j]+"ptmuon").c_str(),50,0.0,150.0);
210  h_etamu1_emu_trig[j] = dbe->book1D((histnameetamuem).c_str(),(hlt_bitnames[j]+"etamuon").c_str(),50,-2.5,2.5);
211 
212  h_ptel1_emu_trig[j] = dbe->book1D((histnameptelem).c_str(),(hlt_bitnames[j]+"ptelectron").c_str(),50,0.0,150.0);
213  h_etael1_emu_trig[j] = dbe->book1D((histnameetaelem).c_str(),(hlt_bitnames[j]+"etaelectron").c_str(),50,-2.5,2.5);
214 
215  hlt_bitemu_hist_reco -> setBinLabel(j+1,hlt_bitnames[j].c_str());
216  h_emu_reco -> setBinLabel(j+1,hlt_bitnames[j].c_str());
217 
218  }
219  }
220 
221  if (n_channel_==1 || n_channel_==2 || n_channel_==4){
222  for (int j=0;j<n_hlt_bits_mu;j++) {
223  std::string histnameptmu = "Muon1Pt_"+hlt_bitnamesMu[j];
224  std::string histnameetamu = "Muon1Eta_"+hlt_bitnamesMu[j];
225  h_ptmu1_trig[j] = dbe->book1D((histnameptmu).c_str(),(hlt_bitnamesMu[j]+"ptmuon").c_str(),50,0.0,150.0);
226  h_etamu1_trig[j] = dbe->book1D((histnameetamu).c_str(),(hlt_bitnamesMu[j]+"etamuon").c_str(),50,-2.5,2.5);
227  hlt_bitmu_hist_reco -> setBinLabel(j+1,hlt_bitnamesMu[j].c_str());
228  h_mu_reco -> setBinLabel(j+1,hlt_bitnamesMu[j].c_str());
229 
230  }
231  for (int j=0;j<n_hlt_bits_eg;j++) {
232  std::string histnameptel = "Electron1Pt_"+hlt_bitnamesEg[j];
233  std::string histnameetael = "Electron1Eta_"+hlt_bitnamesEg[j];
234  h_ptel1_trig[j] = dbe->book1D((histnameptel).c_str(),(hlt_bitnamesEg[j]+"ptelectron").c_str(),50,0.0,150.0);
235  h_etael1_trig[j] = dbe->book1D((histnameetael).c_str(),(hlt_bitnamesEg[j]+"etaelectron").c_str(),50,-2.5,2.5);
236 
237  hlt_bitel_hist_reco -> setBinLabel(j+1,hlt_bitnamesEg[j].c_str());
238  h_el_reco -> setBinLabel(j+1,hlt_bitnamesEg[j].c_str());
239 
240 
241  }
242 
243  }
244 
245  if (n_channel_==3){
246  for (int j=0;j<n_hlt_bits_ph;j++) {
247  std::string histnameptph = "Photon1Pt_"+hlt_bitnamesPh[j];
248  std::string histnameetaph = "Photon1Eta_"+hlt_bitnamesPh[j];
249  h_ptph1_trig[j] = dbe->book1D((histnameptph).c_str(),(hlt_bitnamesPh[j]+"ptphoton").c_str(),50,0.0,200);
250  h_etaph1_trig[j] = dbe->book1D((histnameetaph).c_str(),(hlt_bitnamesPh[j]+"etaphoton").c_str(),50,-2.5,2.5);
251 
252  hlt_bitph_hist_reco -> setBinLabel(j+1,hlt_bitnamesPh[j].c_str());
253  h_ph_reco -> setBinLabel(j+1,hlt_bitnamesPh[j].c_str());
254 
255  }
256 
257  }
258 
259  if (n_channel_==5){
260  for (int j=0;j<n_hlt_bits_tau;j++) {
261  // std::string histnamepttau = "Tau1Pt_"+hlt_bitnamesTau[j];
262  // std::string histnameetatau = "Tau1Eta_"+hlt_bitnamesTau[j];
263  // h_pttau1_trig[j] = dbe->book1D((histnamepttau).c_str(),(hlt_bitnamesTau[j]+"pttau").c_str(),50,0.0,300);
264  // h_etatau1_trig[j] = dbe->book1D((histnameetatau).c_str(),(hlt_bitnamesTau[j]+"etatau").c_str(),50,-5.0,5.0);
265  hlt_bittau_hist_gen -> setBinLabel(j+1,hlt_bitnamesTau[j].c_str());
266  h_tau_gen -> setBinLabel(j+1,hlt_bitnamesTau[j].c_str());
267  }
268  }
269 
270 
271  // std::cout << "booking OK " << std::endl;
272 
273 }
MonitorElement * h_met_hwwdiel
Definition: HLTHiggsBits.h:220
MonitorElement * hlt_bitmu_hist_reco
Definition: HLTHiggsBits.h:202
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > hlt_bitnames
Definition: HLTHiggsBits.h:279
MonitorElement * h_ptmu1_trig[20]
Definition: HLTHiggsBits.h:141
MonitorElement * h_mu_reco
Definition: HLTHiggsBits.h:203
std::string histName
Definition: HLTHiggsBits.h:278
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:514
MonitorElement * h_ptel1_emu
Definition: HLTHiggsBits.h:151
MonitorElement * h_ptmu2
Definition: HLTHiggsBits.h:140
std::vector< std::string > hlt_bitnamesPh
Definition: HLTHiggsBits.h:283
MonitorElement * hlt_bitel_hist_reco
Definition: HLTHiggsBits.h:205
MonitorElement * h_met_hwwdimu
Definition: HLTHiggsBits.h:219
MonitorElement * h_tau_gen
Definition: HLTHiggsBits.h:215
MonitorElement * h_ptmu1_emu
Definition: HLTHiggsBits.h:149
MonitorElement * h_ptel1_trig[20]
Definition: HLTHiggsBits.h:146
MonitorElement * h_ptph2
Definition: HLTHiggsBits.h:160
MonitorElement * h_etamu1_trig[20]
Definition: HLTHiggsBits.h:183
MonitorElement * h_etaph1
Definition: HLTHiggsBits.h:191
MonitorElement * h_ptel2
Definition: HLTHiggsBits.h:145
MonitorElement * h_etael1_emu
Definition: HLTHiggsBits.h:152
MonitorElement * hlt_bitemu_hist_reco
Definition: HLTHiggsBits.h:208
MonitorElement * h_ptel1
Definition: HLTHiggsBits.h:144
MonitorElement * h_etaph1_trig[20]
Definition: HLTHiggsBits.h:193
MonitorElement * h_ptmu1
Definition: HLTHiggsBits.h:139
DQMStore * dbe
Definition: HLTHiggsBits.h:77
MonitorElement * h_etamu1_emu_trig[20]
Definition: HLTHiggsBits.h:154
MonitorElement * h_ptph1_trig[20]
Definition: HLTHiggsBits.h:161
MonitorElement * h_ptel1_emu_trig[20]
Definition: HLTHiggsBits.h:155
bool outputMEsInRootFile
Definition: HLTHiggsBits.h:299
MonitorElement * h_etamu1_emu
Definition: HLTHiggsBits.h:150
int j
Definition: DBlmapReader.cc:9
MonitorElement * hlt_bittau_hist_gen
Definition: HLTHiggsBits.h:214
edm::InputTag hlTriggerResults_
Definition: HLTHiggsBits.h:235
MonitorElement * h_etael2
Definition: HLTHiggsBits.h:187
MonitorElement * h_etael1_trig[20]
Definition: HLTHiggsBits.h:188
unsigned int nEvents_
Definition: HLTHiggsBits.h:265
MonitorElement * h_etamu2
Definition: HLTHiggsBits.h:182
MonitorElement * h_ptph1
Definition: HLTHiggsBits.h:159
MonitorElement * h_emu_reco
Definition: HLTHiggsBits.h:209
MonitorElement * h_ph_reco
Definition: HLTHiggsBits.h:212
TTree * HltTree
Definition: HLTHiggsBits.h:80
std::string triggerTag_
Definition: HLTHiggsBits.h:297
MonitorElement * h_etaph2
Definition: HLTHiggsBits.h:192
std::vector< std::string > hlNames_
Definition: HLTHiggsBits.h:266
MonitorElement * h_etamu1
Definition: HLTHiggsBits.h:181
MonitorElement * h_ptmu1_emu_trig[20]
Definition: HLTHiggsBits.h:153
edm::InputTag mctruth_
Definition: HLTHiggsBits.h:239
MonitorElement * hlt_bitph_hist_reco
Definition: HLTHiggsBits.h:211
MonitorElement * h_met_hwwemu
Definition: HLTHiggsBits.h:221
MonitorElement * h_etael1_emu_trig[20]
Definition: HLTHiggsBits.h:156
void setup(const edm::ParameterSet &pSet, TTree *tree)
std::vector< std::string > hlt_bitnamesTau
Definition: HLTHiggsBits.h:284
MonitorElement * h_etael1
Definition: HLTHiggsBits.h:186
MonitorElement * h_el_reco
Definition: HLTHiggsBits.h:206
HLTHiggsTruth mct_analysis_
Definition: HLTHiggsBits.h:246
std::vector< std::string > hlt_bitnamesEg
Definition: HLTHiggsBits.h:281
std::string outputFileName
Definition: HLTHiggsBits.h:298
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232
std::vector< std::string > hlt_bitnamesMu
Definition: HLTHiggsBits.h:280
HLTHiggsBits::~HLTHiggsBits ( )

Definition at line 275 of file HLTHiggsBits.cc.

276 { }

Member Function Documentation

void HLTHiggsBits::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 285 of file HLTHiggsBits.cc.

References HLTHiggsTruth::analyzeH2tau(), HLTHiggsTruth::analyzeHgg(), HLTHiggsTruth::analyzeHinv(), HLTHiggsTruth::analyzeHtaunu(), HLTHiggsTruth::analyzeHWW2l(), HLTHiggsTruth::analyzeHZZ4l(), HLTHiggsTruth::ElecChannel_recoacc(), HLTHiggsTruth::ElecMuChannel_recoacc(), HLTHiggsTruth::electron1_(), HLTHiggsTruth::electron2_(), edm::InputTag::encode(), HLTHiggsTruth::etaElectron1(), HLTHiggsTruth::etaMuon1(), MonitorElement::Fill(), edm::Event::getByLabel(), h_el_reco, h_emu_reco, h_etael1, h_etael1_emu, h_etael1_emu_trig, h_etael1_trig, h_etael2, h_etamu1, h_etamu1_emu, h_etamu1_emu_trig, h_etamu1_trig, h_etamu2, h_etaph1, h_etaph1_trig, h_etaph2, h_met_hwwdiel, h_met_hwwdimu, h_met_hwwemu, h_mu_reco, h_ph_reco, h_ptel1, h_ptel1_emu, h_ptel1_emu_trig, h_ptel1_trig, h_ptel2, h_ptmu1, h_ptmu1_emu, h_ptmu1_emu_trig, h_ptmu1_trig, h_ptmu2, h_ptph1, h_ptph1_trig, h_ptph2, h_tau_gen, hlNames_, hlt_bitel_hist_reco, hlt_bitemu_hist_reco, hlt_bitmu_hist_reco, hlt_bitnames, hlt_bitnamesEg, hlt_bitnamesMu, hlt_bitnamesPh, hlt_bitnamesTau, hlt_bitph_hist_reco, hlt_bittau_hist_gen, HLTR, hlTriggerResults_, HltTree, i, init_, edm::HandleBase::isValid(), j, gen::k, LogDebug, mct_analysis_, mctruth_, HLTHiggsTruth::met_hwwdiel(), HLTHiggsTruth::met_hwwdimu(), HLTHiggsTruth::met_hwwemu(), HLTHiggsTruth::muon1_(), HLTHiggsTruth::muon2_(), HLTHiggsTruth::MuonChannel_recoacc(), n, n_channel_, n_hlt_bits, n_hlt_bits_eg, n_hlt_bits_mu, n_hlt_bits_ph, n_hlt_bits_tau, neventcount, nEvents_, HLTHiggsTruth::photon1_(), HLTHiggsTruth::photon2_(), HLTHiggsTruth::PhotonChannel_acc(), HLTHiggsTruth::ptElectron1(), HLTHiggsTruth::ptMuon1(), HLTHiggsTruth::TauChannel_acc(), edm::TriggerNames::triggerNames(), and edm::Event::triggerNames().

286 {
287  // accumulation of statistics for HLT bits used by Higgs analysis
288 
289  using namespace std;
290  using namespace edm;
291 
292 
293 
295  iEvent.getByLabel("muons", muonHandle);
296 
297 
299  iEvent.getByLabel("gsfElectrons",electronHandle);
300 
302  iEvent.getByLabel("photons", photonHandle);
303 
305  // iEvent.getByLabel("met", caloMet); // first attempt of adding met variables
306  iEvent.getByLabel("corMetGlobalMuons", caloMet);
307 
309  iEvent.getByLabel("generalTracks", Tracks);
310 
311 // MC truth part
312 
313  std::string errMsg("");
315 
316 
317  try {iEvent.getByLabel(mctruth_,mctruth);} catch (...) { errMsg=errMsg + " -- No Gen Particles";}
318 
319  // do the MC-preselection. This depends on the channel under study. with
320  // wrong n_channel the result would be nonsense
321  if (n_channel_== 1) {
322  mct_analysis_.analyzeHZZ4l(*mctruth, *muonHandle, *electronHandle, HltTree);
323  } else if (n_channel_ == 2) {
324  // mct_analysis_.analyzeHWW2l(*mctruth, *muonHandle,*electronHandle, HltTree);
325  mct_analysis_.analyzeHWW2l(*mctruth, *caloMet, *Tracks, *muonHandle,*electronHandle, HltTree);
326  } else if (n_channel_ == 3) {
327  mct_analysis_.analyzeHgg(*mctruth, *photonHandle, HltTree);
328  } else if (n_channel_ == 4) {
330  } else if (n_channel_ == 5) {
332  } else if (n_channel_ == 6) {
333  mct_analysis_.analyzeHinv(*mctruth, HltTree);
334  }
335 
336 
337 
338 // HLT part
339 
340  // get hold of HL TriggerResults
341  try {iEvent.getByLabel(hlTriggerResults_,HLTR);} catch (...) {;}
342  if (!HLTR.isValid()) {
343  LogDebug("") << "HL TriggerResults with label ["+hlTriggerResults_.encode()+"] not found!";
344  return;
345  }
346 
347  // initialisation
348  if (!init_) {
349  init_=true;
350  const edm::TriggerNames & triggerNames = iEvent.triggerNames(*HLTR);
351  hlNames_=triggerNames.triggerNames();
352  }
353 
354 
355  // define reco objects
356  reco::Muon muon1, muon2;
357  reco::GsfElectron electron1, electron2;
358  reco::Photon photon1, photon2;
359 
360 
361  //------------------------
362  // fill pt, eta reco objects
363  //
364  //---------------------------------
365 
366 
371  // trg_eff_gen_mc_mu -> Fill(4,1);
372 
374 
375  if (n_channel_==4){
378 
379  }
380  else{
381 
382  muon1 = mct_analysis_.muon1_();
383  muon2 = mct_analysis_.muon2_();
384 
385  h_ptmu1->Fill(muon1.pt());
386  h_ptmu2->Fill(muon2.pt());
387  h_etamu1->Fill(muon1.eta());
388  h_etamu2->Fill(muon2.eta());
389  }
390 
391 
392 
393  }
394 
398 
400  // trg_eff_gen_mc_elec -> Fill(4,1);
401 
403 
404  if (n_channel_==4){
407 
408  }
409  else{
410  electron1 = mct_analysis_.electron1_();
411  electron2 = mct_analysis_.electron2_();
412 
413 
414  // std::cout<<"iso="<< electron1.dr03TkSumPt()<<std::endl;
415 
416  h_ptel1->Fill(electron1.pt());
417  h_ptel2->Fill(electron2.pt());
418  h_etael1->Fill(electron1.eta());
419  h_etael2->Fill(electron2.eta());
420  }
421 
422  }
423 
427 
429  // trg_eff_gen_mc_emu -> Fill(4,1);
430 
432 
433  if (n_channel_!=4){
434  muon1 = mct_analysis_.muon1_();
435  electron1 = mct_analysis_.electron1_();
436 
437  h_ptmu1_emu->Fill(muon1.pt());
438  h_ptel1_emu->Fill(electron1.pt());
439  h_etamu1_emu->Fill(muon1.eta());
440  h_etael1_emu->Fill(electron1.eta());
441  }
442 
443  }
444 
448 
450 
451 
452  photon1 = mct_analysis_.photon1_();
453  photon2 = mct_analysis_.photon2_();
454 
455  h_ptph1->Fill(photon1.pt());
456  h_ptph2->Fill(photon2.pt());
457  h_etaph1->Fill(photon1.eta());
458  h_etaph2->Fill(photon2.eta());
459 
460  }
461 
462 
463  /* if (mct_analysis_.TauChannel_acc()) {
464  h_pttau1->Fill(mct_analysis_.ptTau1());
465  h_etatau1->Fill(mct_analysis_.etaTau1());
466 
467  }
468  */
469 
471 
472 
473  // decision for each HL algorithm
474  const unsigned int n(hlNames_.size());
475 
476  // wtrig if set to 1 for paths that have fired
477  int wtrig_m[100]={0};
478  int wtrig_eg[100]={0};
479  int wtrig_ph[100]={0};
480  int wtrig_tau[100]={0};
481  int wtrig_[100]={0};
482 
483  for (unsigned int i=0; i!=n; ++i) {
484  if (HLTR->accept(i)) {
485  for (int j=0;j<n_hlt_bits_mu;j++) {
486  if (hlNames_[i] == hlt_bitnamesMu[j]) {
487  wtrig_m[j]=1;
488  }
489  }
490  for(int jj=0;jj<n_hlt_bits_eg;jj++) {
491  if (hlNames_[i] == hlt_bitnamesEg[jj]) {
492  wtrig_eg[jj]=1;
493  }
494  }
495 
496  for (int j=0;j<n_hlt_bits;j++) {
497  if (hlNames_[i] == hlt_bitnames[j]) {
498  wtrig_[j]=1;
499  }
500  }
501 
502 
503  for(int k=0;k<n_hlt_bits_ph;k++) {
504  if (hlNames_[i] == hlt_bitnamesPh[k]) {
505  wtrig_ph[k]=1;
506  }
507  }
508  for(int k=0;k<n_hlt_bits_tau;k++) {
509  if (hlNames_[i] == hlt_bitnamesTau[k]) {
510  wtrig_tau[k]=1;
511  }
512  }
513 
514 
515  }
516  }
517 
518 
519 
521 
522  //------------------------------------
523  // muons
524  //-------------------------------------
525 
526 
527 
529 
530  for (int j=0;j<n_hlt_bits_mu;j++) {
531  h_mu_reco->Fill(j+1);
532 
533  if (wtrig_m[j]==1) {
535 
536  if (n_channel_==4){
539 
540  }
541  else{
542 
543  h_ptmu1_trig[j]->Fill(muon1.pt());
544  h_etamu1_trig[j]->Fill(muon1.eta());
545 
546  }
547  // hlt_bitmu_hist_reco->Fill(j+1);
548  //h_ptmu2_trig[j]->Fill(mct_analysis_.ptmuon2());
549  }
550  }
551  }
552 
553 
554 
555  //_------------------------------------
556  // electrons
557  //_-----------------------------------
558 
559 
560 
562 
563 
564  for (int j=0;j<n_hlt_bits_eg;j++) {
565  h_el_reco->Fill(j+1);
566  if (wtrig_eg[j]==1) {
568 
569  if (n_channel_==4){
572 
573  }
574  else {
575  h_ptel1_trig[j]->Fill(electron1.pt());
576  h_etael1_trig[j]->Fill(electron1.eta());
577  // hlt_bitel_hist_reco->Fill(j+1);
578  }
579  }
580  }
581  }
582 
583 
584 
585 //-------------------------------------------------
586 // emu channel
587 //
588 //----------------------------------------------------
589 
590 
592 
593  for (int j=0;j<n_hlt_bits;j++) {
594  h_emu_reco->Fill(j+1);
595  if (wtrig_[j]==1) {
597 
598  if (n_channel_!=4){
599  h_ptel1_emu_trig[j]->Fill(electron1.pt());
600  h_etael1_emu_trig[j]->Fill(electron1.eta());
601  h_ptmu1_emu_trig[j]->Fill(muon1.pt());
602  h_etamu1_emu_trig[j]->Fill(muon1.eta());
603  }
604  // hlt_bitemu_hist_reco->Fill(j+1);
605  }
606  }
607  }
608 
609 
610 
611 //--------------------------------
612 //
613 //
614 //------------------------------
615 
616  //photons reco
618  // h_ph_reco->Fill(1);
619  for (int j=0;j<n_hlt_bits_ph;j++) {
620  h_ph_reco->Fill(j+1);
621  if (wtrig_ph[j]==1) {
622  h_ptph1_trig[j]->Fill(photon1.pt());
623  h_etaph1_trig[j]->Fill(photon1.eta());
625  }
626  }
627  }
628 
629  //taus
631  // h_tau->Fill(1);
632 
633  // ev_clasif->Fill(mct_analysis_.evtype());
634  for (int j=0;j<n_hlt_bits_tau;j++) {
635  h_tau_gen->Fill(j+1);
636  if (wtrig_tau[j]==1) {
637  // h_pttau1_trig[j]->Fill(mct_analysis_.ptTau1());
638  // h_etatau1_trig[j]->Fill(mct_analysis_.etaTau1());
640  }
641  }
642  }
643 
644 
646 
647  //----------------
648 
649 
650 
652 
653  return;
654 
655 }
#define LogDebug(id)
MonitorElement * h_met_hwwdiel
Definition: HLTHiggsBits.h:220
MonitorElement * hlt_bitmu_hist_reco
Definition: HLTHiggsBits.h:202
int i
Definition: DBlmapReader.cc:9
void analyzeHWW2l(const reco::CandidateView &mctruth, const reco::CaloMETCollection &caloMet, const reco::TrackCollection &Tracks, const reco::MuonCollection &muonHandle, const reco::GsfElectronCollection &electronHandle, TTree *tree)
reco::Photon photon2_() const
std::vector< std::string > hlt_bitnames
Definition: HLTHiggsBits.h:279
void analyzeHtaunu(const reco::CandidateView &mctruth, TTree *tree)
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:208
edm::Handle< edm::TriggerResults > HLTR
Definition: HLTHiggsBits.h:248
MonitorElement * h_ptmu1_trig[20]
Definition: HLTHiggsBits.h:141
MonitorElement * h_mu_reco
Definition: HLTHiggsBits.h:203
bool TauChannel_acc() const
Definition: HLTHiggsTruth.h:97
MonitorElement * h_ptel1_emu
Definition: HLTHiggsBits.h:151
reco::Muon muon2_() const
MonitorElement * h_ptmu2
Definition: HLTHiggsBits.h:140
reco::Muon muon1_() const
std::vector< std::string > hlt_bitnamesPh
Definition: HLTHiggsBits.h:283
MonitorElement * hlt_bitel_hist_reco
Definition: HLTHiggsBits.h:205
MonitorElement * h_met_hwwdimu
Definition: HLTHiggsBits.h:219
double met_hwwdiel() const
MonitorElement * h_tau_gen
Definition: HLTHiggsBits.h:215
MonitorElement * h_ptmu1_emu
Definition: HLTHiggsBits.h:149
MonitorElement * h_ptel1_trig[20]
Definition: HLTHiggsBits.h:146
MonitorElement * h_ptph2
Definition: HLTHiggsBits.h:160
MonitorElement * h_etamu1_trig[20]
Definition: HLTHiggsBits.h:183
MonitorElement * h_etaph1
Definition: HLTHiggsBits.h:191
Strings const & triggerNames() const
Definition: TriggerNames.cc:24
std::string encode() const
Definition: InputTag.cc:72
MonitorElement * h_ptel2
Definition: HLTHiggsBits.h:145
bool ElecMuChannel_recoacc() const
MonitorElement * h_etael1_emu
Definition: HLTHiggsBits.h:152
void Fill(long long x)
MonitorElement * hlt_bitemu_hist_reco
Definition: HLTHiggsBits.h:208
MonitorElement * h_ptel1
Definition: HLTHiggsBits.h:144
double met_hwwdimu() const
bool MuonChannel_recoacc() const
MonitorElement * h_etaph1_trig[20]
Definition: HLTHiggsBits.h:193
MonitorElement * h_ptmu1
Definition: HLTHiggsBits.h:139
reco::GsfElectron electron1_() const
MonitorElement * h_etamu1_emu_trig[20]
Definition: HLTHiggsBits.h:154
MonitorElement * h_ptph1_trig[20]
Definition: HLTHiggsBits.h:161
MonitorElement * h_ptel1_emu_trig[20]
Definition: HLTHiggsBits.h:155
double ptMuon1() const
MonitorElement * h_etamu1_emu
Definition: HLTHiggsBits.h:150
reco::GsfElectron electron2_() const
int j
Definition: DBlmapReader.cc:9
MonitorElement * hlt_bittau_hist_gen
Definition: HLTHiggsBits.h:214
double met_hwwemu() const
edm::InputTag hlTriggerResults_
Definition: HLTHiggsBits.h:235
double etaElectron1() const
MonitorElement * h_etael2
Definition: HLTHiggsBits.h:187
double ptElectron1() const
bool isValid() const
Definition: HandleBase.h:76
MonitorElement * h_etael1_trig[20]
Definition: HLTHiggsBits.h:188
unsigned int nEvents_
Definition: HLTHiggsBits.h:265
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
MonitorElement * h_etamu2
Definition: HLTHiggsBits.h:182
int k[5][pyjets_maxn]
MonitorElement * h_ptph1
Definition: HLTHiggsBits.h:159
MonitorElement * h_emu_reco
Definition: HLTHiggsBits.h:209
reco::Photon photon1_() const
MonitorElement * h_ph_reco
Definition: HLTHiggsBits.h:212
TTree * HltTree
Definition: HLTHiggsBits.h:80
bool PhotonChannel_acc() const
Definition: HLTHiggsTruth.h:96
MonitorElement * h_etaph2
Definition: HLTHiggsBits.h:192
void analyzeHinv(const reco::CandidateView &mctruth, TTree *tree)
std::vector< std::string > hlNames_
Definition: HLTHiggsBits.h:266
MonitorElement * h_etamu1
Definition: HLTHiggsBits.h:181
MonitorElement * h_ptmu1_emu_trig[20]
Definition: HLTHiggsBits.h:153
edm::InputTag mctruth_
Definition: HLTHiggsBits.h:239
MonitorElement * hlt_bitph_hist_reco
Definition: HLTHiggsBits.h:211
MonitorElement * h_met_hwwemu
Definition: HLTHiggsBits.h:221
MonitorElement * h_etael1_emu_trig[20]
Definition: HLTHiggsBits.h:156
std::vector< std::string > hlt_bitnamesTau
Definition: HLTHiggsBits.h:284
MonitorElement * h_etael1
Definition: HLTHiggsBits.h:186
void analyzeHgg(const reco::CandidateView &mctruth, const reco::PhotonCollection &photonHandle, TTree *tree)
MonitorElement * h_el_reco
Definition: HLTHiggsBits.h:206
HLTHiggsTruth mct_analysis_
Definition: HLTHiggsBits.h:246
void analyzeHZZ4l(const reco::CandidateView &mctruth, const reco::MuonCollection &muonHandle, const reco::GsfElectronCollection &electronHandle, TTree *tree)
void analyzeH2tau(const reco::CandidateView &mctruth, TTree *tree)
double etaMuon1() const
std::vector< std::string > hlt_bitnamesEg
Definition: HLTHiggsBits.h:281
bool ElecChannel_recoacc() const
std::vector< std::string > hlt_bitnamesMu
Definition: HLTHiggsBits.h:280
void HLTHiggsBits::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 679 of file HLTHiggsBits.cc.

References dbe, outputFileName, outputMEsInRootFile, DQMStore::save(), and DQMStore::showDirStructure().

680 {
681  // final printout of accumulated statistics
682 
683  // std::cout << "Job ending " << std::endl;
684 
685  using namespace std;
686 
687  // std::cout << "Number of events handled: " << nEvents_ << std::endl;
688  // std::cout << "Number of events seen in MC: " << n_inmc_ << ", (" << 100.0*n_inmc_/nEvents_ <<"%)" << std::endl;
689 
690 
691 
692 // return;
693 
694 
695 
696  // HltTree->Fill();
697  // m_file->cd();
698  // HltTree->Write();
699  // delete HltTree;
700 
704  }
705 
706 
707  // HltTree = 0;
708 
709 // if (m_file!=0) { // if there was a tree file...
710  // m_file->Write(); // write out the branches
711  // delete m_file; // close and delete the file
712  // m_file=0; // set to zero to clean up
713  // }
714 
715 
716  return;
717 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:1898
DQMStore * dbe
Definition: HLTHiggsBits.h:77
bool outputMEsInRootFile
Definition: HLTHiggsBits.h:299
void showDirStructure(void) const
Definition: DQMStore.cc:2554
std::string outputFileName
Definition: HLTHiggsBits.h:298

Member Data Documentation

DQMStore* HLTHiggsBits::dbe

Definition at line 77 of file HLTHiggsBits.h.

Referenced by endJob(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_el_reco

Definition at line 206 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_emu_reco

Definition at line 209 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael1

Definition at line 186 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael1_emu

Definition at line 152 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael1_emu_trig[20]

Definition at line 156 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael1_trig[20]

Definition at line 188 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael2

Definition at line 187 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etael2_trig[20]

Definition at line 189 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_etamu1

Definition at line 181 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etamu1_emu

Definition at line 150 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etamu1_emu_trig[20]

Definition at line 154 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etamu1_trig[20]

Definition at line 183 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etamu2

Definition at line 182 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etamu2_trig[20]

Definition at line 184 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_etaph1

Definition at line 191 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etaph1_trig[20]

Definition at line 193 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etaph2

Definition at line 192 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_etaph2_trig[20]

Definition at line 194 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_etatau1

Definition at line 196 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_etatau1_trig[20]

Definition at line 198 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_met_hwwdiel

Definition at line 220 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_met_hwwdimu

Definition at line 219 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_met_hwwemu

Definition at line 221 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_mu_reco

Definition at line 203 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ph_reco

Definition at line 212 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel1

Definition at line 144 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel1_emu

Definition at line 151 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel1_emu_trig[20]

Definition at line 155 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel1_trig[20]

Definition at line 146 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel2

Definition at line 145 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptel2_trig[20]

Definition at line 147 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_ptmu1

Definition at line 139 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptmu1_emu

Definition at line 149 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptmu1_emu_trig[20]

Definition at line 153 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptmu1_trig[20]

Definition at line 141 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptmu2

Definition at line 140 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptmu2_trig[20]

Definition at line 142 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_ptph1

Definition at line 159 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptph1_trig[20]

Definition at line 161 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptph2

Definition at line 160 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::h_ptph2_trig[20]

Definition at line 162 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_pttau1

Definition at line 176 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_pttau1_trig[20]

Definition at line 178 of file HLTHiggsBits.h.

MonitorElement* HLTHiggsBits::h_tau_gen

Definition at line 215 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::string HLTHiggsBits::histName
private

Definition at line 278 of file HLTHiggsBits.h.

std::vector<std::string> HLTHiggsBits::hlNames_
private

Definition at line 266 of file HLTHiggsBits.h.

Referenced by analyze().

MonitorElement* HLTHiggsBits::hlt_bitel_hist_reco

Definition at line 205 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::hlt_bitemu_hist_reco

Definition at line 208 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::hlt_bitmu_hist_reco

Definition at line 202 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::vector<std::string> HLTHiggsBits::hlt_bitnames
private

Definition at line 279 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::vector<std::string> HLTHiggsBits::hlt_bitnamesEg
private

Definition at line 281 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::vector<std::string> HLTHiggsBits::hlt_bitnamesMu
private

Definition at line 280 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::vector<std::string> HLTHiggsBits::hlt_bitnamesPh
private

Definition at line 283 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

std::vector<std::string> HLTHiggsBits::hlt_bitnamesTau
private

Definition at line 284 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::hlt_bitph_hist_reco

Definition at line 211 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

MonitorElement* HLTHiggsBits::hlt_bittau_hist_gen

Definition at line 214 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int* HLTHiggsBits::hlt_nbits
private

Definition at line 275 of file HLTHiggsBits.h.

int HLTHiggsBits::hlt_whichbit[3][20][21]
private

Definition at line 271 of file HLTHiggsBits.h.

edm::Handle<edm::TriggerResults> HLTHiggsBits::HLTR
private

Definition at line 248 of file HLTHiggsBits.h.

Referenced by analyze().

edm::InputTag HLTHiggsBits::hlTriggerResults_
private

Definition at line 235 of file HLTHiggsBits.h.

Referenced by analyze().

TTree* HLTHiggsBits::HltTree

Definition at line 80 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

bool HLTHiggsBits::init_
private

Definition at line 267 of file HLTHiggsBits.h.

Referenced by analyze().

bool HLTHiggsBits::l1_decision
private

Definition at line 269 of file HLTHiggsBits.h.

TFile* HLTHiggsBits::m_file
private

Definition at line 274 of file HLTHiggsBits.h.

HLTHiggsTruth HLTHiggsBits::mct_analysis_
private

Definition at line 246 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

edm::InputTag HLTHiggsBits::mctruth_
private

Definition at line 239 of file HLTHiggsBits.h.

Referenced by analyze().

int HLTHiggsBits::n_channel_
private

Definition at line 241 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::n_hlt_bits
private

Definition at line 242 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::n_hlt_bits_eg
private

Definition at line 242 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::n_hlt_bits_mu
private

Definition at line 242 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::n_hlt_bits_ph
private

Definition at line 242 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::n_hlt_bits_tau
private

Definition at line 242 of file HLTHiggsBits.h.

Referenced by analyze(), and HLTHiggsBits().

int HLTHiggsBits::neventcount
private

Definition at line 276 of file HLTHiggsBits.h.

Referenced by analyze().

unsigned int HLTHiggsBits::nEvents_
private

Definition at line 265 of file HLTHiggsBits.h.

Referenced by analyze().

std::ofstream HLTHiggsBits::outfile
private

Definition at line 291 of file HLTHiggsBits.h.

std::string HLTHiggsBits::outFile_
private

Definition at line 298 of file HLTHiggsBits.h.

std::string HLTHiggsBits::outputFileName
private

Definition at line 298 of file HLTHiggsBits.h.

Referenced by endJob().

bool HLTHiggsBits::outputMEsInRootFile
private

Definition at line 299 of file HLTHiggsBits.h.

Referenced by endJob().

edm::ParameterSet HLTHiggsBits::parameters
std::string HLTHiggsBits::triggerTag_
private

Definition at line 297 of file HLTHiggsBits.h.

Referenced by HLTHiggsBits().