CMS 3D CMS Logo

MedianCommonModeCalculator.h
Go to the documentation of this file.
1 #ifndef Tracker_MedianCommonModeCalculator_h
2 #define Tracker_MedianCommonModeCalculator_h
3 
12 public:
13 
15 
16  ~MedianCommonModeCalculator() override;
17 
19 
20  void setCM(TkCommonMode* in) override {theTkCommonMode = in;}
21  void setCM(const std::vector<float>& in) override {theTkCommonMode->setCommonMode(in);}
22  TkCommonMode* commonMode() override {return theTkCommonMode;}
23 
24  void newEvent() override;
25  float getCMSlope() override { return slope;}
26 
27 protected:
28 
30 
32  std::vector<float> theCommonModeValues;
34  float slope;
35 
39 
40 };
41 #endif
42 
43 
44 
45 
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
void setCM(const std::vector< float > &in) override
void calculateCommonMode(ApvAnalysis::PedestalType &)
TkCommonMode * commonMode() override
std::vector< float > theCommonModeValues
void setCommonMode(const std::vector< float > &in)
Definition: TkCommonMode.h:21
void setCM(TkCommonMode *in) override
ApvAnalysis::PedestalType doIt(const ApvAnalysis::PedestalType &) override