00001 #ifndef TkNoiseCalculator_H 00002 #define TkNoiseCalculator_H 00003 00004 #include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysis.h" 00005 #include "CalibTracker/SiStripAPVAnalysis/interface/TkStateMachine.h" 00006 00010 class TkNoiseCalculator { 00011 public: 00013 TkStateMachine* status() {return &theStatus;} 00014 00015 virtual void setStripNoise(ApvAnalysis::PedestalType& in) = 0; 00017 virtual ApvAnalysis::PedestalType noise() const = 0; 00018 virtual float stripNoise(int) const = 0; 00019 00021 virtual void updateStatus() = 0 ; 00022 00023 virtual void resetNoise() = 0; 00024 00025 //Actions 00026 00028 virtual void updateNoise(ApvAnalysis::PedestalType&) = 0; 00030 virtual void newEvent(){} 00031 00032 protected: 00033 TkStateMachine theStatus; 00034 }; 00035 00036 #endif