CMS 3D CMS Logo

CSCSegmentValidation.h
Go to the documentation of this file.
1 #ifndef Validation_CSCRecHits_CSCSegmentValidation_h
2 #define Validation_CSCRecHits_CSCSegmentValidation_h
3 
7 
9 public:
11  ~CSCSegmentValidation() override;
13  void analyze(const edm::Event &, const edm::EventSetup &) override;
14 
15 private:
16  void plotResolution(const PSimHit &simHit, const CSCSegment &recHit, const CSCLayer *layer, int chamberType);
17 
18  bool hasSegment(int chamberId) const;
19 
22 
23  // map to count how many layers are hit.
24  // First index is chamber detId
25  // second is layers that have hits
26  typedef std::map<int, std::vector<int>> ChamberHitMap;
29  void fillEfficiencyPlots();
30  // decide which SimHit to use for the direction
31  const PSimHit *keyHit(int chamberId) const;
32 
33  typedef std::map<int, std::vector<CSCSegment>> ChamberSegmentMap;
35  // the number of hits in a chamber to make it a shower
37 
48 
61 };
62 
63 #endif
CSCSegmentValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCSegmentValidation.cc:53
CSCSegmentValidation::theTypePlot5HitsNoShowerSeg
MonitorElement * theTypePlot5HitsNoShowerSeg
Definition: CSCSegmentValidation.h:54
CSCSegmentValidation::fillEfficiencyPlots
void fillEfficiencyPlots()
Definition: CSCSegmentValidation.cc:84
CSCSegmentValidation::plotResolution
void plotResolution(const PSimHit &simHit, const CSCSegment &recHit, const CSCLayer *layer, int chamberType)
Definition: CSCSegmentValidation.cc:148
CSCSegmentValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: CSCSegmentValidation.cc:14
CSCSegmentValidation::theTypePlot6HitsNoShowerSeg
MonitorElement * theTypePlot6HitsNoShowerSeg
Definition: CSCSegmentValidation.h:58
edm::EDGetTokenT< CSCSegmentCollection >
CSCSegmentValidation::keyHit
const PSimHit * keyHit(int chamberId) const
Definition: CSCSegmentValidation.cc:192
CSCSegmentValidation::theTypePlot5HitsShower
MonitorElement * theTypePlot5HitsShower
Definition: CSCSegmentValidation.h:55
CSCSegmentValidation::thedYdZResolutionPlots
MonitorElement * thedYdZResolutionPlots[10]
Definition: CSCSegmentValidation.h:46
CSCSegmentValidation::theRdPhiPullPlots
MonitorElement * theRdPhiPullPlots[10]
Definition: CSCSegmentValidation.h:42
CSCSegmentValidation::ChamberSegmentMap
std::map< int, std::vector< CSCSegment > > ChamberSegmentMap
Definition: CSCSegmentValidation.h:33
CSCSegmentValidation::theNPerChamberTypePlot
MonitorElement * theNPerChamberTypePlot
Definition: CSCSegmentValidation.h:40
CSCSegmentValidation::~CSCSegmentValidation
~CSCSegmentValidation() override
Definition: CSCSegmentValidation.cc:12
CSCSegmentValidation::segments_Token_
edm::EDGetTokenT< CSCSegmentCollection > segments_Token_
Definition: CSCSegmentValidation.h:20
CSCLayer
Definition: CSCLayer.h:24
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
CSCSegmentValidation::theRdPhiResolutionPlots
MonitorElement * theRdPhiResolutionPlots[10]
Definition: CSCSegmentValidation.h:41
CSCSegmentValidation::theLayerHitsPerChamber
ChamberHitMap theLayerHitsPerChamber
Definition: CSCSegmentValidation.h:27
CSCSegmentValidation::inputTag_
edm::InputTag inputTag_
Definition: CSCSegmentValidation.h:21
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
CSCSegmentValidation::ChamberHitMap
std::map< int, std::vector< int > > ChamberHitMap
Definition: CSCSegmentValidation.h:26
CSCSegmentValidation::theShowerThreshold
int theShowerThreshold
Definition: CSCSegmentValidation.h:36
rpcPointValidation_cfi.simHit
simHit
Definition: rpcPointValidation_cfi.py:24
CSCSegmentValidation::theTypePlot5HitsNoShower
MonitorElement * theTypePlot5HitsNoShower
Definition: CSCSegmentValidation.h:53
CSCSegmentValidation::hasSegment
bool hasSegment(int chamberId) const
Definition: CSCSegmentValidation.cc:144
CSCSegmentValidation::theTypePlot4HitsShower
MonitorElement * theTypePlot4HitsShower
Definition: CSCSegmentValidation.h:51
CSCSegmentValidation::theNPerEventPlot
MonitorElement * theNPerEventPlot
Definition: CSCSegmentValidation.h:38
CSCSegmentValidation::theNRecHitsPlot
MonitorElement * theNRecHitsPlot
Definition: CSCSegmentValidation.h:39
CSCSegment
Definition: CSCSegment.h:21
CSCSegmentValidation::theTypePlot4HitsNoShower
MonitorElement * theTypePlot4HitsNoShower
Definition: CSCSegmentValidation.h:49
CSCSegmentValidation
Definition: CSCSegmentValidation.h:8
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
CSCSegmentValidation::theTypePlot6HitsNoShower
MonitorElement * theTypePlot6HitsNoShower
Definition: CSCSegmentValidation.h:57
edm::ParameterSet
Definition: ParameterSet.h:47
CSCSegmentValidation::theTypePlot6HitsShower
MonitorElement * theTypePlot6HitsShower
Definition: CSCSegmentValidation.h:59
CSCSegmentValidation::fillLayerHitsPerChamber
void fillLayerHitsPerChamber()
Definition: CSCSegmentValidation.cc:178
CSCSegmentValidation::thedXdZPullPlots
MonitorElement * thedXdZPullPlots[10]
Definition: CSCSegmentValidation.h:45
edm::EventSetup
Definition: EventSetup.h:58
CSCSegmentValidation::theTypePlot4HitsNoShowerSeg
MonitorElement * theTypePlot4HitsNoShowerSeg
Definition: CSCSegmentValidation.h:50
CSCSegmentValidation::CSCSegmentValidation
CSCSegmentValidation(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
Definition: CSCSegmentValidation.cc:5
CSCSegmentValidation::theTypePlot5HitsShowerSeg
MonitorElement * theTypePlot5HitsShowerSeg
Definition: CSCSegmentValidation.h:56
CSCSegmentValidation::theChamberSegmentMap
ChamberSegmentMap theChamberSegmentMap
Definition: CSCSegmentValidation.h:34
dqm::implementation::IBooker
Definition: DQMStore.h:43
ConsumesCollector.h
CSCBaseValidation
Definition: CSCBaseValidation.h:14
CSCBaseValidation.h
PSimHit
Definition: PSimHit.h:15
edm::Event
Definition: Event.h:73
CSCSegmentValidation::thedXdZResolutionPlots
MonitorElement * thedXdZResolutionPlots[10]
Definition: CSCSegmentValidation.h:44
CSCSegmentValidation::thedYdZPullPlots
MonitorElement * thedYdZPullPlots[10]
Definition: CSCSegmentValidation.h:47
CSCSegmentValidation::theTypePlot4HitsShowerSeg
MonitorElement * theTypePlot4HitsShowerSeg
Definition: CSCSegmentValidation.h:52
CSCSegmentValidation::theThetaResolutionPlots
MonitorElement * theThetaResolutionPlots[10]
Definition: CSCSegmentValidation.h:43
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
CSCSegmentValidation::theTypePlot6HitsShowerSeg
MonitorElement * theTypePlot6HitsShowerSeg
Definition: CSCSegmentValidation.h:60
CSCSegmentCollection.h