Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-27 04:17:46

0001 #ifndef DQM_L1TMonitor_L1TdeGEMTPG_h
0002 #define DQM_L1TMonitor_L1TdeGEMTPG_h
0003 
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 
0008 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0009 #include "DQMServices/Core/interface/DQMStore.h"
0010 
0011 #include "DataFormats/GEMDigi/interface/GEMPadDigiClusterCollection.h"
0012 
0013 class L1TdeGEMTPG : public DQMEDAnalyzer {
0014 public:
0015   L1TdeGEMTPG(const edm::ParameterSet& ps);
0016   ~L1TdeGEMTPG() override;
0017 
0018 protected:
0019   void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override;
0020   void analyze(const edm::Event&, const edm::EventSetup&) override;
0021 
0022 private:
0023   edm::EDGetTokenT<GEMPadDigiClusterCollection> data_token_;
0024   edm::EDGetTokenT<GEMPadDigiClusterCollection> emul_token_;
0025   std::string monitorDir_;
0026   bool verbose_;
0027 
0028   std::vector<std::string> chambers_;
0029   std::vector<std::string> dataEmul_;
0030 
0031   std::vector<std::string> clusterVars_;
0032   std::vector<unsigned> clusterNBin_;
0033   std::vector<double> clusterMinBin_;
0034   std::vector<double> clusterMaxBin_;
0035 
0036   bool useDataClustersOnlyInBX0_;
0037 
0038   // first key is the chamber number
0039   // second key is the variable
0040   std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;
0041 };
0042 
0043 #endif