00001 #ifndef DQM_SiStripCommissioningAnalysis_PedestalsAlgorithm_H 00002 #define DQM_SiStripCommissioningAnalysis_PedestalsAlgorithm_H 00003 00004 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00005 #include "DQM/SiStripCommissioningAnalysis/interface/CommissioningAlgorithm.h" 00006 #include <vector> 00007 00008 class PedestalsAnalysis; 00009 class TH1; 00010 00016 class PedestalsAlgorithm : public CommissioningAlgorithm { 00017 00018 public: 00019 00020 PedestalsAlgorithm( const edm::ParameterSet & pset, PedestalsAnalysis* const ); 00021 00022 virtual ~PedestalsAlgorithm() {;} 00023 00024 inline const Histo& hPeds() const; 00025 00026 inline const Histo& hNoise() const; 00027 00028 private: 00029 00030 PedestalsAlgorithm() {;} 00031 00033 void extract( const std::vector<TH1*>& ); 00034 00036 void analyse(); 00037 00038 private: 00039 00041 Histo hPeds_; 00042 00044 Histo hNoise_; 00045 00047 float deadStripMax_; 00048 float noisyStripMin_; 00049 00050 }; 00051 00052 const PedestalsAlgorithm::Histo& PedestalsAlgorithm::hPeds() const { return hPeds_; } 00053 00054 const PedestalsAlgorithm::Histo& PedestalsAlgorithm::hNoise() const { return hNoise_; } 00055 00056 #endif // DQM_SiStripCommissioningAnalysis_PedestalsAlgorithm_H