00001 #ifndef Tracker_TkCommonModeCalculator_H 00002 #define Tracker_TkCommonModeCalculator_H 00003 00004 #include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysis.h" 00005 #include "CalibTracker/SiStripAPVAnalysis/interface/TkCommonMode.h" 00009 class TkCommonModeCalculator{ 00010 00011 public: 00012 virtual ~TkCommonModeCalculator() {} 00014 virtual ApvAnalysis::PedestalType doIt(const ApvAnalysis::PedestalType&) = 0 ; 00015 virtual void setCM(TkCommonMode*) = 0; 00016 virtual void setCM(const std::vector<float>&) = 0; 00018 virtual TkCommonMode* commonMode() = 0; 00020 virtual void newEvent() {} 00022 virtual float getCMSlope() = 0; 00023 }; 00024 00025 #endif