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  * $Date: 2012/04/27 13:46:01 $
8  * $Revision: 1.33 $
9  *
10 */
11 
15 
17 
18 #include <vector>
19 
20 class MonitorElement;
21 class DQMStore;
22 
24 
25  public:
26 
29 
31  virtual ~EBTriggerTowerTask();
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
void setup(void)
Setup.
EBTriggerTowerTask(const edm::ParameterSet &ps)
Constructor.
static const int nTTPhi
number of trigger towers in phi
void beginJob(void)
BeginJob.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
edm::InputTag realCollection_
to find the input collection of real digis
MonitorElement * meEtSpectrumReal_
ET spectrums for the whole EB.
edm::InputTag HLTResultsCollection_
to find the input collection of HLT bits
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
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
edm::InputTag emulCollection_
to find the input collection of emulated digis
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::InputTag EBDigiCollection_
to find the input collection of crystal digis
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:33