CMS 3D CMS Logo

EcalStatusAnalyzer.h
Go to the documentation of this file.
1 // $Id: EcalStatusAnalyzer.h
2 
3 #include <vector>
4 #include <map>
5 
6 #include <memory>
8 
9 class Timestamp;
10 
12 public:
13  explicit EcalStatusAnalyzer(const edm::ParameterSet& iConfig);
14  ~EcalStatusAnalyzer() override;
15 
16  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
17  void beginJob() override;
18  void endJob() override;
19 
21  iBLUE = 0,
22  iGREEN = 1,
23  iRED = 3, // in fact should be 2
24  iIR = 2 // in fact should be 3
25  };
26 
27 private:
28  int iEvent;
29 
34 
35  std::map<int, int> isFedLasCreated;
36  std::map<int, int> isFedTPCreated;
37  std::map<int, int> isFedPedCreated;
38 
39  std::vector<int> fedIDsLas;
40  std::vector<int> fedIDsTP;
41  std::vector<int> fedIDsPed;
42  std::vector<int> dccIDsLas;
43  std::vector<int> dccIDsTP;
44  std::vector<int> dccIDsPed;
45 
47 
48  // Identify run type
49 
50  int runType;
51  int runNum;
52  int event;
53  int nSM;
54  int fedID;
55  int dccID;
56 
57  unsigned long long timeStampCur;
58 
59  std::map<int, unsigned long long> timeStampBegLas;
60  std::map<int, unsigned long long> timeStampEndLas;
61 
62  std::map<int, unsigned long long> timeStampBegTP;
63  std::map<int, unsigned long long> timeStampEndTP;
64 
65  std::map<int, unsigned long long> timeStampBegPed;
66  std::map<int, unsigned long long> timeStampEndPed;
67 
68  std::map<int, short> MGPAGainLas;
69  std::map<int, short> MEMGainLas;
70 
71  std::map<int, short> MGPAGainTP;
72  std::map<int, short> MEMGainTP;
73 
74  std::map<int, short> MGPAGainPed;
75  std::map<int, short> MEMGainPed;
76 
77  std::map<int, int> laserPowerBlue;
78  std::map<int, int> laserFilterBlue;
79  std::map<int, int> laserDelayBlue;
80 
81  std::map<int, int> laserPowerRed;
82  std::map<int, int> laserFilterRed;
83  std::map<int, int> laserDelayRed;
84 
85  std::map<int, int> nEvtsLas;
86  std::map<int, int> nBlueLas;
87  std::map<int, int> nRedLas;
88  std::map<int, int> runTypeLas;
89 
90  std::map<int, int> nEvtsTP;
91  std::map<int, int> runTypeTP;
92 
93  std::map<int, int> nEvtsPed;
94  std::map<int, int> runTypePed;
95 };
std::map< int, int > nRedLas
std::map< int, int > laserDelayRed
std::vector< int > dccIDsPed
std::map< int, short > MGPAGainLas
std::map< int, int > laserPowerRed
std::map< int, int > runTypePed
std::vector< int > fedIDsTP
~EcalStatusAnalyzer() override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::map< int, unsigned long long > timeStampEndTP
void endJob() override
std::map< int, unsigned long long > timeStampEndLas
std::string eventHeaderCollection_
std::map< int, short > MEMGainTP
std::map< int, int > nEvtsLas
EcalStatusAnalyzer(const edm::ParameterSet &iConfig)
std::map< int, unsigned long long > timeStampBegTP
std::map< int, int > isFedLasCreated
std::vector< int > dccIDsTP
std::map< int, short > MEMGainLas
std::map< int, int > isFedPedCreated
std::map< int, unsigned long long > timeStampBegPed
std::map< int, int > nEvtsTP
std::vector< int > fedIDsLas
std::vector< int > fedIDsPed
std::map< int, int > runTypeTP
std::string eventHeaderProducer_
std::map< int, int > runTypeLas
std::map< int, unsigned long long > timeStampBegLas
std::map< int, int > nBlueLas
std::map< int, int > isFedTPCreated
std::map< int, int > laserDelayBlue
std::map< int, int > laserFilterRed
std::map< int, short > MGPAGainPed
std::map< int, unsigned long long > timeStampEndPed
std::map< int, short > MEMGainPed
std::map< int, short > MGPAGainTP
void beginJob() override
std::vector< int > dccIDsLas
unsigned long long timeStampCur
std::map< int, int > nEvtsPed
std::map< int, int > laserFilterBlue
std::map< int, int > laserPowerBlue