CMS 3D CMS Logo

SiPixelHitEfficiencyModule.h
Go to the documentation of this file.
1 // Package: SiPixelMonitorTrack
2 // Class: SiPixelHitEfficiencyModule
3 //
4 // class SiPixelHitEfficiencyModule SiPixelHitEfficiencyModule.h
5 // DQM/SiPixelMonitorTrack/src/SiPixelHitEfficiencyModule.h
6 //
7 // Description: SiPixel hit efficiency data quality monitoring modules
8 // Implementation: prototype -> improved -> never final - end of the 1st step
9 //
10 // Original Authors: Romain Rougny & Luca Mucibello
11 // Created: Mar Nov 10 13:29:00 CET 2009
12 
13 #ifndef SiPixelMonitorTrack_SiPixelHitEfficiencyModule_h
14 #define SiPixelMonitorTrack_SiPixelHitEfficiencyModule_h
15 
16 #include <utility>
17 
18 //#include "DataFormats/GeometryCommonDetAlgo/interface/MeasurementVector.h"
24 #include <cstdint>
25 
26 namespace edm {
27  class EventSetup;
28 }
29 
31 public:
34 
36  SiPixelHitEfficiencyModule(const uint32_t);
38 
39  void book(
40  const edm::ParameterSet &, edm::EventSetup const &, DQMStore::IBooker &, int type = 0, bool isUpgrade = false);
41  void fill(const TrackerTopology *pTT,
42  const LocalTrajectoryParameters &ltp,
43  bool isHitValid,
44  bool modon = true,
45  bool ladon = true,
46  bool layon = true,
47  bool phion = true,
48  bool bladeon = true,
49  bool diskon = true,
50  bool ringon = true);
51  void computeEfficiencies(bool modon = true,
52  bool ladon = true,
53  bool layon = true,
54  bool phion = true,
55  bool bladeon = true,
56  bool diskon = true,
57  bool ringon = true);
58  std::pair<double, double> eff(double nValid, double nMissing);
59 
60 private:
61  uint32_t id_;
63  bool debug_;
65 
66  // EFFICIENCY
72 
78 
84 
90 
96 
102 
108 
109  // VALID HITS
115 
122 
128 
134 
140 
146 
152 
153  // MISSING HITS
159 
166 
172 
178 
184 
190 
196 };
197 
198 #endif
SiPixelHitEfficiencyModule::meEfficiencyYPhi_
MonitorElement * meEfficiencyYPhi_
Definition: SiPixelHitEfficiencyModule.h:87
SiPixelHitEfficiencyModule::meValidPhi_
MonitorElement * meValidPhi_
Definition: SiPixelHitEfficiencyModule.h:129
SiPixelHitEfficiencyModule::meMissingBetaBlade_
MonitorElement * meMissingBetaBlade_
Definition: SiPixelHitEfficiencyModule.h:183
SiPixelHitEfficiencyModule::meMissingRing_
MonitorElement * meMissingRing_
Definition: SiPixelHitEfficiencyModule.h:191
SiPixelHitEfficiencyModule::meMissingPhi_
MonitorElement * meMissingPhi_
Definition: SiPixelHitEfficiencyModule.h:173
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
SiPixelHitEfficiencyModule::meValidAlphaPhi_
MonitorElement * meValidAlphaPhi_
Definition: SiPixelHitEfficiencyModule.h:132
SiPixelHitEfficiencyModule::meValidYLad_
MonitorElement * meValidYLad_
Definition: SiPixelHitEfficiencyModule.h:118
SiPixelHitEfficiencyModule::meValidYBlade_
MonitorElement * meValidYBlade_
Definition: SiPixelHitEfficiencyModule.h:137
SiPixelHitEfficiencyModule::meValidXRing_
MonitorElement * meValidXRing_
Definition: SiPixelHitEfficiencyModule.h:148
SiPixelHitEfficiencyModule::computeEfficiencies
void computeEfficiencies(bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
Definition: SiPixelHitEfficiencyModule.cc:603
SiPixelHitEfficiencyModule::meEfficiencyYLad_
MonitorElement * meEfficiencyYLad_
Definition: SiPixelHitEfficiencyModule.h:75
SiPixelHitEfficiencyModule::DQMStore
dqm::reco::DQMStore DQMStore
Definition: SiPixelHitEfficiencyModule.h:32
SiPixelHitEfficiencyModule::meValidYPhi_
MonitorElement * meValidYPhi_
Definition: SiPixelHitEfficiencyModule.h:131
SiPixelHitEfficiencyModule::meEfficiency_
MonitorElement * meEfficiency_
Definition: SiPixelHitEfficiencyModule.h:67
SiPixelHitEfficiencyModule::MonitorElement
dqm::reco::MonitorElement MonitorElement
Definition: SiPixelHitEfficiencyModule.h:33
SiPixelHitEfficiencyModule::meMissingXBlade_
MonitorElement * meMissingXBlade_
Definition: SiPixelHitEfficiencyModule.h:180
SiPixelHitEfficiencyModule::meEfficiencyLad_
MonitorElement * meEfficiencyLad_
Definition: SiPixelHitEfficiencyModule.h:73
SiPixelHitEfficiencyModule::meEfficiencyAlpha_
MonitorElement * meEfficiencyAlpha_
Definition: SiPixelHitEfficiencyModule.h:70
SiPixelHitEfficiencyModule::meEfficiencyLay_
MonitorElement * meEfficiencyLay_
Definition: SiPixelHitEfficiencyModule.h:79
SiPixelHitEfficiencyModule::meValidXLay_
MonitorElement * meValidXLay_
Definition: SiPixelHitEfficiencyModule.h:124
edm
HLT enums.
Definition: AlignableModifier.h:19
TrackerTopology
Definition: TrackerTopology.h:16
SiPixelHitEfficiencyModule::meEfficiencyBetaDisk_
MonitorElement * meEfficiencyBetaDisk_
Definition: SiPixelHitEfficiencyModule.h:101
SiPixelHitEfficiencyModule::meMissingAlpha_
MonitorElement * meMissingAlpha_
Definition: SiPixelHitEfficiencyModule.h:157
SiPixelHitEfficiencyModule::meMissingYLad_
MonitorElement * meMissingYLad_
Definition: SiPixelHitEfficiencyModule.h:162
SiPixelHitEfficiencyModule::meValidLay_
MonitorElement * meValidLay_
Definition: SiPixelHitEfficiencyModule.h:123
SiPixelHitEfficiencyModule::meEfficiencyPhi_
MonitorElement * meEfficiencyPhi_
Definition: SiPixelHitEfficiencyModule.h:85
DQMStore.h
SiPixelHitEfficiencyModule::meMissingBeta_
MonitorElement * meMissingBeta_
Definition: SiPixelHitEfficiencyModule.h:158
SiPixelHitEfficiencyModule::meEfficiencyAlphaBlade_
MonitorElement * meEfficiencyAlphaBlade_
Definition: SiPixelHitEfficiencyModule.h:94
SiPixelHitEfficiencyModule::id_
uint32_t id_
Definition: SiPixelHitEfficiencyModule.h:61
SiPixelHitEfficiencyModule::meMissingBetaRing_
MonitorElement * meMissingBetaRing_
Definition: SiPixelHitEfficiencyModule.h:195
SiPixelHitEfficiencyModule::meEfficiencyBetaPhi_
MonitorElement * meEfficiencyBetaPhi_
Definition: SiPixelHitEfficiencyModule.h:89
SiPixelHitEfficiencyModule::meValidAlphaRing_
MonitorElement * meValidAlphaRing_
Definition: SiPixelHitEfficiencyModule.h:150
SiPixelHitEfficiencyModule::meMissingYPhi_
MonitorElement * meMissingYPhi_
Definition: SiPixelHitEfficiencyModule.h:175
SiPixelHitEfficiencyModule::meMissing_
MonitorElement * meMissing_
Definition: SiPixelHitEfficiencyModule.h:154
SiPixelHitEfficiencyModule::meMissingAlphaRing_
MonitorElement * meMissingAlphaRing_
Definition: SiPixelHitEfficiencyModule.h:194
SiPixelHitEfficiencyModule::meEfficiencyYDisk_
MonitorElement * meEfficiencyYDisk_
Definition: SiPixelHitEfficiencyModule.h:99
SiPixelHitEfficiencyModule::meValidModLad_
MonitorElement * meValidModLad_
Definition: SiPixelHitEfficiencyModule.h:119
SiPixelHitEfficiencyModule::meValidXBlade_
MonitorElement * meValidXBlade_
Definition: SiPixelHitEfficiencyModule.h:136
SiPixelHitEfficiencyModule::meEfficiencyXDisk_
MonitorElement * meEfficiencyXDisk_
Definition: SiPixelHitEfficiencyModule.h:98
SiPixelHitEfficiencyModule::meValidBetaBlade_
MonitorElement * meValidBetaBlade_
Definition: SiPixelHitEfficiencyModule.h:139
SiPixelHitEfficiencyModule::meEfficiencyAlphaDisk_
MonitorElement * meEfficiencyAlphaDisk_
Definition: SiPixelHitEfficiencyModule.h:100
LocalTrajectoryParameters
Definition: LocalTrajectoryParameters.h:25
SiPixelHitEfficiencyModule::SiPixelHitEfficiencyModule
SiPixelHitEfficiencyModule()
Definition: SiPixelHitEfficiencyModule.cc:38
LocalTrajectoryParameters.h
TrackerTopology.h
SiPixelHitEfficiencyModule::meValidBetaPhi_
MonitorElement * meValidBetaPhi_
Definition: SiPixelHitEfficiencyModule.h:133
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelHitEfficiencyModule::meMissingBetaDisk_
MonitorElement * meMissingBetaDisk_
Definition: SiPixelHitEfficiencyModule.h:189
SiPixelHitEfficiencyModule::meValidX_
MonitorElement * meValidX_
Definition: SiPixelHitEfficiencyModule.h:111
SiPixelHitEfficiencyModule::meValidY_
MonitorElement * meValidY_
Definition: SiPixelHitEfficiencyModule.h:112
SiPixelHitEfficiencyModule::meMissingYLay_
MonitorElement * meMissingYLay_
Definition: SiPixelHitEfficiencyModule.h:169
SiPixelHitEfficiencyModule::meEfficiencyXLay_
MonitorElement * meEfficiencyXLay_
Definition: SiPixelHitEfficiencyModule.h:80
SiPixelHitEfficiencyModule::fill
void fill(const TrackerTopology *pTT, const LocalTrajectoryParameters &ltp, bool isHitValid, bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
Definition: SiPixelHitEfficiencyModule.cc:479
SiPixelHitEfficiencyModule::meMissingYDisk_
MonitorElement * meMissingYDisk_
Definition: SiPixelHitEfficiencyModule.h:187
SiPixelHitEfficiencyModule::meValidBeta_
MonitorElement * meValidBeta_
Definition: SiPixelHitEfficiencyModule.h:114
SiPixelHitEfficiencyModule::meEfficiencyAlphaLay_
MonitorElement * meEfficiencyAlphaLay_
Definition: SiPixelHitEfficiencyModule.h:82
SiPixelHitEfficiencyModule::meEfficiencyX_
MonitorElement * meEfficiencyX_
Definition: SiPixelHitEfficiencyModule.h:68
SiPixelHitEfficiencyModule::meMissingLay_
MonitorElement * meMissingLay_
Definition: SiPixelHitEfficiencyModule.h:167
SiPixelHitEfficiencyModule::meEfficiencyXLad_
MonitorElement * meEfficiencyXLad_
Definition: SiPixelHitEfficiencyModule.h:74
SiPixelHitEfficiencyModule::meValidDisk_
MonitorElement * meValidDisk_
Definition: SiPixelHitEfficiencyModule.h:141
SiPixelHitEfficiencyModule::book
void book(const edm::ParameterSet &, edm::EventSetup const &, DQMStore::IBooker &, int type=0, bool isUpgrade=false)
Definition: SiPixelHitEfficiencyModule.cc:44
SiPixelHitEfficiencyModule::meMissingXLay_
MonitorElement * meMissingXLay_
Definition: SiPixelHitEfficiencyModule.h:168
SiPixelHitEfficiencyModule::meMissingYBlade_
MonitorElement * meMissingYBlade_
Definition: SiPixelHitEfficiencyModule.h:181
SiPixelRecHitCollection.h
SiPixelHitEfficiencyModule::meMissingModLad_
MonitorElement * meMissingModLad_
Definition: SiPixelHitEfficiencyModule.h:163
edm::ParameterSet
Definition: ParameterSet.h:36
SiPixelHitEfficiencyModule::meEfficiencyYRing_
MonitorElement * meEfficiencyYRing_
Definition: SiPixelHitEfficiencyModule.h:105
SiPixelHitEfficiencyModule::meEfficiencyXBlade_
MonitorElement * meEfficiencyXBlade_
Definition: SiPixelHitEfficiencyModule.h:92
SiPixelHitEfficiencyModule::meValidYDisk_
MonitorElement * meValidYDisk_
Definition: SiPixelHitEfficiencyModule.h:143
SiPixelHitEfficiencyModule::meEfficiencyAlphaRing_
MonitorElement * meEfficiencyAlphaRing_
Definition: SiPixelHitEfficiencyModule.h:106
SiPixelHitEfficiencyModule::meEfficiencyXPhi_
MonitorElement * meEfficiencyXPhi_
Definition: SiPixelHitEfficiencyModule.h:86
SiPixelHitEfficiencyModule::updateEfficiencies
bool updateEfficiencies
Definition: SiPixelHitEfficiencyModule.h:64
SiPixelHitEfficiencyModule::meMissingDisk_
MonitorElement * meMissingDisk_
Definition: SiPixelHitEfficiencyModule.h:185
SiPixelHitEfficiencyModule::meValidAlpha_
MonitorElement * meValidAlpha_
Definition: SiPixelHitEfficiencyModule.h:113
SiPixelHitEfficiencyModule::meMissingXRing_
MonitorElement * meMissingXRing_
Definition: SiPixelHitEfficiencyModule.h:192
SiPixelHitEfficiencyModule::meMissingXDisk_
MonitorElement * meMissingXDisk_
Definition: SiPixelHitEfficiencyModule.h:186
SiPixelHitEfficiencyModule::meMissingAlphaDisk_
MonitorElement * meMissingAlphaDisk_
Definition: SiPixelHitEfficiencyModule.h:188
SiPixelHitEfficiencyModule::meEfficiencyAlphaPhi_
MonitorElement * meEfficiencyAlphaPhi_
Definition: SiPixelHitEfficiencyModule.h:88
SiPixelHitEfficiencyModule::meValidAlphaDisk_
MonitorElement * meValidAlphaDisk_
Definition: SiPixelHitEfficiencyModule.h:144
SiPixelHitEfficiencyModule::meValidYRing_
MonitorElement * meValidYRing_
Definition: SiPixelHitEfficiencyModule.h:149
SiPixelHitEfficiencyModule::meValidBetaLay_
MonitorElement * meValidBetaLay_
Definition: SiPixelHitEfficiencyModule.h:127
edm::EventSetup
Definition: EventSetup.h:57
SiPixelHitEfficiencyModule::meMissingY_
MonitorElement * meMissingY_
Definition: SiPixelHitEfficiencyModule.h:156
SiPixelHitEfficiencyModule::meValidXLad_
MonitorElement * meValidXLad_
Definition: SiPixelHitEfficiencyModule.h:117
SiPixelHitEfficiencyModule::meEfficiencyXRing_
MonitorElement * meEfficiencyXRing_
Definition: SiPixelHitEfficiencyModule.h:104
SiPixelHitEfficiencyModule::meEfficiencyYBlade_
MonitorElement * meEfficiencyYBlade_
Definition: SiPixelHitEfficiencyModule.h:93
SiPixelHitEfficiencyModule::meEfficiencyDisk_
MonitorElement * meEfficiencyDisk_
Definition: SiPixelHitEfficiencyModule.h:97
SiPixelHitEfficiencyModule::meValidXPhi_
MonitorElement * meValidXPhi_
Definition: SiPixelHitEfficiencyModule.h:130
SiPixelHitEfficiencyModule::meValidAlphaLad_
MonitorElement * meValidAlphaLad_
Definition: SiPixelHitEfficiencyModule.h:120
SiPixelHitEfficiencyModule::meEfficiencyRing_
MonitorElement * meEfficiencyRing_
Definition: SiPixelHitEfficiencyModule.h:103
SiPixelHitEfficiencyModule::meEfficiencyBetaLay_
MonitorElement * meEfficiencyBetaLay_
Definition: SiPixelHitEfficiencyModule.h:83
SiPixelHitEfficiencyModule::meMissingLad_
MonitorElement * meMissingLad_
Definition: SiPixelHitEfficiencyModule.h:160
SiPixelHitEfficiencyModule::meMissingXLad_
MonitorElement * meMissingXLad_
Definition: SiPixelHitEfficiencyModule.h:161
SiPixelHitEfficiencyModule::meMissingBlade_
MonitorElement * meMissingBlade_
Definition: SiPixelHitEfficiencyModule.h:179
type
type
Definition: HCALResponse.h:21
SiPixelHitEfficiencyModule::meMissingAlphaLay_
MonitorElement * meMissingAlphaLay_
Definition: SiPixelHitEfficiencyModule.h:170
SiPixelHitEfficiencyModule::meMissingAlphaBlade_
MonitorElement * meMissingAlphaBlade_
Definition: SiPixelHitEfficiencyModule.h:182
SiPixelHitEfficiencyModule::meValidBetaRing_
MonitorElement * meValidBetaRing_
Definition: SiPixelHitEfficiencyModule.h:151
SiPixelHitEfficiencyModule::meValidAlphaBlade_
MonitorElement * meValidAlphaBlade_
Definition: SiPixelHitEfficiencyModule.h:138
SiPixelHitEfficiencyModule::meMissingBetaLay_
MonitorElement * meMissingBetaLay_
Definition: SiPixelHitEfficiencyModule.h:171
SiPixelHitEfficiencyModule::meValid_
MonitorElement * meValid_
Definition: SiPixelHitEfficiencyModule.h:110
SiPixelHitEfficiencyModule::meValidRing_
MonitorElement * meValidRing_
Definition: SiPixelHitEfficiencyModule.h:147
SiPixelHitEfficiencyModule::meMissingYRing_
MonitorElement * meMissingYRing_
Definition: SiPixelHitEfficiencyModule.h:193
SiPixelHitEfficiencyModule::meEfficiencyYLay_
MonitorElement * meEfficiencyYLay_
Definition: SiPixelHitEfficiencyModule.h:81
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelHitEfficiencyModule::~SiPixelHitEfficiencyModule
~SiPixelHitEfficiencyModule()
Definition: SiPixelHitEfficiencyModule.cc:42
SiPixelHitEfficiencyModule::meValidLad_
MonitorElement * meValidLad_
Definition: SiPixelHitEfficiencyModule.h:116
SiPixelHitEfficiencyModule::meEfficiencyAlphaLad_
MonitorElement * meEfficiencyAlphaLad_
Definition: SiPixelHitEfficiencyModule.h:76
SiPixelHitEfficiencyModule::meMissingBetaLad_
MonitorElement * meMissingBetaLad_
Definition: SiPixelHitEfficiencyModule.h:165
SiPixelHitEfficiencyModule::meEfficiencyY_
MonitorElement * meEfficiencyY_
Definition: SiPixelHitEfficiencyModule.h:69
SiPixelHitEfficiencyModule::meMissingX_
MonitorElement * meMissingX_
Definition: SiPixelHitEfficiencyModule.h:155
EventSetup
ParameterSet.h
SiPixelHitEfficiencyModule::meMissingAlphaPhi_
MonitorElement * meMissingAlphaPhi_
Definition: SiPixelHitEfficiencyModule.h:176
SiPixelHitEfficiencyModule::eff
std::pair< double, double > eff(double nValid, double nMissing)
Definition: SiPixelHitEfficiencyModule.cc:783
SiPixelHitEfficiencyModule::debug_
bool debug_
Definition: SiPixelHitEfficiencyModule.h:63
SiPixelOfflineDQM_client_cff.isUpgrade
isUpgrade
Definition: SiPixelOfflineDQM_client_cff.py:19
SiPixelHitEfficiencyModule::meValidAlphaLay_
MonitorElement * meValidAlphaLay_
Definition: SiPixelHitEfficiencyModule.h:126
SiPixelHitEfficiencyModule::bBookTracks
bool bBookTracks
Definition: SiPixelHitEfficiencyModule.h:62
SiPixelHitEfficiencyModule::meValidBetaLad_
MonitorElement * meValidBetaLad_
Definition: SiPixelHitEfficiencyModule.h:121
SiPixelHitEfficiencyModule::meEfficiencyBeta_
MonitorElement * meEfficiencyBeta_
Definition: SiPixelHitEfficiencyModule.h:71
SiPixelHitEfficiencyModule::meEfficiencyBetaLad_
MonitorElement * meEfficiencyBetaLad_
Definition: SiPixelHitEfficiencyModule.h:77
SiPixelHitEfficiencyModule::meEfficiencyBetaBlade_
MonitorElement * meEfficiencyBetaBlade_
Definition: SiPixelHitEfficiencyModule.h:95
SiPixelHitEfficiencyModule::meValidBetaDisk_
MonitorElement * meValidBetaDisk_
Definition: SiPixelHitEfficiencyModule.h:145
SiPixelHitEfficiencyModule::meMissingAlphaLad_
MonitorElement * meMissingAlphaLad_
Definition: SiPixelHitEfficiencyModule.h:164
SiPixelHitEfficiencyModule::meEfficiencyBetaRing_
MonitorElement * meEfficiencyBetaRing_
Definition: SiPixelHitEfficiencyModule.h:107
SiPixelHitEfficiencyModule::meMissingXPhi_
MonitorElement * meMissingXPhi_
Definition: SiPixelHitEfficiencyModule.h:174
SiPixelHitEfficiencyModule::meEfficiencyBlade_
MonitorElement * meEfficiencyBlade_
Definition: SiPixelHitEfficiencyModule.h:91
SiPixelHitEfficiencyModule::meMissingBetaPhi_
MonitorElement * meMissingBetaPhi_
Definition: SiPixelHitEfficiencyModule.h:177
SiPixelHitEfficiencyModule::meValidBlade_
MonitorElement * meValidBlade_
Definition: SiPixelHitEfficiencyModule.h:135
SiPixelHitEfficiencyModule
Definition: SiPixelHitEfficiencyModule.h:30
SiPixelHitEfficiencyModule::meValidYLay_
MonitorElement * meValidYLay_
Definition: SiPixelHitEfficiencyModule.h:125
SiPixelHitEfficiencyModule::meValidXDisk_
MonitorElement * meValidXDisk_
Definition: SiPixelHitEfficiencyModule.h:142