CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcnaAnalyzer.h
Go to the documentation of this file.
1 #ifndef CL_EcnaAnalyzer_H
2 #define CL_EcnaAnalyzer_H
3 
4 // -*- C++ -*-
5 //
6 // Package: EcalCorrelatedNoiseAnalysisModules
7 // Class: EcnaAnalyzer
8 //
16 //
17 // Original Author: Bernard Fabbro
18 // Created: Fri Jun 2 10:27:01 CEST 2006
19 // $Id: EcnaAnalyzer.h,v 1.2 2007/07/13 12:11:58 fabbro Exp $
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 #include <iostream>
27 #include <fstream>
28 #include <iomanip>
29 #include <string>
30 #include <vector>
31 #include <time.h>
32 #include "Riostream.h"
33 
34 #include <sys/time.h>
35 
36 // ROOT include files
37 #include "TObject.h"
38 #include "TSystem.h"
39 #include "TString.h"
40 #include "TVectorD.h"
41 #include "TTreeIndex.h"
42 
43 // CMSSW include files
52 
54 
62 
64 //#include "Geometry/EcalMapping/interface/EcalElectronicsMapping.h"
65 //#include "Geometry/EcalMapping/interface/EcalMappingRcd.h"
66 
68 
69 // user include files
73 
74 //
75 // class declaration
76 //
77 
78 class EcnaAnalyzer : public edm::EDAnalyzer {
79 
80  public:
81 
82  enum { kChannels = 1700, kGains = 3, kFirstGainId = 1 };
83 
84  explicit EcnaAnalyzer(const edm::ParameterSet&);
85  ~EcnaAnalyzer();
86 
87  virtual void analyze(const edm::Event&, const edm::EventSetup&);
88  TString runtype(const Int_t&);
89  Int_t gainvalue(const Int_t&);
90  void CheckMsg(const Int_t&, const Int_t&);
91  void CheckMsg(const Int_t&);
92  Bool_t AnalysisOutcome(const TString);
93 
94  private:
95 
96  Int_t fgMaxCar; // Max nb of caracters for char*
97  TString fTTBELL;
98 
99  // ----------member data ---------------------------
100  unsigned int verbosity_;
101  Int_t nChannels_;
102  Int_t iEvent_; // should be removed when we can access class EventID
108 
109  TString sAnalysisName_;
110  TString sNbOfSamples_;
112  TString sLastReqEvent_;
113  TString sReqNbOfEvts_;
114  TString sStexName_;
115  TString sStexNumber_;
116 
118 
119  Int_t fEvtNumber;
121  Int_t fRecNumber;
124 
126 
127  TString fCfgAnalyzerParametersFilePath; // absolute path for the analyzer parameters files (/afs/etc...)
128  TString fCfgAnalyzerParametersFileName; // name of the analyzer parameters file
129  ifstream fFcin_f;
130 
131  TString fAnalysisName;
132  Int_t fChozenGainNumber; // determined from fAnalysisName
133  Int_t fChozenRunTypeNumber; // determined from fAnalysisName
134  TString fDynBaseLineSub; // determined from fAnalysisName
135 
137  Int_t fRunNumber;
141  TString fStexName;
142  Int_t fStexNumber;
143 
146 
153 
154  Int_t fFedTcc;
160  Int_t fFedId;
162 
166  Int_t* fStexDigiOK;
168  Int_t* fStexStatus;
169 
171  Int_t* fFedStatus;
172  Int_t* fFedDigiOK;
174 
175  Int_t fMemoCutOK;
179 
182  Int_t fLASER_STD;
183  Int_t fPEDSIM;
184 
185  time_t* fTimeFirst;
186  time_t* fTimeLast;
187  TString* fDateFirst;
188  TString* fDateLast;
189 
191 
194 
197 
200 
202 
203  // Int_t** fT2d_LastEvt; // 2D array[channel][sample] max nb of evts read for a given (channel,sample)
204  // Int_t* fT1d_LastEvt;
205 
208 
211 
214 
216  Int_t* fCounterQuad;
217 };
218 
219 #endif
Int_t fFirstReqEvent
Definition: EcnaAnalyzer.h:139
Int_t * fStexNbOfTreatedEvents
Definition: EcnaAnalyzer.h:167
Int_t * fFedStatus
Definition: EcnaAnalyzer.h:171
time_t * fTimeLast
Definition: EcnaAnalyzer.h:186
Int_t fStexIndexBegin
Definition: EcnaAnalyzer.h:151
Int_t fDeeDS5Memo2
Definition: EcnaAnalyzer.h:165
Int_t * fFedIdCounter
Definition: EcnaAnalyzer.h:213
TString * fDateLast
Definition: EcnaAnalyzer.h:188
Int_t fRunTypeNumber
Definition: EcnaAnalyzer.h:138
TString runtype(const Int_t &)
Int_t fChozenRunTypeNumber
Definition: EcnaAnalyzer.h:133
EcnaAnalyzer(const edm::ParameterSet &)
Definition: EcnaAnalyzer.cc:40
Int_t fMaxMgpaGainCounter
Definition: EcnaAnalyzer.h:209
TString sAnalysisName_
Definition: EcnaAnalyzer.h:109
TEcnaParEcal * fMyEEEcal
Definition: EcnaAnalyzer.h:199
Int_t fDeeIndexStop
Definition: EcnaAnalyzer.h:150
Int_t fNbOfTreatedStexs
Definition: EcnaAnalyzer.h:176
Int_t * fFedNbOfTreatedEvents
Definition: EcnaAnalyzer.h:173
TEcnaNumbering * fMyEENumbering
Definition: EcnaAnalyzer.h:198
string eventHeaderCollection_
Definition: EcnaAnalyzer.h:105
Int_t gainvalue(const Int_t &)
TString sNbOfSamples_
Definition: EcnaAnalyzer.h:110
string digiProducer_
Definition: EcnaAnalyzer.h:104
TString fAnalysisName
Definition: EcnaAnalyzer.h:131
void CheckMsg(const Int_t &, const Int_t &)
Int_t fCurrentEventNumber
Definition: EcnaAnalyzer.h:122
Int_t * fFedDigiOK
Definition: EcnaAnalyzer.h:172
Int_t fPEDESTAL_GAP
Definition: EcnaAnalyzer.h:181
Int_t fDeeDS5Memo1
Definition: EcnaAnalyzer.h:164
Int_t * fDeeFromFedTcc
Definition: EcnaAnalyzer.h:157
Int_t * fMgpaGainCounter
Definition: EcnaAnalyzer.h:210
Bool_t AnalysisOutcome(const TString)
TString sLastReqEvent_
Definition: EcnaAnalyzer.h:112
TString fStexName
Definition: EcnaAnalyzer.h:141
TEcnaRun ** fMyCnaEEDee
Definition: EcnaAnalyzer.h:193
Int_t * fESFromFedTcc
Definition: EcnaAnalyzer.h:156
Int_t fMgpaGainNumber
Definition: EcnaAnalyzer.h:145
Int_t fgMaxCar
Definition: EcnaAnalyzer.h:96
Int_t fStexNumber
Definition: EcnaAnalyzer.h:142
Bool_t fOutcomeError
Definition: EcnaAnalyzer.h:117
Int_t fMaxTreatedStexCounter
Definition: EcnaAnalyzer.h:163
Int_t fEvtNumber
Definition: EcnaAnalyzer.h:119
TString fDynBaseLineSub
Definition: EcnaAnalyzer.h:134
Int_t * fSMFromFedTcc
Definition: EcnaAnalyzer.h:155
TString fCfgAnalyzerParametersFileName
Definition: EcnaAnalyzer.h:128
TEcnaParEcal * fMyEBEcal
Definition: EcnaAnalyzer.h:196
Int_t fMaxCounterQuad
Definition: EcnaAnalyzer.h:215
string eventHeaderProducer_
Definition: EcnaAnalyzer.h:103
Int_t fNbOfSelectedEvents
Definition: EcnaAnalyzer.h:123
Int_t fMaxFedUnitCounter
Definition: EcnaAnalyzer.h:170
string EEdigiCollection_
Definition: EcnaAnalyzer.h:107
Int_t fRecNumber
Definition: EcnaAnalyzer.h:121
Int_t fSMIndexBegin
Definition: EcnaAnalyzer.h:147
TString * fDateFirst
Definition: EcnaAnalyzer.h:187
TEcnaNumbering * fMyEBNumbering
Definition: EcnaAnalyzer.h:195
Int_t * fStexDigiOK
Definition: EcnaAnalyzer.h:166
Int_t * fCounterQuad
Definition: EcnaAnalyzer.h:216
Int_t fPEDESTAL_STD
Definition: EcnaAnalyzer.h:180
Int_t fTreatedFedOrder
Definition: EcnaAnalyzer.h:158
TEcnaRun ** fMyCnaEBSM
Definition: EcnaAnalyzer.h:192
Int_t * fNbOfTreatedFedsInStex
Definition: EcnaAnalyzer.h:178
Int_t fSMIndexStop
Definition: EcnaAnalyzer.h:148
Int_t fRunNumber
Definition: EcnaAnalyzer.h:137
time_t * fTimeFirst
Definition: EcnaAnalyzer.h:185
Int_t fBadBuildCnaRun
Definition: EcnaAnalyzer.h:125
TString fTTBELL
Definition: EcnaAnalyzer.h:97
Int_t fLastReqEvent
Definition: EcnaAnalyzer.h:140
string EBdigiCollection_
Definition: EcnaAnalyzer.h:106
Int_t fMemoCutOK
Definition: EcnaAnalyzer.h:175
Int_t nChannels_
Definition: EcnaAnalyzer.h:101
TEcnaParPaths * fCnaParPaths
Definition: EcnaAnalyzer.h:201
Int_t fDeeIndexBegin
Definition: EcnaAnalyzer.h:149
TString * fDeeNumberString
Definition: EcnaAnalyzer.h:161
Int_t fNbOfSamples
Definition: EcnaAnalyzer.h:136
Int_t * fRunTypeCounter
Definition: EcnaAnalyzer.h:207
TString fCfgAnalyzerParametersFilePath
Definition: EcnaAnalyzer.h:127
Int_t fEvtNumberMemo
Definition: EcnaAnalyzer.h:120
virtual void analyze(const edm::Event &, const edm::EventSetup &)
TString sFirstReqEvent_
Definition: EcnaAnalyzer.h:111
Int_t fLASER_STD
Definition: EcnaAnalyzer.h:182
Int_t fStexIndexStop
Definition: EcnaAnalyzer.h:152
TString sStexNumber_
Definition: EcnaAnalyzer.h:115
Int_t * fMemoDateFirstEvent
Definition: EcnaAnalyzer.h:190
Int_t * fFedStatusOrder
Definition: EcnaAnalyzer.h:159
Int_t fReqNbOfEvts
Definition: EcnaAnalyzer.h:144
Int_t * fStexStatus
Definition: EcnaAnalyzer.h:168
TString sReqNbOfEvts_
Definition: EcnaAnalyzer.h:113
Int_t fMaxRunTypeCounter
Definition: EcnaAnalyzer.h:206
Int_t fChozenGainNumber
Definition: EcnaAnalyzer.h:132
unsigned int verbosity_
Definition: EcnaAnalyzer.h:100
TString sStexName_
Definition: EcnaAnalyzer.h:114
ifstream fFcin_f
Definition: EcnaAnalyzer.h:129
Int_t fMaxFedIdCounter
Definition: EcnaAnalyzer.h:212
Int_t * fNbOfTreatedFedsInDee
Definition: EcnaAnalyzer.h:177