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