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