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 // $Id: HLTMon.h,v 1.3 2009/10/15 11:31:28 fwyzard Exp $
22 //
23 //
24 
25 
26 // system include files
27 #include <memory>
28 #include <unistd.h>
29 
30 
31 // user include files
34 
38 
44 #include <iostream>
45 #include <fstream>
46 #include <vector>
47 
48 //
49 // class decleration
50 //
51 
52 class HLTMon : public edm::EDAnalyzer {
53  public:
54  explicit HLTMon(const edm::ParameterSet&);
55  ~HLTMon();
56 
57 
58  private:
59  virtual void beginJob() ;
60  virtual void analyze(const edm::Event&, const edm::EventSetup&);
61  virtual void endJob() ;
62  template <class T> void fillHistos(edm::Handle<trigger::TriggerEventWithRefs>& , const edm::Event& ,unsigned int);
63 
64  // ----------member data ---------------------------
65  int nev_;
67  std::vector<MonitorElement *> etahist;
68  std::vector<MonitorElement *> ethist;
69  std::vector<MonitorElement *> phihist;
70  std::vector<MonitorElement *> eta_phihist;
71  std::vector<MonitorElement *> etahistiso;
72  std::vector<MonitorElement *> ethistiso;
73  std::vector<MonitorElement *> phihistiso;
75  std::vector<edm::InputTag> theHLTCollectionLabels;
76  std::vector<int> theHLTOutputTypes;
77  std::vector<bool> plotiso;
78  std::vector<std::vector<edm::InputTag> > isoNames; // there has to be a better solution
79  std::vector<std::pair<double,double> > plotBounds;
80  unsigned int reqNum;
81 
82  double thePtMin ;
83  double thePtMax ;
84  double thePtMinTemp;
85  double thePtMaxTemp;
86  unsigned int theNbins ;
87 
88  std::string dirname_;
90  ofstream logFile_;
92  std::string outputFile_;
93 
94  std::string histoTitle;
95 
96 };
97 #endif
std::vector< std::pair< double, double > > plotBounds
Definition: HLTMon.h:79
std::vector< MonitorElement * > eta_phihist
Definition: HLTMon.h:70
std::vector< MonitorElement * > etahistiso
Definition: HLTMon.h:71
bool monitorDaemon_
Definition: HLTMon.h:89
double thePtMaxTemp
Definition: HLTMon.h:85
unsigned int reqNum
Definition: HLTMon.h:80
std::vector< MonitorElement * > phihist
Definition: HLTMon.h:69
std::string outputFile_
Definition: HLTMon.h:92
double thePtMin
Definition: HLTMon.h:82
Definition: HLTMon.h:52
std::string dirname_
Definition: HLTMon.h:88
int theHLTOutputType
Definition: HLTMon.h:91
MonitorElement * total
Definition: HLTMon.h:74
std::string histoTitle
Definition: HLTMon.h:94
virtual void endJob()
Definition: HLTMon.cc:355
~HLTMon()
Definition: HLTMon.cc:110
std::vector< MonitorElement * > phihistiso
Definition: HLTMon.h:73
std::vector< bool > plotiso
Definition: HLTMon.h:77
virtual void beginJob()
Definition: HLTMon.cc:229
std::vector< MonitorElement * > etahist
Definition: HLTMon.h:67
std::vector< MonitorElement * > ethistiso
Definition: HLTMon.h:72
DQMStore * dbe
Definition: HLTMon.h:66
std::vector< MonitorElement * > ethist
Definition: HLTMon.h:68
double thePtMax
Definition: HLTMon.h:83
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:75
std::vector< int > theHLTOutputTypes
Definition: HLTMon.h:76
double thePtMinTemp
Definition: HLTMon.h:84
int nev_
Definition: HLTMon.h:65
ofstream logFile_
Definition: HLTMon.h:90
std::vector< std::vector< edm::InputTag > > isoNames
Definition: HLTMon.h:78
unsigned int theNbins
Definition: HLTMon.h:86