CMS 3D CMS Logo

CSCSegmentValidation.h
Go to the documentation of this file.
1 #ifndef CSCSegmentValidation_h
2 #define CSCSegmentValidation_h
3 
11 
13 public:
15  ~CSCSegmentValidation() override;
17  void analyze(const edm::Event &, const edm::EventSetup &) override;
18 
19 private:
20  void plotResolution(const PSimHit &simHit, const CSCSegment &recHit, const CSCLayer *layer, int chamberType);
21 
22  bool hasSegment(int chamberId) const;
23  static int whatChamberType(int detId);
24 
26 
27  // map to count how many layers are hit. First index is chamber detId, second
28  // is layers that have hits
29  typedef std::map<int, std::vector<int>> ChamberHitMap;
30  ChamberHitMap theLayerHitsPerChamber;
32  void fillEfficiencyPlots();
33  // decide which SimHit to use for the direction
34  const PSimHit *keyHit(int chamberId) const;
35 
36  typedef std::map<int, std::vector<CSCSegment>> ChamberSegmentMap;
37  ChamberSegmentMap theChamberSegmentMap;
38  // the number of hits in a chamber to make it a shower
40 
52 
65 };
66 
67 #endif
MonitorElement * theNPerEventPlot
void plotResolution(const PSimHit &simHit, const CSCSegment &recHit, const CSCLayer *layer, int chamberType)
MonitorElement * theTypePlot5HitsNoShowerSeg
std::map< int, std::vector< int > > ChamberHitMap
MonitorElement * theTypePlot4HitsShowerSeg
MonitorElement * theNPerChamberTypePlot
static int whatChamberType(int detId)
MonitorElement * theTypePlot6HitsShower
MonitorElement * theTypePlot5HitsNoShower
edm::EDGetTokenT< CSCSegmentCollection > segments_Token_
MonitorElement * theNRecHitsPlot
MonitorElement * theTypePlot4HitsShower
MonitorElement * theRdPhiResolutionPlots[10]
MonitorElement * theTypePlot6HitsShowerSeg
MonitorElement * theTypePlot4HitsNoShower
MonitorElement * theTypePlot6HitsNoShowerSeg
std::map< int, std::vector< CSCSegment > > ChamberSegmentMap
MonitorElement * theTypePlot6HitsNoShower
ChamberHitMap theLayerHitsPerChamber
MonitorElement * thedYdZResolutionPlots[10]
MonitorElement * theRdPhiPullPlots[10]
MonitorElement * theThetaPullPlots[10]
const PSimHit * keyHit(int chamberId) const
MonitorElement * thedXdZPullPlots[10]
bool hasSegment(int chamberId) const
MonitorElement * theTypePlot5HitsShowerSeg
MonitorElement * theThetaResolutionPlots[10]
ChamberSegmentMap theChamberSegmentMap
MonitorElement * theTypePlot4HitsNoShowerSeg
void bookHistograms(DQMStore::IBooker &)
CSCSegmentValidation(const edm::InputTag &inputTag, edm::ConsumesCollector &&iC)
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * theTypePlot5HitsShower
MonitorElement * thedXdZResolutionPlots[10]
MonitorElement * thedYdZPullPlots[10]