CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EBTriggerTowerTask.h
Go to the documentation of this file.
1 #ifndef EBTriggerTowerTask_H
2 #define EBTriggerTowerTask_H
3 
4 /*
5  * \file EBTriggerTowerTask.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 ~EBTriggerTowerTask();
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
void setup(void)
Setup.
EBTriggerTowerTask(const edm::ParameterSet &ps)
Constructor.
static const int nTTPhi
number of trigger towers in phi
void beginJob(void)
BeginJob.
edm::EDGetTokenT< EBDigiCollection > EBDigiCollection_
to find the input collection of crystal digis
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * meEtSpectrumReal_
ET spectrums for the whole EB.
edm::EDGetTokenT< EcalTrigPrimDigiCollection > realCollection_
to find the input collection of real digis
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::EDGetTokenT< EcalTrigPrimDigiCollection > emulCollection_
to find the input collection of emulated digis
static const int nTTEta
number of trigger towers in eta
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
bool enableCleanup_
remove MEs
static const int nSM
number of supermodules
std::string outputFile_
debug output root file. if empty, no output file created.
bool mergeRuns_
merge MEs across runs
MonitorElement * meEmulMatchMaxIndex1D_
void reset(void)
Reset.
std::vector< MonitorElement * > array1
1D array
array1 meVetoReal_
fine grain veto vs iphi vs ieta, for each SM
MonitorElement * meEtBxReal_
number and ET average of TP vs bx
array1 meEtMapEmul_
Emulated Et vs ix vs iy, for each SM.
virtual ~EBTriggerTowerTask()
Destructor.
edm::EDGetTokenT< edm::TriggerResults > HLTResultsCollection_
to find the input collection of HLT bits
int ievt_
local event counter
array1 meEtMapReal_
Et vs ix vs iy, for each SM.
void cleanup(void)
Cleanup.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * meTCCTimingMuon_
void reserveArray(array1 &array)
reserve an array to hold one histogram per supermodule
std::string prefixME_
path to MEs
DQMStore * dqmStore_
DQM back-end interface.
MonitorElement * meEmulMatchIndex1D_
1D emulator match 1D
array1 meVetoEmul_
Emulated fine grain veto vs iphi vs ieta, for each SM.
void endJob(void)
EndJob.
MonitorElement * meOccupancyBxReal_
MonitorElement * meEtSpectrumEmulMax_
MonitorElement * meTCCTimingCalo_
TCC timing.
MonitorElement * meEtSpectrumEmul_
Definition: Run.h:41