Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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