Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:15

0001 #ifndef TowerStatusTask_H
0002 #define TowerStatusTask_H
0003 
0004 #include "DQWorkerClient.h"
0005 
0006 #include "DQM/EcalCommon/interface/EcalDQMCommonUtils.h"
0007 #include "CondFormats/EcalObjects/interface/EcalDAQTowerStatus.h"
0008 #include "CondFormats/DataRecord/interface/EcalDAQTowerStatusRcd.h"
0009 #include "CondFormats/EcalObjects/interface/EcalDCSTowerStatus.h"
0010 #include "CondFormats/DataRecord/interface/EcalDCSTowerStatusRcd.h"
0011 
0012 namespace ecaldqm {
0013 
0014   class TowerStatusTask : public DQWorkerClient {
0015   public:
0016     TowerStatusTask();
0017     ~TowerStatusTask() override {}
0018 
0019     void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
0020 
0021     void producePlots(ProcessType) override;
0022 
0023   private:
0024     void setParams(edm::ParameterSet const&) override;
0025     void producePlotsTask_(float const*, std::string const&);
0026     edm::ESGetToken<EcalDAQTowerStatus, EcalDAQTowerStatusRcd> daqHndlToken;
0027     edm::ESGetToken<EcalDCSTowerStatus, EcalDCSTowerStatusRcd> dcsHndlToken;
0028     void setTokens(edm::ConsumesCollector&) override;
0029 
0030     bool doDAQInfo_;
0031     bool doDCSInfo_;
0032     float daqStatus_[nDCC];
0033     float dcsStatus_[nDCC];
0034   };
0035 
0036 }  // namespace ecaldqm
0037 
0038 #endif