CMS 3D CMS Logo

ApvAnalysis.h
Go to the documentation of this file.
1 #ifndef Tracker_APVAnalysis_h
2 #define Tracker_APVAnalysis_h
3 
4 #include <vector>
5 #include <iostream>
6 // user include files
11 
13 
14 //#define DEBUG_INSTANCE_COUNTING
15 
16 #ifdef DEBUG_INSTANCE_COUNTING
17 #include "CommonDet/DetUtilities/interface/InstanceCounting.h"
18 #endif
19 
20 class TkApvMask;
23 class TkNoiseCalculator;
24 
25 #include <vector>
26 #include <utility>
27 
38 #ifdef DEBUG_INSTANCE_COUNTING
39  : public InstanceCounting<ApvAnalysis>
40 #endif
41 {
42 public:
44  typedef std::vector<float> PedestalType;
45 
46  ApvAnalysis(int nev);
47  ~ApvAnalysis() { ; }
48 
49  //
50  // Tell ApvAnalysis which algorithms to use.
51  //
52 
57 
61  TkApvMask& mask() { return *theTkApvMask; }
62 
63  //
64  // Give store/load commands to the TkPedestalCalculator and to
65  // TkNoiseCalculator, will use ApvEventReader.
66  // Has to be done here because they have no access to the reader.
67  //
70  void newEvent() const;
71 
72 private:
79 };
80 #endif
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
TkCommonModeCalculator * theTkCommonModeCalculator
Definition: ApvAnalysis.h:73
TkCommonModeCalculator & commonModeCalculator()
Definition: ApvAnalysis.h:58
void newEvent() const
Definition: ApvAnalysis.cc:17
int eventsRequiredToUpdate_
Definition: ApvAnalysis.h:78
TkPedestalCalculator * theTkPedestalCalculator
Definition: ApvAnalysis.h:74
void setMask(TkApvMask &in)
Definition: ApvAnalysis.h:56
void setPedestalCalculator(TkPedestalCalculator &in)
Definition: ApvAnalysis.h:54
void setNoiseCalculator(TkNoiseCalculator &in)
Definition: ApvAnalysis.h:55
void updateCalibration(edm::DetSet< SiStripRawDigi > &in)
Definition: ApvAnalysis.cc:23
void setCommonModeCalculator(TkCommonModeCalculator &in)
Definition: ApvAnalysis.h:53
edm::DetSet< SiStripRawDigi > RawSignalType
Definition: ApvAnalysis.h:43
TkPedestalCalculator & pedestalCalculator()
Definition: ApvAnalysis.h:59
TkNoiseCalculator * theTkNoiseCalculator
Definition: ApvAnalysis.h:75
TkApvMask * theTkApvMask
Definition: ApvAnalysis.h:76
int nEventsForNoiseCalibration_
Definition: ApvAnalysis.h:77
ApvAnalysis(int nev)
Definition: ApvAnalysis.cc:9
TkApvMask & mask()
Definition: ApvAnalysis.h:61
TkNoiseCalculator & noiseCalculator()
Definition: ApvAnalysis.h:60