CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EETriggerTowerTask.h
Go to the documentation of this file.
1 #ifndef EETriggerTowerTask_H
2 #define EETriggerTowerTask_H
3 
4 /*
5  * \file EETriggerTowerTask.h
6  *
7  * $Date: 2012/04/27 13:46:13 $
8  * $Revision: 1.29 $
9  *
10 */
11 
15 
17 
18 #include <vector>
19 
20 class MonitorElement;
21 class DQMStore;
22 
24 
25  public:
26 
29 
31  virtual ~EETriggerTowerTask();
32 
34  static const int nTTEta;
35 
37  static const int nTTPhi;
38 
40  static const int nSM;
41 
42  protected:
43 
45  void analyze(const edm::Event& e,
46  const edm::EventSetup& c);
47 
49  void beginJob(void);
50 
52  void endJob(void);
53 
55  void beginRun(const edm::Run & r, const edm::EventSetup & c);
56 
58  void endRun(const edm::Run & r, const edm::EventSetup & c);
59 
61  void reset(void);
62 
64  void setup(void);
65 
67  void cleanup(void);
68 
69  private:
70 
72  typedef std::vector<MonitorElement*> array1;
73 
75  void reserveArray( array1& array );
76 
78  void processDigis( const edm::Event& e,
80  array1& meEtMap,
81  array1& meVeto,
86 
87 
89  void setup( std::string const &nameext,
90  std::string const &folder,
91  bool emulated);
92 
93 
95  int ievt_;
96 
99 
102 
105 
108 
115 
117  bool init_;
118 
121 
123  std::string prefixME_;
124 
127 
130 
133 
136 
139 
142  std::string HLTCaloHLTBit_;
143  std::string HLTMuonHLTBit_;
144 
146  std::string outputFile_;
147 
151 
156 
160 
164 
165 };
166 
167 #endif
bool enableCleanup_
remove MEs
void endJob(void)
EndJob.
virtual ~EETriggerTowerTask()
Destructor.
array1 meVetoEmul_
Emulated fine grain veto vs ix vs iy, for each SM.
MonitorElement * meEtBxReal_[2]
number and ET average of TP vs bx for the whole EE+/-
std::string outputFile_
debug output root file. if empty, no output file created.
static const int nSM
number of supermodules
void setup(void)
Setup.
static const int nTTPhi
number of trigger towers in phi
MonitorElement * meOccupancyBxReal_[2]
void reserveArray(array1 &array)
reserve an array to hold one histogram per supermodule
MonitorElement * meEtSpectrumEmul_[2]
edm::InputTag emulCollection_
to find the input collection of emulated digis
void beginJob(void)
BeginJob.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
edm::InputTag HLTResultsCollection_
to find the input collection of HLT bits
std::vector< MonitorElement * > array1
1D array
void processDigis(const edm::Event &e, const edm::Handle< EcalTrigPrimDigiCollection > &digis, array1 &meEtMap, array1 &meVeto, const edm::Handle< EcalTrigPrimDigiCollection > &compDigis=edm::Handle< EcalTrigPrimDigiCollection >(), const edm::Handle< edm::TriggerResults > &hltResults=edm::Handle< edm::TriggerResults >())
process a collection of digis, either real or emulated
static const int nTTEta
number of trigger towers in eta
DQMStore * dqmStore_
DQM back-end interface.
MonitorElement * meEmulMatchMaxIndex1D_[2]
array1 meEtMapEmul_
Emulated Et vs ix vs iy, for each SM.
array1 meVetoReal_
fine grain veto vs ix vs iy, for each SM
array1 meEtMapReal_
Et vs ix vs iy, for each SM.
std::string prefixME_
path to MEs
EETriggerTowerTask(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meEtSpectrumEmulMax_[2]
bool mergeRuns_
merge MEs across runs
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void reset(void)
Reset.
MonitorElement * meEtSpectrumReal_[2]
ET spectrums for the whole EE+/-.
edm::InputTag realCollection_
to find the input collection of real digis
MonitorElement * meTCCTimingCalo_[2]
TCC timing.
MonitorElement * meEmulMatchIndex1D_[2]
1D emulator match 1D
void cleanup(void)
Cleanup.
edm::InputTag EEDigiCollection_
to find the input collection of crystal digis
Definition: Run.h:33
MonitorElement * meTCCTimingMuon_[2]
int ievt_
local event counter