CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTMonElectron.h
Go to the documentation of this file.
1 #ifndef HLTMONELECTRON_H
2 #define HLTMONELECTRON_H
3 // -*- C++ -*-
4 //
5 // Package: HLTMonElectron
6 // Class: HLTMonElectron
7 //
17 //
18 // Original Author: Lorenzo AGOSTINO
19 // Created: Wed Jan 16 15:55:28 CET 2008
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 #include <unistd.h>
27 
28 
29 // user include files
32 
36 
42 #include <iostream>
43 #include <fstream>
44 #include <vector>
45 
46 //
47 // class decleration
48 //
49 
51  public:
52  explicit HLTMonElectron(const edm::ParameterSet&);
54 
55 
56  private:
57  virtual void beginJob() ;
58  virtual void analyze(const edm::Event&, const edm::EventSetup&);
59  virtual void endJob() ;
60  template <class T> void fillHistos(edm::Handle<trigger::TriggerEventWithRefs>& , const edm::Event& ,unsigned int);
61 
62  // ----------member data ---------------------------
63  int nev_;
65  std::vector<MonitorElement *> etahist;
66  std::vector<MonitorElement *> phihist;
67  std::vector<MonitorElement *> ethist;
68  std::vector<MonitorElement *> etahistiso;
69  std::vector<MonitorElement *> phihistiso;
70  std::vector<MonitorElement *> ethistiso;
72  std::vector<edm::InputTag> theHLTCollectionLabels;
73  std::vector<int> theHLTOutputTypes;
74  std::vector<bool> plotiso;
75  std::vector<std::vector<edm::InputTag> > isoNames; // there has to be a better solution
76  std::vector<std::pair<double,double> > plotBounds;
77  unsigned int reqNum;
78 
79  double thePtMin ;
80  double thePtMax ;
81  unsigned int theNbins ;
82 
85  std::ofstream logFile_;
88 
89 };
90 #endif
std::string dirname_
std::vector< MonitorElement * > phihist
std::vector< MonitorElement * > ethistiso
std::vector< std::vector< edm::InputTag > > isoNames
virtual void analyze(const edm::Event &, const edm::EventSetup &)
DQMStore * dbe
std::vector< bool > plotiso
MonitorElement * total
unsigned int reqNum
HLTMonElectron(const edm::ParameterSet &)
std::vector< int > theHLTOutputTypes
unsigned int theNbins
std::string outputFile_
std::vector< MonitorElement * > etahist
virtual void beginJob()
std::vector< std::pair< double, double > > plotBounds
std::vector< edm::InputTag > theHLTCollectionLabels
std::vector< MonitorElement * > ethist
void fillHistos(edm::Handle< trigger::TriggerEventWithRefs > &, const edm::Event &, unsigned int)
std::ofstream logFile_
virtual void endJob()
std::vector< MonitorElement * > phihistiso
std::vector< MonitorElement * > etahistiso