Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:27

0001 #ifndef DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H
0002 #define DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "DQM/SiStripCommissioningAnalysis/interface/CommissioningAlgorithm.h"
0006 #include <vector>
0007 
0008 class DaqScopeModeAnalysis;
0009 
0010 /**
0011    @class DaqScopeModeAlgorithm
0012    @author R.Bainbridge
0013    @brief Algorithm for scope mode data.
0014 */
0015 
0016 class DaqScopeModeAlgorithm : public CommissioningAlgorithm {
0017 public:
0018   DaqScopeModeAlgorithm(const edm::ParameterSet& pset, DaqScopeModeAnalysis* const);
0019 
0020   ~DaqScopeModeAlgorithm() override { ; }
0021 
0022   inline const Histo& hPeds() const;
0023   inline const Histo& hNoise() const;
0024   inline const Histo& histo() const;
0025   inline const Histo& headerLow() const;
0026   inline const Histo& headerHigh() const;
0027 
0028 private:
0029   DaqScopeModeAlgorithm() { ; }
0030 
0031   void extract(const std::vector<TH1*>&) override;
0032 
0033   void analyse() override;
0034 
0035 private:
0036   /** Histogram of scope mode data. */
0037   Histo histo_;
0038   /** Histogram of header low. */
0039   Histo headerLow_;
0040   /** Histogram of header high. */
0041   Histo headerHigh_;
0042   /** Pedestals and raw noise */
0043   Histo hPeds_;
0044   /** Residuals and noise */
0045   Histo hNoise_;
0046 
0047   /** Analysis parameters */
0048   float deadStripMax_;
0049   float noisyStripMin_;
0050 };
0051 
0052 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::histo() const { return histo_; }
0053 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::headerLow() const { return headerLow_; }
0054 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::headerHigh() const { return headerHigh_; }
0055 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::hPeds() const { return hPeds_; }
0056 const DaqScopeModeAlgorithm::Histo& DaqScopeModeAlgorithm::hNoise() const { return hNoise_; }
0057 
0058 #endif  // DQM_SiStripCommissioningAnalysis_DaqScopeModeAlgorithm_H