test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ApvAnalysis.h
Go to the documentation of this file.
1 #ifndef Tracker_APVAnalysis_h
2 #define Tracker_APVAnalysis_h
3 
4 
5 #include <vector>
6 #include <iostream>
7 // user include files
12 
14 #include "boost/cstdint.hpp"
15 
16 
17 //#define DEBUG_INSTANCE_COUNTING
18 
19 #ifdef DEBUG_INSTANCE_COUNTING
20 #include "CommonDet/DetUtilities/interface/InstanceCounting.h"
21 #endif
22 
23 class TkApvMask;
26 class TkNoiseCalculator;
27 
28 #include <vector>
29 #include <utility>
30 
42 #ifdef DEBUG_INSTANCE_COUNTING
43  : public InstanceCounting<ApvAnalysis>
44 #endif
45 {
46  public:
48  typedef std::vector<float> PedestalType;
49 
50  ApvAnalysis(int nev);
52 
53  //
54  // Tell ApvAnalysis which algorithms to use.
55  //
56 
61 
65  TkApvMask& mask() {return *theTkApvMask;}
66 
67  //
68  // Give store/load commands to the TkPedestalCalculator and to
69  // TkNoiseCalculator, will use ApvEventReader.
70  // Has to be done here because they have no access to the reader.
71  //
74  void newEvent() const;
75 
76 
77  private:
84 };
85 #endif
86 
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
TkCommonModeCalculator * theTkCommonModeCalculator
Definition: ApvAnalysis.h:78
TkCommonModeCalculator & commonModeCalculator()
Definition: ApvAnalysis.h:62
int eventsRequiredToUpdate_
Definition: ApvAnalysis.h:83
TkPedestalCalculator * theTkPedestalCalculator
Definition: ApvAnalysis.h:79
void setMask(TkApvMask &in)
Definition: ApvAnalysis.h:60
void setPedestalCalculator(TkPedestalCalculator &in)
Definition: ApvAnalysis.h:58
void setNoiseCalculator(TkNoiseCalculator &in)
Definition: ApvAnalysis.h:59
void updateCalibration(edm::DetSet< SiStripRawDigi > &in)
Definition: ApvAnalysis.cc:28
void setCommonModeCalculator(TkCommonModeCalculator &in)
Definition: ApvAnalysis.h:57
edm::DetSet< SiStripRawDigi > RawSignalType
Definition: ApvAnalysis.h:47
TkPedestalCalculator & pedestalCalculator()
Definition: ApvAnalysis.h:63
TkNoiseCalculator * theTkNoiseCalculator
Definition: ApvAnalysis.h:80
void newEvent() const
Definition: ApvAnalysis.cc:22
TkApvMask * theTkApvMask
Definition: ApvAnalysis.h:81
int nEventsForNoiseCalibration_
Definition: ApvAnalysis.h:82
ApvAnalysis(int nev)
Definition: ApvAnalysis.cc:9
TkApvMask & mask()
Definition: ApvAnalysis.h:65
TkNoiseCalculator & noiseCalculator()
Definition: ApvAnalysis.h:64