CMS 3D CMS Logo

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