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 };
EcalStatusAnalyzer::isFedPedCreated
std::map< int, int > isFedPedCreated
Definition: EcalStatusAnalyzer.h:37
EcalStatusAnalyzer::iIR
Definition: EcalStatusAnalyzer.h:24
EcalStatusAnalyzer::MGPAGainTP
std::map< int, short > MGPAGainTP
Definition: EcalStatusAnalyzer.h:71
EcalStatusAnalyzer::timeStampBegLas
std::map< int, unsigned long long > timeStampBegLas
Definition: EcalStatusAnalyzer.h:59
EcalStatusAnalyzer
Definition: EcalStatusAnalyzer.h:11
Timestamp
EcalStatusAnalyzer::fedID
int fedID
Definition: EcalStatusAnalyzer.h:54
EcalStatusAnalyzer::statusfile_
std::string statusfile_
Definition: EcalStatusAnalyzer.h:31
EcalStatusAnalyzer::MEMGainLas
std::map< int, short > MEMGainLas
Definition: EcalStatusAnalyzer.h:69
EcalStatusAnalyzer::iRED
Definition: EcalStatusAnalyzer.h:23
EcalStatusAnalyzer::~EcalStatusAnalyzer
~EcalStatusAnalyzer() override
Definition: EcalStatusAnalyzer.cc:58
EcalStatusAnalyzer::nSM
int nSM
Definition: EcalStatusAnalyzer.h:53
EDAnalyzer.h
EcalStatusAnalyzer::laserPowerBlue
std::map< int, int > laserPowerBlue
Definition: EcalStatusAnalyzer.h:77
EcalStatusAnalyzer::timeStampCur
unsigned long long timeStampCur
Definition: EcalStatusAnalyzer.h:57
EcalStatusAnalyzer::EcalLaserColorType
EcalLaserColorType
Definition: EcalStatusAnalyzer.h:20
EcalStatusAnalyzer::laserPowerRed
std::map< int, int > laserPowerRed
Definition: EcalStatusAnalyzer.h:81
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalStatusAnalyzer::nEvtsTP
std::map< int, int > nEvtsTP
Definition: EcalStatusAnalyzer.h:90
EcalStatusAnalyzer::nEvtsPed
std::map< int, int > nEvtsPed
Definition: EcalStatusAnalyzer.h:93
EcalStatusAnalyzer::runTypePed
std::map< int, int > runTypePed
Definition: EcalStatusAnalyzer.h:94
EcalStatusAnalyzer::eventHeaderProducer_
std::string eventHeaderProducer_
Definition: EcalStatusAnalyzer.h:33
EcalStatusAnalyzer::dccIDsLas
std::vector< int > dccIDsLas
Definition: EcalStatusAnalyzer.h:42
EcalStatusAnalyzer::eventHeaderCollection_
std::string eventHeaderCollection_
Definition: EcalStatusAnalyzer.h:32
EcalStatusAnalyzer::timeStampEndTP
std::map< int, unsigned long long > timeStampEndTP
Definition: EcalStatusAnalyzer.h:63
EcalStatusAnalyzer::isFedLasCreated
std::map< int, int > isFedLasCreated
Definition: EcalStatusAnalyzer.h:35
EcalStatusAnalyzer::laserFilterBlue
std::map< int, int > laserFilterBlue
Definition: EcalStatusAnalyzer.h:78
EcalStatusAnalyzer::laserFilterRed
std::map< int, int > laserFilterRed
Definition: EcalStatusAnalyzer.h:82
EcalStatusAnalyzer::iEvent
int iEvent
Definition: EcalStatusAnalyzer.h:28
EcalStatusAnalyzer::timeStampBegPed
std::map< int, unsigned long long > timeStampBegPed
Definition: EcalStatusAnalyzer.h:65
EcalStatusAnalyzer::dccIDsPed
std::vector< int > dccIDsPed
Definition: EcalStatusAnalyzer.h:44
EcalStatusAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: EcalStatusAnalyzer.cc:79
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalStatusAnalyzer::runType
int runType
Definition: EcalStatusAnalyzer.h:50
EcalStatusAnalyzer::timeStampBegTP
std::map< int, unsigned long long > timeStampBegTP
Definition: EcalStatusAnalyzer.h:62
edm::ParameterSet
Definition: ParameterSet.h:47
EcalStatusAnalyzer::beginJob
void beginJob() override
Definition: EcalStatusAnalyzer.cc:66
EcalStatusAnalyzer::dccID
int dccID
Definition: EcalStatusAnalyzer.h:55
EcalStatusAnalyzer::MEMGainPed
std::map< int, short > MEMGainPed
Definition: EcalStatusAnalyzer.h:75
EcalStatusAnalyzer::laserDelayRed
std::map< int, int > laserDelayRed
Definition: EcalStatusAnalyzer.h:83
EcalStatusAnalyzer::endJob
void endJob() override
Definition: EcalStatusAnalyzer.cc:272
EcalStatusAnalyzer::runNum
int runNum
Definition: EcalStatusAnalyzer.h:51
EcalStatusAnalyzer::EcalStatusAnalyzer
EcalStatusAnalyzer(const edm::ParameterSet &iConfig)
Definition: EcalStatusAnalyzer.cc:38
edm::EventSetup
Definition: EventSetup.h:58
EcalStatusAnalyzer::timeStampEndLas
std::map< int, unsigned long long > timeStampEndLas
Definition: EcalStatusAnalyzer.h:60
EcalStatusAnalyzer::nRedLas
std::map< int, int > nRedLas
Definition: EcalStatusAnalyzer.h:87
EcalStatusAnalyzer::fedIDsTP
std::vector< int > fedIDsTP
Definition: EcalStatusAnalyzer.h:40
EcalStatusAnalyzer::iBLUE
Definition: EcalStatusAnalyzer.h:21
EcalStatusAnalyzer::runTypeLas
std::map< int, int > runTypeLas
Definition: EcalStatusAnalyzer.h:88
EcalStatusAnalyzer::dccIDsTP
std::vector< int > dccIDsTP
Definition: EcalStatusAnalyzer.h:43
EcalStatusAnalyzer::fedIDsPed
std::vector< int > fedIDsPed
Definition: EcalStatusAnalyzer.h:41
EcalStatusAnalyzer::event
int event
Definition: EcalStatusAnalyzer.h:52
EcalStatusAnalyzer::fedIDsLas
std::vector< int > fedIDsLas
Definition: EcalStatusAnalyzer.h:39
EcalStatusAnalyzer::MGPAGainLas
std::map< int, short > MGPAGainLas
Definition: EcalStatusAnalyzer.h:68
EcalStatusAnalyzer::MEMGainTP
std::map< int, short > MEMGainTP
Definition: EcalStatusAnalyzer.h:72
EcalStatusAnalyzer::timeStampEndPed
std::map< int, unsigned long long > timeStampEndPed
Definition: EcalStatusAnalyzer.h:66
EcalStatusAnalyzer::nEvtsLas
std::map< int, int > nEvtsLas
Definition: EcalStatusAnalyzer.h:85
EcalStatusAnalyzer::resdir_
std::string resdir_
Definition: EcalStatusAnalyzer.h:30
EcalStatusAnalyzer::_dataType
std::string _dataType
Definition: EcalStatusAnalyzer.h:46
EcalStatusAnalyzer::isFedTPCreated
std::map< int, int > isFedTPCreated
Definition: EcalStatusAnalyzer.h:36
EcalStatusAnalyzer::laserDelayBlue
std::map< int, int > laserDelayBlue
Definition: EcalStatusAnalyzer.h:79
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
EcalStatusAnalyzer::nBlueLas
std::map< int, int > nBlueLas
Definition: EcalStatusAnalyzer.h:86
edm::Event
Definition: Event.h:73
EcalStatusAnalyzer::iGREEN
Definition: EcalStatusAnalyzer.h:22
EcalStatusAnalyzer::MGPAGainPed
std::map< int, short > MGPAGainPed
Definition: EcalStatusAnalyzer.h:74
EcalStatusAnalyzer::runTypeTP
std::map< int, int > runTypeTP
Definition: EcalStatusAnalyzer.h:91
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37