CMS 3D CMS Logo

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