CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MedianCommonModeCalculator.h
Go to the documentation of this file.
1 #ifndef Tracker_MedianCommonModeCalculator_h
2 #define Tracker_MedianCommonModeCalculator_h
3 
12 public:
14 
15  ~MedianCommonModeCalculator() override;
16 
18 
19  void setCM(TkCommonMode* in) override { theTkCommonMode = in; }
20  void setCM(const std::vector<float>& in) override { theTkCommonMode->setCommonMode(in); }
21  TkCommonMode* commonMode() override { return theTkCommonMode; }
22 
23  void newEvent() override;
24  float getCMSlope() override { return slope; }
25 
26 protected:
28 
30  std::vector<float> theCommonModeValues;
32  float slope;
33 
37 };
38 #endif
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
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