1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
#ifndef SiPixelMonitorCluster_SiPixelClusterModule_h
#define SiPixelMonitorCluster_SiPixelClusterModule_h
// -*- C++ -*-
//
// Package: SiPixelMonitorDigi
// Class: SiPixelClusterModule
//
/*
Description: Cluster monitoring elements for a Pixel sensor
Implementation:
<Notes on implementation>
*/
//
// Original Author: Vincenzo Chiochia & Andrew York
// Created:
//
//
// Updated by: Lukas Wehrli
// for pixel offline DQM
#include "DQMServices/Core/interface/DQMStore.h"
#include "DataFormats/Common/interface/DetSetVectorNew.h"
#include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include <cstdint>
class SiPixelClusterModule {
public:
typedef dqm::reco::DQMStore DQMStore;
typedef dqm::reco::MonitorElement MonitorElement;
/// Default constructor
SiPixelClusterModule();
/// Constructor with raw DetId
SiPixelClusterModule(const uint32_t &id);
/// Constructor with raw DetId and sensor size
SiPixelClusterModule(const uint32_t &id, const int &ncols, const int &nrows);
/// Destructor
~SiPixelClusterModule();
typedef edmNew::DetSet<SiPixelCluster>::const_iterator ClusterIterator;
/// Book histograms
void book(const edm::ParameterSet &iConfig,
const TrackerTopology *pTT,
DQMStore::IBooker &iBooker,
int type = 0,
bool twoD = true,
bool reducedSet = false,
bool isUpgrade = false);
/// Fill histograms
int fill(const edmNew::DetSetVector<SiPixelCluster> &input,
const TrackerTopology *pTT,
const TrackerGeometry *tracker,
int *barrelClusterTotal,
int *fpixPClusterTotal,
int *fpixMClusterTotal,
std::vector<MonitorElement *> &layers,
std::vector<MonitorElement *> &diskspz,
std::vector<MonitorElement *> &disksmz,
bool modon = true,
bool ladon = false,
bool layon = false,
bool phion = false,
bool bladeon = false,
bool diskon = false,
bool ringon = false,
bool twoD = true,
bool reducedSet = false,
bool smileyon = false,
bool isUpgrade = false);
private:
uint32_t id_;
int ncols_;
int nrows_;
MonitorElement *meNClusters_;
MonitorElement *meY_;
MonitorElement *meX_;
MonitorElement *meCharge_;
MonitorElement *meSize_;
MonitorElement *meSizeX_;
MonitorElement *meSizeY_;
MonitorElement *meMinRow_;
MonitorElement *meMaxRow_;
MonitorElement *meMinCol_;
MonitorElement *meMaxCol_;
MonitorElement *mePixClusters_;
MonitorElement *mePixClusters_px_;
MonitorElement *mePixClusters_py_;
// MonitorElement* meEdgeHitX_;
// MonitorElement* meEdgeHitY_;
MonitorElement *meClPosLayer1;
MonitorElement *meClPosLayer2;
MonitorElement *meClPosLayer3;
MonitorElement *meClPosLayer4;
MonitorElement *meClPosDisk1pz;
MonitorElement *meClPosDisk2pz;
MonitorElement *meClPosDisk3pz;
MonitorElement *meClPosDisk1mz;
MonitorElement *meClPosDisk2mz;
MonitorElement *meClPosDisk3mz;
// barrel
MonitorElement *meNClustersLad_;
MonitorElement *meYLad_;
MonitorElement *meXLad_;
MonitorElement *meChargeLad_;
MonitorElement *meSizeLad_;
MonitorElement *meSizeXLad_;
MonitorElement *meSizeYLad_;
MonitorElement *meMinRowLad_;
MonitorElement *meMaxRowLad_;
MonitorElement *meMinColLad_;
MonitorElement *meMaxColLad_;
MonitorElement *mePixClustersLad_;
MonitorElement *mePixClustersLad_px_;
MonitorElement *mePixClustersLad_py_;
MonitorElement *meSizeYvsEtaBarrel_;
MonitorElement *meNClustersLay_;
MonitorElement *meYLay_;
MonitorElement *meXLay_;
MonitorElement *meChargeLay_;
MonitorElement *meSizeLay_;
MonitorElement *meSizeXLay_;
MonitorElement *meSizeYLay_;
MonitorElement *meMinRowLay_;
MonitorElement *meMaxRowLay_;
MonitorElement *meMinColLay_;
MonitorElement *meMaxColLay_;
MonitorElement *mePixClustersLay_;
MonitorElement *mePixClustersLay_px_;
MonitorElement *mePixClustersLay_py_;
MonitorElement *meNClustersPhi_;
MonitorElement *meYPhi_;
MonitorElement *meXPhi_;
MonitorElement *meChargePhi_;
MonitorElement *meSizePhi_;
MonitorElement *meSizeXPhi_;
MonitorElement *meSizeYPhi_;
MonitorElement *meMinRowPhi_;
MonitorElement *meMaxRowPhi_;
MonitorElement *meMinColPhi_;
MonitorElement *meMaxColPhi_;
MonitorElement *mePixClustersPhi_;
MonitorElement *mePixClustersPhi_px_;
MonitorElement *mePixClustersPhi_py_;
// forward
MonitorElement *meNClustersBlade_;
MonitorElement *meYBlade_;
MonitorElement *meXBlade_;
MonitorElement *meChargeBlade_;
MonitorElement *meSizeBlade_;
MonitorElement *meSizeXBlade_;
MonitorElement *meSizeYBlade_;
MonitorElement *meMinRowBlade_;
MonitorElement *meMaxRowBlade_;
MonitorElement *meMinColBlade_;
MonitorElement *meMaxColBlade_;
MonitorElement *meNClustersDisk_;
MonitorElement *meYDisk_;
MonitorElement *meXDisk_;
MonitorElement *meChargeDisk_;
MonitorElement *meSizeDisk_;
MonitorElement *meSizeXDisk_;
MonitorElement *meSizeYDisk_;
MonitorElement *meMinRowDisk_;
MonitorElement *meMaxRowDisk_;
MonitorElement *meMinColDisk_;
MonitorElement *meMaxColDisk_;
MonitorElement *meNClustersRing_;
MonitorElement *meYRing_;
MonitorElement *meXRing_;
MonitorElement *meChargeRing_;
MonitorElement *meSizeRing_;
MonitorElement *meSizeXRing_;
MonitorElement *meSizeYRing_;
MonitorElement *meMinRowRing_;
MonitorElement *meMaxRowRing_;
MonitorElement *meMinColRing_;
MonitorElement *meMaxColRing_;
MonitorElement *mePixClustersRing_;
MonitorElement *mePixClustersRing_px_;
MonitorElement *mePixClustersRing_py_;
};
#endif
|