Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef Validation_MuonCSCDigis_CSCComparatorDigiValidation_H
0002 #define Validation_MuonCSCDigis_CSCComparatorDigiValidation_H
0003 
0004 #include "FWCore/Framework/interface/ConsumesCollector.h"
0005 
0006 #include "DataFormats/CSCDigi/interface/CSCComparatorDigiCollection.h"
0007 #include "DataFormats/CSCDigi/interface/CSCStripDigiCollection.h"
0008 
0009 #include "DQMServices/Core/interface/DQMStore.h"
0010 #include "Validation/MuonCSCDigis/interface/CSCBaseValidation.h"
0011 
0012 class CSCComparatorDigiValidation : public CSCBaseValidation {
0013 public:
0014   CSCComparatorDigiValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC);
0015   ~CSCComparatorDigiValidation() override;
0016   void bookHistograms(DQMStore::IBooker &);
0017   void analyze(const edm::Event &, const edm::EventSetup &) override;
0018   void plotResolution(const PSimHit &hit, int strip, const CSCLayer *layer, int chamberType);
0019 
0020 private:
0021   edm::EDGetTokenT<CSCStripDigiCollection> strips_Token_;
0022   edm::EDGetTokenT<CSCComparatorDigiCollection> comparators_Token_;
0023   edm::InputTag inputTagStrip_;
0024   edm::InputTag inputTagComp_;
0025 
0026   MonitorElement *theTimeBinPlots[10];
0027   MonitorElement *theNDigisPerLayerPlots[10];
0028   MonitorElement *theStripDigiPlots[10];
0029   MonitorElement *the3StripPlots[10];
0030   MonitorElement *theNDigisPerEventPlot;
0031   MonitorElement *theResolutionPlots[10];
0032 };
0033 
0034 #endif