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