Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:47

0001 #ifndef Validation_MuonCSCDigis_CSCCorrelatedLCTDigiValidation_H
0002 #define Validation_MuonCSCDigis_CSCCorrelatedLCTDigiValidation_H
0003 
0004 #include "FWCore/Framework/interface/ConsumesCollector.h"
0005 
0006 #include "DQMServices/Core/interface/DQMStore.h"
0007 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h"
0008 #include "Validation/MuonCSCDigis/interface/CSCBaseValidation.h"
0009 
0010 class CSCCorrelatedLCTDigiValidation : public CSCBaseValidation {
0011 public:
0012   CSCCorrelatedLCTDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC);
0013   ~CSCCorrelatedLCTDigiValidation() override;
0014   void bookHistograms(DQMStore::IBooker &);
0015   void analyze(const edm::Event &, const edm::EventSetup &) override;
0016 
0017 private:
0018   edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection> lcts_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> lctVars_;
0028   std::vector<unsigned> lctNBin_;
0029   std::vector<double> lctMinBin_;
0030   std::vector<double> lctMaxBin_;
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