Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-01 22:41:17

0001 #ifndef Validation_MuonCSCDigis_CSCCLCTDigiValidation_H
0002 #define Validation_MuonCSCDigis_CSCCLCTDigiValidation_H
0003 
0004 #include "FWCore/Framework/interface/ConsumesCollector.h"
0005 
0006 #include "DQMServices/Core/interface/DQMStore.h"
0007 #include "DataFormats/CSCDigi/interface/CSCCLCTDigiCollection.h"
0008 #include "Validation/MuonCSCDigis/interface/CSCBaseValidation.h"
0009 
0010 class CSCCLCTDigiValidation : public CSCBaseValidation {
0011 public:
0012   CSCCLCTDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC);
0013   ~CSCCLCTDigiValidation() override;
0014   void bookHistograms(DQMStore::IBooker &);
0015   void analyze(const edm::Event &, const edm::EventSetup &) override;
0016 
0017 private:
0018   edm::EDGetTokenT<CSCCLCTDigiCollection> clcts_Token_;
0019   edm::InputTag inputTag_;
0020   MonitorElement *theNDigisPerChamberPlots[10];
0021   MonitorElement *theNDigisPerEventPlot;
0022 
0023   // more diagnostic plots
0024   std::vector<std::string> chambers_;
0025   std::vector<unsigned> chambersRun3_;
0026 
0027   std::vector<std::string> clctVars_;
0028   std::vector<unsigned> clctNBin_;
0029   std::vector<double> clctMinBin_;
0030   std::vector<double> clctMaxBin_;
0031 
0032   bool isRun3_;
0033 
0034   // first key is the chamber number
0035   // second key is the variable
0036   std::map<uint32_t, std::map<std::string, MonitorElement *> > chamberHistos;
0037 };
0038 
0039 #endif