Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-31 23:13:55

0001 
0002 #ifndef DTMonitorClient_DTDCSByLumiSummary_H
0003 #define DTMonitorClient_DTDCSByLumiSummary_H
0004 
0005 /** \class DTDCSByLumiSummary
0006  *  No description available.
0007  *
0008  *  \author C. Battilana - CIEMAT
0009  *  \author P. Bellan - INFN PD
0010  *  \author A. Branca = INFN PD
0011  *
0012  *  threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
0013  *
0014  */
0015 
0016 #include "FWCore/Framework/interface/Frameworkfwd.h"
0017 #include "DQMServices/Core/interface/DQMStore.h"
0018 
0019 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0020 
0021 #include "FWCore/Framework/interface/LuminosityBlock.h"
0022 
0023 #include <map>
0024 
0025 class DTTimeEvolutionHisto;
0026 
0027 class DTDCSByLumiSummary : public DQMEDHarvester {
0028 public:
0029   /// Constructor
0030   DTDCSByLumiSummary(const edm::ParameterSet& pset);
0031 
0032   /// Destructor
0033   ~DTDCSByLumiSummary() override;
0034 
0035 protected:
0036   void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
0037 
0038   void dqmEndLuminosityBlock(DQMStore::IBooker& ibooker,
0039                              DQMStore::IGetter& igetter,
0040                              edm::LuminosityBlock const& lumi,
0041                              edm::EventSetup const& setup) override;
0042   void dqmEndJob(DQMStore::IBooker& ibooker, DQMStore::IGetter& igetter) override;
0043 
0044 private:
0045   MonitorElement* totalDCSFraction;
0046   MonitorElement* globalHVSummary;
0047 
0048   std::vector<DTTimeEvolutionHisto*> hDCSFracTrend;
0049   std::vector<MonitorElement*> totalDCSFractionWh;
0050 
0051   std::map<int, std::vector<float> > dcsFracPerLumi;
0052 
0053   bool bookingdone;
0054 };
0055 
0056 #endif