Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:57

0001 #ifndef Validation_CSCRecHits_CSCRecHit2DValidation_h
0002 #define Validation_CSCRecHits_CSCRecHit2DValidation_h
0003 
0004 #include "Validation/MuonCSCDigis/interface/CSCBaseValidation.h"
0005 #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
0006 #include "FWCore/Framework/interface/ConsumesCollector.h"
0007 
0008 class CSCRecHit2DValidation : public CSCBaseValidation {
0009 public:
0010   CSCRecHit2DValidation(const edm::ParameterSet &ps, edm::ConsumesCollector &&iC);
0011   ~CSCRecHit2DValidation() override;
0012   void bookHistograms(DQMStore::IBooker &);
0013   void analyze(const edm::Event &, const edm::EventSetup &) override;
0014 
0015 private:
0016   edm::EDGetTokenT<CSCRecHit2DCollection> rechits_Token_;
0017   edm::InputTag inputTag_;
0018 
0019   void plotResolution(const PSimHit &simHit, const CSCRecHit2D &recHit, const CSCLayer *layer, int chamberType);
0020 
0021   MonitorElement *theNPerEventPlot;
0022   MonitorElement *theResolutionPlots[10];
0023   MonitorElement *thePullPlots[10];
0024   MonitorElement *theYResolutionPlots[10];
0025   MonitorElement *theYPullPlots[10];
0026   MonitorElement *theScatterPlots[10];
0027   MonitorElement *theSimHitScatterPlots[10];
0028   MonitorElement *theRecHitPosInStrip[10];
0029   MonitorElement *theSimHitPosInStrip[10];
0030   MonitorElement *theTPeaks[10];
0031 };
0032 
0033 #endif