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>
11 
12 class Timestamp;
13 
15 public:
16  explicit EcalStatusAnalyzer(const edm::ParameterSet& iConfig);
17  ~EcalStatusAnalyzer() override = default;
18 
19  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
20  void beginJob() override;
21  void endJob() override;
22 
24  iBLUE = 0,
25  iGREEN = 1,
26  iRED = 3, // in fact should be 2
27  iIR = 2 // in fact should be 3
28  };
29 
30 private:
31  int iEvent;
32 
34 
41 
42  std::map<int, int> isFedLasCreated;
43  std::map<int, int> isFedTPCreated;
44  std::map<int, int> isFedPedCreated;
45 
46  std::vector<int> fedIDsLas;
47  std::vector<int> fedIDsTP;
48  std::vector<int> fedIDsPed;
49  std::vector<int> dccIDsLas;
50  std::vector<int> dccIDsTP;
51  std::vector<int> dccIDsPed;
52 
53  // Identify run type
54 
55  int runType;
56  int runNum;
57  int event;
58  int nSM;
59  int fedID;
60  int dccID;
61 
62  unsigned long long timeStampCur;
63 
64  std::map<int, unsigned long long> timeStampBegLas;
65  std::map<int, unsigned long long> timeStampEndLas;
66 
67  std::map<int, unsigned long long> timeStampBegTP;
68  std::map<int, unsigned long long> timeStampEndTP;
69 
70  std::map<int, unsigned long long> timeStampBegPed;
71  std::map<int, unsigned long long> timeStampEndPed;
72 
73  std::map<int, short> MGPAGainLas;
74  std::map<int, short> MEMGainLas;
75 
76  std::map<int, short> MGPAGainTP;
77  std::map<int, short> MEMGainTP;
78 
79  std::map<int, short> MGPAGainPed;
80  std::map<int, short> MEMGainPed;
81 
82  std::map<int, int> laserPowerBlue;
83  std::map<int, int> laserFilterBlue;
84  std::map<int, int> laserDelayBlue;
85 
86  std::map<int, int> laserPowerRed;
87  std::map<int, int> laserFilterRed;
88  std::map<int, int> laserDelayRed;
89 
90  std::map<int, int> nEvtsLas;
91  std::map<int, int> nBlueLas;
92  std::map<int, int> nRedLas;
93  std::map<int, int> runTypeLas;
94 
95  std::map<int, int> nEvtsTP;
96  std::map<int, int> runTypeTP;
97 
98  std::map<int, int> nEvtsPed;
99  std::map<int, int> runTypePed;
100 };
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
void analyze(const edm::Event &e, const edm::EventSetup &c) override
std::map< int, unsigned long long > timeStampEndTP
void endJob() override
const std::string eventHeaderCollection_
std::map< int, unsigned long long > timeStampEndLas
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
const std::string statusfile_
std::vector< int > fedIDsPed
std::map< int, int > runTypeTP
const 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
const std::string _dataType
const edm::EDGetTokenT< EcalTBEventHeader > headToken_
std::map< int, int > laserFilterRed
~EcalStatusAnalyzer() override=default
std::map< int, short > MGPAGainPed
std::map< int, unsigned long long > timeStampEndPed
const std::string resdir_
std::map< int, short > MEMGainPed
std::map< int, short > MGPAGainTP
void beginJob() override
std::vector< int > dccIDsLas
unsigned long long timeStampCur
const edm::EDGetTokenT< EcalRawDataCollection > dccToken_
std::map< int, int > nEvtsPed
std::map< int, int > laserFilterBlue
std::map< int, int > laserPowerBlue