CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/SiStripCommissioningAnalysis/interface/DaqScopeModeAlgorithm.h

Go to the documentation of this file.
00001 #ifndef DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H
00002 #define DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H
00003 
00004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00005 #include "DQM/SiStripCommissioningAnalysis/interface/CommissioningAlgorithm.h"
00006 #include <vector>
00007 
00008 class DaqScopeModeAnalysis;
00009 
00016 class DaqScopeModeAlgorithm : public CommissioningAlgorithm {
00017   
00018  public:
00019   
00020   DaqScopeModeAlgorithm( const edm::ParameterSet & pset, DaqScopeModeAnalysis* const );
00021 
00022   virtual ~DaqScopeModeAlgorithm() {;}
00023   
00024   inline const float& entries() const;
00025   inline const float& mean() const; 
00026   inline const float& median() const; 
00027   inline const float& mode() const; 
00028   inline const float& rms() const; 
00029   inline const float& min() const; 
00030   inline const float& max() const; 
00031   
00032   inline const Histo& histo() const;
00033   
00034  private:
00035   
00036   DaqScopeModeAlgorithm() {;}
00037   
00038   void extract( const std::vector<TH1*>& );
00039 
00040   void analyse();
00041   
00042  private:
00043   
00045   Histo histo_;
00046   
00047 };
00048 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::histo() const { return histo_; }
00049 
00050 #endif // DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H
00051 
00052 
00053