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  *
8 */
9 
13 
16 
17 #include <vector>
18 
19 class MonitorElement;
20 class DQMStore;
21 
23 
24  public:
25 
28 
30  virtual ~EETriggerTowerTask();
31 
33  static const int nTTEta;
34 
36  static const int nTTPhi;
37 
39  static const int nSM;
40 
41  protected:
42 
44  void analyze(const edm::Event& e,
45  const edm::EventSetup& c);
46 
48  void beginJob(void);
49 
51  void endJob(void);
52 
54  void beginRun(const edm::Run & r, const edm::EventSetup & c);
55 
57  void endRun(const edm::Run & r, const edm::EventSetup & c);
58 
60  void reset(void);
61 
63  void setup(void);
64 
66  void cleanup(void);
67 
68  private:
69 
71  typedef std::vector<MonitorElement*> array1;
72 
74  void reserveArray( array1& array );
75 
77  void processDigis( const edm::Event& e,
79  array1& meEtMap,
80  array1& meVeto,
85 
86 
88  void setup( std::string const &nameext,
89  std::string const &folder,
90  bool emulated);
91 
92 
94  int ievt_;
95 
98 
101 
104 
107 
114 
116  bool init_;
117 
120 
123 
126 
129 
132 
135 
138 
143 
146 
150 
155 
159 
163 
164 };
165 
166 #endif
bool enableCleanup_
remove MEs
edm::EDGetTokenT< EEDigiCollection > EEDigiCollection_
to find the input collection of crystal digis
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]
void beginJob(void)
BeginJob.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
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.
edm::EDGetTokenT< edm::TriggerResults > HLTResultsCollection_
to find the input collection of HLT bits
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.
edm::EDGetTokenT< EcalTrigPrimDigiCollection > emulCollection_
to find the input collection of emulated digis
void reset(void)
Reset.
MonitorElement * meEtSpectrumReal_[2]
ET spectrums for the whole EE+/-.
MonitorElement * meTCCTimingCalo_[2]
TCC timing.
MonitorElement * meEmulMatchIndex1D_[2]
1D emulator match 1D
void cleanup(void)
Cleanup.
Definition: Run.h:41
edm::EDGetTokenT< EcalTrigPrimDigiCollection > realCollection_
to find the input collection of real digis
MonitorElement * meTCCTimingMuon_[2]
int ievt_
local event counter