Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DQM_SISTRIPCOMMISSIONINGSOURCES_NOISETASK_H
0002 #define DQM_SISTRIPCOMMISSIONINGSOURCES_NOISETASK_H
0003 
0004 #include <vector>
0005 
0006 #include "DataFormats/Common/interface/DetSet.h"
0007 #include "DQM/SiStripCommissioningSources/interface/CommissioningTask.h"
0008 #include "DQMServices/Core/interface/DQMStore.h"
0009 #include "CondFormats/DataRecord/interface/SiStripNoisesRcd.h"
0010 #include "CondFormats/DataRecord/interface/SiStripPedestalsRcd.h"
0011 #include "CondFormats/SiStripObjects/interface/SiStripNoises.h"
0012 #include "CondFormats/SiStripObjects/interface/SiStripPedestals.h"
0013 
0014 // Forward Declarations
0015 class ApvAnalysisFactory;
0016 class FedChannelConnection;
0017 class SiStripEventSummary;
0018 class SiStripRawDigi;
0019 
0020 /**
0021  *  @class NoiseTask
0022  */
0023 class NoiseTask : public CommissioningTask {
0024 public:
0025   NoiseTask(DQMStore *,
0026             const FedChannelConnection &,
0027             edm::ESGetToken<SiStripPedestals, SiStripPedestalsRcd> pedestalToken,
0028             edm::ESGetToken<SiStripNoises, SiStripNoisesRcd> noiseToken);
0029   ~NoiseTask() override;
0030 
0031 private:
0032   void book() override;
0033   void fill(const SiStripEventSummary &, const edm::DetSet<SiStripRawDigi> &) override;
0034   void update() override;
0035 
0036   std::vector<HistoSet> peds_;
0037   std::vector<HistoSet> cm_;
0038 
0039   ApvAnalysisFactory *pApvFactory_;
0040   edm::ESGetToken<SiStripPedestals, SiStripPedestalsRcd> pedestalToken_;
0041   edm::ESGetToken<SiStripNoises, SiStripNoisesRcd> noiseToken_;
0042 };
0043 
0044 #endif  // DQM_SISTRIPCOMMISSIONINGSOURCES_NOISETASK_H