Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:55:32

0001 #ifndef DQM_L1TMONITORCLIENT_L1TdeGEMTPGCLIENT_H
0002 #define DQM_L1TMONITORCLIENT_L1TdeGEMTPGCLIENT_H
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/MakerMacros.h"
0007 #include "DQMServices/Core/interface/DQMStore.h"
0008 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0009 
0010 #include <string>
0011 
0012 class L1TdeGEMTPGClient : public DQMEDHarvester {
0013 public:
0014   /// Constructor
0015   L1TdeGEMTPGClient(const edm::ParameterSet &ps);
0016 
0017   /// Destructor
0018   ~L1TdeGEMTPGClient() override;
0019 
0020 protected:
0021   void dqmEndLuminosityBlock(DQMStore::IBooker &,
0022                              DQMStore::IGetter &,
0023                              edm::LuminosityBlock const &,
0024                              edm::EventSetup const &) override;
0025   void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0026 
0027 private:
0028   void book(DQMStore::IBooker &ibooker);
0029   void processHistograms(DQMStore::IGetter &);
0030 
0031   std::string monitorDir_;
0032 
0033   std::vector<std::string> chambers_;
0034 
0035   std::vector<std::string> clusterVars_;
0036   std::vector<unsigned> clusterNBin_;
0037   std::vector<double> clusterMinBin_;
0038   std::vector<double> clusterMaxBin_;
0039 
0040   // first key is the chamber number
0041   // second key is the variable
0042   std::map<uint32_t, std::map<std::string, MonitorElement *> > chamberHistos_;
0043 };
0044 
0045 #endif