CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/SimCalorimetry/HcalSimAlgos/interface/HcalSiPMRecovery.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 #ifndef HcalSimAlgos_HcalSiPMRecovery_h
00004 #define HcalSimAlgos_HcalSiPMRecovery_h
00005 
00006 #include <map>
00007 
00008 class HcalSiPMRecovery {
00009 public:
00010   HcalSiPMRecovery(double recoveryTime = 250.);
00011 
00012   ~HcalSiPMRecovery();
00013 
00014   int getIntegral(double time);
00015   void addToHistory(double time, int pixels);
00016   void clearHistory();
00017   void setRecoveryTime(double recoveryTime) { theRecoveryTime = recoveryTime; }
00018 
00019 protected:
00020 
00021   double theRecoveryTime;
00022   int theIntegral;
00023   std::multimap<double, int> theHistory;
00024 };
00025 
00026 #endif //HcalSimAlgos_HcalSiPMRecovery_h