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 2011/03/21 14:57:41 fabbro Exp $
20 //
21 //
22 
23 // system include files
24 #include <memory>
25 #include <iostream>
26 #include <fstream>
27 #include <iomanip>
28 #include <string>
29 #include <vector>
30 #include <time.h>
31 #include "Riostream.h"
32 
33 #include <sys/time.h>
34 #include <signal.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
75 
122 
123 //
124 // class declaration
125 //
126 
128 
129  public:
130 
131  enum { kChannels = 1700, kGains = 3, kFirstGainId = 1 };
132 
133  explicit EcnaAnalyzer(const edm::ParameterSet&);
134  ~EcnaAnalyzer();
135 
136  virtual void analyze(const edm::Event&, const edm::EventSetup&);
137  TString runtype(const Int_t&);
138  Int_t gainvalue(const Int_t&);
139  void CheckMsg(const Int_t&, const Int_t&);
140  void CheckMsg(const Int_t&);
141  Bool_t AnalysisOutcome(const TString);
142 
143  private:
144 
145  Int_t fgMaxCar; // Max nb of caracters for char*
146  TString fTTBELL;
147 
148  // ----------member data ---------------------------
149  unsigned int verbosity_;
150  Int_t nChannels_;
151  Int_t iEvent_; // should be removed when we can access class EventID
157 
158  TString sAnalysisName_;
159  TString sNbOfSamples_;
161  TString sLastReqEvent_;
162  TString sReqNbOfEvts_;
163  TString sStexName_;
164  TString sStexNumber_;
165 
167 
168  Int_t fEvtNumber;
170  Int_t fRecNumber;
173 
176 
177  TString fCfgAnalyzerParametersFilePath; // absolute path for the analyzer parameters files (/afs/etc...)
178  TString fCfgAnalyzerParametersFileName; // name of the analyzer parameters file
179  ifstream fFcin_f;
180 
181  TString fAnalysisName;
182  Int_t fChozenGainNumber; // determined from fAnalysisName
183  Int_t fChozenRunTypeNumber; // determined from fAnalysisName
184  TString fDynBaseLineSub; // determined from fAnalysisName
185 
187  Int_t fRunNumber;
191  TString fStexName;
192  Int_t fStexNumber;
193 
196 
203 
204  Int_t fFedTcc;
210  Int_t fFedId;
212 
216  Int_t* fStexDigiOK;
218  Int_t* fStexStatus;
219 
221  Int_t* fFedStatus;
222  Int_t* fFedDigiOK;
224 
225  Int_t fMemoCutOK;
229 
232  Int_t fLASER_STD;
233  Int_t fPEDSIM;
234 
235  time_t* fTimeFirst;
236  time_t* fTimeLast;
237  TString* fDateFirst;
238  TString* fDateLast;
239 
241 
244 
247 
250 
253 
254  // Int_t** fT2d_LastEvt; // 2D array[channel][sample] max nb of evts read for a given (channel,sample)
255  // Int_t* fT1d_LastEvt;
256 
259 
262 
265 
267  Int_t* fCounterQuad;
268 };
269 
270 #endif
Int_t fFirstReqEvent
Definition: EcnaAnalyzer.h:189
Int_t * fStexNbOfTreatedEvents
Definition: EcnaAnalyzer.h:217
Int_t * fFedStatus
Definition: EcnaAnalyzer.h:221
time_t * fTimeLast
Definition: EcnaAnalyzer.h:236
Int_t fStexIndexBegin
Definition: EcnaAnalyzer.h:201
Int_t fDeeDS5Memo2
Definition: EcnaAnalyzer.h:215
Int_t * fFedIdCounter
Definition: EcnaAnalyzer.h:264
TString * fDateLast
Definition: EcnaAnalyzer.h:238
Int_t fRunTypeNumber
Definition: EcnaAnalyzer.h:188
Int_t * fBuildEventDistribBad
Definition: EcnaAnalyzer.h:174
TString runtype(const Int_t &)
Int_t fChozenRunTypeNumber
Definition: EcnaAnalyzer.h:183
EcnaAnalyzer(const edm::ParameterSet &)
Definition: EcnaAnalyzer.cc:44
Int_t fMaxMgpaGainCounter
Definition: EcnaAnalyzer.h:260
TString sAnalysisName_
Definition: EcnaAnalyzer.h:158
TEcnaParEcal * fMyEEEcal
Definition: EcnaAnalyzer.h:252
Int_t fDeeIndexStop
Definition: EcnaAnalyzer.h:200
Int_t fNbOfTreatedStexs
Definition: EcnaAnalyzer.h:226
Int_t * fFedNbOfTreatedEvents
Definition: EcnaAnalyzer.h:223
TEcnaNumbering * fMyEENumbering
Definition: EcnaAnalyzer.h:251
string eventHeaderCollection_
Definition: EcnaAnalyzer.h:154
Int_t gainvalue(const Int_t &)
TString sNbOfSamples_
Definition: EcnaAnalyzer.h:159
string digiProducer_
Definition: EcnaAnalyzer.h:153
TString fAnalysisName
Definition: EcnaAnalyzer.h:181
void CheckMsg(const Int_t &, const Int_t &)
Int_t fCurrentEventNumber
Definition: EcnaAnalyzer.h:171
Int_t * fFedDigiOK
Definition: EcnaAnalyzer.h:222
Int_t fPEDESTAL_GAP
Definition: EcnaAnalyzer.h:231
Int_t fDeeDS5Memo1
Definition: EcnaAnalyzer.h:214
Int_t * fDeeFromFedTcc
Definition: EcnaAnalyzer.h:207
Int_t * fMgpaGainCounter
Definition: EcnaAnalyzer.h:261
Bool_t AnalysisOutcome(const TString)
TString sLastReqEvent_
Definition: EcnaAnalyzer.h:161
TString fStexName
Definition: EcnaAnalyzer.h:191
TEcnaRun ** fMyCnaEEDee
Definition: EcnaAnalyzer.h:246
Int_t * fESFromFedTcc
Definition: EcnaAnalyzer.h:206
Int_t fMgpaGainNumber
Definition: EcnaAnalyzer.h:195
Int_t fStexNumber
Definition: EcnaAnalyzer.h:192
Bool_t fOutcomeError
Definition: EcnaAnalyzer.h:166
Int_t fMaxTreatedStexCounter
Definition: EcnaAnalyzer.h:213
Int_t fEvtNumber
Definition: EcnaAnalyzer.h:168
TString fDynBaseLineSub
Definition: EcnaAnalyzer.h:184
Int_t * fSMFromFedTcc
Definition: EcnaAnalyzer.h:205
TString fCfgAnalyzerParametersFileName
Definition: EcnaAnalyzer.h:178
TEcnaParEcal * fMyEBEcal
Definition: EcnaAnalyzer.h:249
Int_t fMaxCounterQuad
Definition: EcnaAnalyzer.h:266
string eventHeaderProducer_
Definition: EcnaAnalyzer.h:152
Int_t fNbOfSelectedEvents
Definition: EcnaAnalyzer.h:172
Int_t fMaxFedUnitCounter
Definition: EcnaAnalyzer.h:220
string EEdigiCollection_
Definition: EcnaAnalyzer.h:156
Int_t fRecNumber
Definition: EcnaAnalyzer.h:170
Int_t fSMIndexBegin
Definition: EcnaAnalyzer.h:197
TString * fDateFirst
Definition: EcnaAnalyzer.h:237
TEcnaNumbering * fMyEBNumbering
Definition: EcnaAnalyzer.h:248
Int_t * fStexDigiOK
Definition: EcnaAnalyzer.h:216
Int_t * fCounterQuad
Definition: EcnaAnalyzer.h:267
Int_t fPEDESTAL_STD
Definition: EcnaAnalyzer.h:230
Int_t fTreatedFedOrder
Definition: EcnaAnalyzer.h:208
Int_t * fBuildEventDistribGood
Definition: EcnaAnalyzer.h:175
TEcnaRun ** fMyCnaEBSM
Definition: EcnaAnalyzer.h:245
Int_t * fNbOfTreatedFedsInStex
Definition: EcnaAnalyzer.h:228
Int_t fSMIndexStop
Definition: EcnaAnalyzer.h:198
Int_t fRunNumber
Definition: EcnaAnalyzer.h:187
time_t * fTimeFirst
Definition: EcnaAnalyzer.h:235
TString fTTBELL
Definition: EcnaAnalyzer.h:146
Int_t fLastReqEvent
Definition: EcnaAnalyzer.h:190
string EBdigiCollection_
Definition: EcnaAnalyzer.h:155
Int_t fMemoCutOK
Definition: EcnaAnalyzer.h:225
Int_t nChannels_
Definition: EcnaAnalyzer.h:150
Int_t fDeeIndexBegin
Definition: EcnaAnalyzer.h:199
TString * fDeeNumberString
Definition: EcnaAnalyzer.h:211
Int_t fNbOfSamples
Definition: EcnaAnalyzer.h:186
Int_t * fRunTypeCounter
Definition: EcnaAnalyzer.h:258
TString fCfgAnalyzerParametersFilePath
Definition: EcnaAnalyzer.h:177
Int_t fEvtNumberMemo
Definition: EcnaAnalyzer.h:169
virtual void analyze(const edm::Event &, const edm::EventSetup &)
TString sFirstReqEvent_
Definition: EcnaAnalyzer.h:160
Int_t fLASER_STD
Definition: EcnaAnalyzer.h:232
Int_t fStexIndexStop
Definition: EcnaAnalyzer.h:202
TString sStexNumber_
Definition: EcnaAnalyzer.h:164
Int_t * fMemoDateFirstEvent
Definition: EcnaAnalyzer.h:240
Int_t * fFedStatusOrder
Definition: EcnaAnalyzer.h:209
Int_t fReqNbOfEvts
Definition: EcnaAnalyzer.h:194
Int_t * fStexStatus
Definition: EcnaAnalyzer.h:218
TString sReqNbOfEvts_
Definition: EcnaAnalyzer.h:162
TEcnaObject * fMyEcnaEBObjectManager
Definition: EcnaAnalyzer.h:242
Int_t fMaxRunTypeCounter
Definition: EcnaAnalyzer.h:257
Int_t fChozenGainNumber
Definition: EcnaAnalyzer.h:182
unsigned int verbosity_
Definition: EcnaAnalyzer.h:149
TString sStexName_
Definition: EcnaAnalyzer.h:163
TEcnaObject * fMyEcnaEEObjectManager
Definition: EcnaAnalyzer.h:243
ifstream fFcin_f
Definition: EcnaAnalyzer.h:179
Int_t fMaxFedIdCounter
Definition: EcnaAnalyzer.h:263
Int_t * fNbOfTreatedFedsInDee
Definition: EcnaAnalyzer.h:227