71 bool isHalfModule =
false;
93 meSize_ = iBooker.
book1D(hid,
"Total cluster size", 30, 0., 30.);
106 meMinCol_ = iBooker.
book1D(hid,
"Lowest cluster column", 500, 0., 500.);
110 meMaxCol_ = iBooker.
book1D(hid,
"Highest cluster column", 500, 0., 500.);
114 meX_ = iBooker.
book1D(hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
118 meY_ = iBooker.
book1D(hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
122 meSizeX_ = iBooker.
book1D(hid,
"Cluster x-width (rows)", 10, 0., 10.);
126 meSizeY_ = iBooker.
book1D(hid,
"Cluster y-width (columns)", 15, 0., 15.);
134 hid,
"Number of Clusters (1bin=four pixels)", nbinx, 0.,
float(
ncols_), nbiny, 0.,
float(
nrows_));
140 iBooker.
book1D(hid +
"_px",
"Number of Clusters (1bin=two columns)", nbinx, 0.,
float(
ncols_));
146 delete theHistogramId;
150 if (barrel && type == 7) {
151 hid = src.
label() +
"_Barrel";
153 "sizeYvsEta_" + hid,
"Cluster size along beamline vs. Cluster position #eta", 60, -3., 3., 40, 0., 40.);
157 if (type == 1 && barrel) {
161 sprintf(sladder,
"Ladder_%02i", DBladder);
162 hid = src.
label() +
"_" + sladder;
174 meSizeLad_ = iBooker.
book1D(
"size_" + hid,
"Total cluster size", 30, 0., 30.);
184 meMinColLad_ = iBooker.
book1D(
"mincol_" + hid,
"Lowest cluster column", 500, 0., 500.);
187 meMaxColLad_ = iBooker.
book1D(
"maxcol_" + hid,
"Highest cluster column", 500, 0., 500.);
190 meXLad_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
193 meYLad_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
196 meSizeXLad_ = iBooker.
book1D(
"sizeX_" + hid,
"Cluster x-width (rows)", 10, 0., 10.);
199 meSizeYLad_ = iBooker.
book1D(
"sizeY_" + hid,
"Cluster y-width (columns)", 15, 0., 15.);
204 "Number of Clusters (1bin=four pixels)",
216 iBooker.
book1D(
"hitmap_" + hid +
"_px",
"Number of Clusters (1bin=two columns)", nbinx, 0.,
float(
ncols_));
218 iBooker.
book1D(
"hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", nbiny, 0.,
float(
nrows_));
225 if (type == 2 && barrel) {
229 sprintf(slayer,
"Layer_%i", DBlayer);
230 hid = src.
label() +
"_" + slayer;
238 meSizeLay_ = iBooker.
book1D(
"size_" + hid,
"Total cluster size", 30, 0., 30.);
248 meMinColLay_ = iBooker.
book1D(
"mincol_" + hid,
"Lowest cluster column", 500, 0., 500.);
251 meMaxColLay_ = iBooker.
book1D(
"maxcol_" + hid,
"Highest cluster column", 500, 0., 500.);
254 meXLay_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
257 meYLay_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
260 meSizeXLay_ = iBooker.
book1D(
"sizeX_" + hid,
"Cluster x-width (rows)", 10, 0., 10.);
263 meSizeYLay_ = iBooker.
book1D(
"sizeY_" + hid,
"Cluster y-width (columns)", 15, 0., 15.);
269 "Number of Clusters (1bin=four pixels)",
278 "Number of Clusters (1bin=four pixels)",
291 iBooker.
book1D(
"hitmap_" + hid +
"_px",
"Number of Clusters (1bin=two columns)", nbinx, 0.,
float(
ncols_));
294 "hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", 2 * nbiny, 0.,
float(2 *
nrows_));
297 iBooker.
book1D(
"hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", nbiny, 0.,
float(
nrows_));
304 if (type == 3 && barrel) {
308 sprintf(smodule,
"Ring_%i", DBmodule);
309 hid = src.
label() +
"_" + smodule;
317 meSizePhi_ = iBooker.
book1D(
"size_" + hid,
"Total cluster size", 30, 0., 30.);
327 meMinColPhi_ = iBooker.
book1D(
"mincol_" + hid,
"Lowest cluster column", 500, 0., 500.);
330 meMaxColPhi_ = iBooker.
book1D(
"maxcol_" + hid,
"Highest cluster column", 500, 0., 500.);
333 meXPhi_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
336 meYPhi_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
339 meSizeXPhi_ = iBooker.
book1D(
"sizeX_" + hid,
"Cluster x-width (rows)", 10, 0., 10.);
342 meSizeYPhi_ = iBooker.
book1D(
"sizeY_" + hid,
"Cluster y-width (columns)", 15, 0., 15.);
348 "Number of Clusters (1bin=four pixels)",
357 "Number of Clusters (1bin=four pixels)",
370 iBooker.
book1D(
"hitmap_" + hid +
"_px",
"Number of Clusters (1bin=two columns)", nbinx, 0.,
float(
ncols_));
373 "hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", 2 * nbiny, 0.,
float(2 *
nrows_));
376 iBooker.
book1D(
"hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", nbiny, 0.,
float(
nrows_));
384 if (type == 4 && endcap) {
389 sprintf(sblade,
"Blade_%02i", blade);
390 hid = src.
label() +
"_" + sblade;
414 meXBlade_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
417 meYBlade_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
427 if (type == 5 && endcap) {
432 sprintf(sdisk,
"Disk_%i", disk);
433 hid = src.
label() +
"_" + sdisk;
457 meXDisk_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
460 meYDisk_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
466 meSizeYDisk_ = iBooker.
book1D(
"sizeY_" + hid,
"Cluster y-width (columns)", 15, 0., 15.);
471 if (type == 6 && endcap) {
478 sprintf(slab,
"Panel_%i_Ring_%i", panel, module);
479 hid = src.
label() +
"_" + slab;
503 meXRing_ = iBooker.
book1D(
"x_" + hid,
"Cluster barycenter X (row #)", 200, 0., 200.);
506 meYRing_ = iBooker.
book1D(
"y_" + hid,
"Cluster barycenter Y (column #)", 500, 0., 500.);
512 meSizeYRing_ = iBooker.
book1D(
"sizeY_" + hid,
"Cluster y-width (columns)", 15, 0., 15.);
517 "Number of Clusters (1bin=four pixels)",
529 iBooker.
book1D(
"hitmap_" + hid +
"_px",
"Number of Clusters (1bin=two columns)", nbinx, 0.,
float(
ncols_));
531 iBooker.
book1D(
"hitmap_" + hid +
"_py",
"Number of Clusters (1bin=two rows)", nbiny, 0.,
float(
nrows_));
543 int *barrelClusterTotal,
544 int *fpixPClusterTotal,
545 int *fpixMClusterTotal,
546 std::vector<MonitorElement *> &
layers,
547 std::vector<MonitorElement *> &diskspz,
548 std::vector<MonitorElement *> &disksmz,
564 unsigned int numberOfClusters = 0;
565 unsigned int numberOfFpixClusters = 0;
567 if (isearch != input.
end()) {
571 for (di = isearch->
begin(); di != isearch->
end(); di++) {
574 numberOfFpixClusters++;
576 (*barrelClusterTotal)++;
577 float charge = 0.001 * (di->charge());
581 int sizeX = di->sizeX();
582 int sizeY = di->sizeY();
583 int minPixelRow = di->minPixelRow();
584 int maxPixelRow = di->maxPixelRow();
585 int minPixelCol = di->minPixelCol();
586 int maxPixelCol = di->maxPixelCol();
600 if (!(DBlayer > layers.size()) && (layers[DBlayer - 1]))
601 layers[DBlayer - 1]->
Fill(clustgp.
z(), clustgp.
phi());
604 if (clustgp.
z() > 0) {
605 (*fpixPClusterTotal)++;
606 if (!(DBdisk > diskspz.size()) && (diskspz[DBdisk - 1]))
607 diskspz[DBdisk - 1]->
Fill(clustgp.
x(), clustgp.
y());
609 (*fpixMClusterTotal)++;
610 if (!(DBdisk > disksmz.size()) && (disksmz[DBdisk - 1]))
611 disksmz[DBdisk - 1]->
Fill(clustgp.
x(), clustgp.
y());
631 if (barrel && smileyon) {
637 if (ladon && barrel) {
657 if (layon && barrel) {
677 if (phion && barrel) {
697 if (bladeon && endcap) {
711 if (diskon && endcap) {
726 if (ringon && endcap) {
755 if (bladeon && endcap)
757 if (diskon && endcap)
759 if (ringon && endcap)
764 return numberOfFpixClusters;
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meMinColLay_
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
T getParameter(std::string const &) const
MonitorElement * meMinRowRing_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
MonitorElement * meMaxColLad_
MonitorElement * meSizePhi_
MonitorElement * meCharge_
MonitorElement * mePixClustersLad_px_
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
MonitorElement * meMaxCol_
MonitorElement * meMaxColPhi_
MonitorElement * meNClustersLad_
MonitorElement * meYBlade_
int moduleName() const
module id (index in z)
MonitorElement * meMinRowLad_
MonitorElement * meSizeYLay_
const TrackerTopology * pTT
MonitorElement * meSizeYLad_
MonitorElement * meSizeXLad_
MonitorElement * meSizeXLay_
MonitorElement * meMinRow_
Geom::Phi< T > phi() const
MonitorElement * meXDisk_
MonitorElement * meMaxRowRing_
MonitorElement * mePixClustersLay_
MonitorElement * meSizeYBlade_
SiPixelClusterModule()
Default constructor.
data_type const * const_iterator
MonitorElement * meMinRowBlade_
MonitorElement * meNClustersPhi_
MonitorElement * meChargePhi_
MonitorElement * meMinColPhi_
MonitorElement * meNClustersBlade_
MonitorElement * mePixClustersPhi_py_
MonitorElement * meMinRowDisk_
const Plane & surface() const
The nominal surface of the GeomDet.
MonitorElement * mePixClustersRing_px_
MonitorElement * meMaxRowLad_
static std::string const input
MonitorElement * meMinRowLay_
MonitorElement * meMinColBlade_
void book(const edm::ParameterSet &iConfig, const edm::EventSetup &iSetup, DQMStore::IBooker &iBooker, int type=0, bool twoD=true, bool reducedSet=false, bool isUpgrade=false)
Book histograms.
MonitorElement * meXRing_
MonitorElement * meSizeYDisk_
MonitorElement * meSizeDisk_
MonitorElement * meMaxColRing_
MonitorElement * meMinColLad_
int bladeName() const
blade id
MonitorElement * meMaxRowBlade_
MonitorElement * meChargeRing_
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
MonitorElement * mePixClustersLad_
bool isHalfModule() const
full or half module
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
~SiPixelClusterModule()
Destructor.
MonitorElement * meMaxRowPhi_
MonitorElement * meMinRowPhi_
MonitorElement * meMinColDisk_
MonitorElement * meMinCol_
MonitorElement * mePixClusters_py_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * book1D(Args &&...args)
MonitorElement * mePixClustersLay_px_
MonitorElement * meNClustersDisk_
MonitorElement * meSizeYRing_
int fill(const edmNew::DetSetVector< SiPixelCluster > &input, 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)
Fill histograms.
MonitorElement * mePixClustersRing_
MonitorElement * meSizeX_
MonitorElement * meSizeY_
MonitorElement * meMaxRowLay_
MonitorElement * meChargeDisk_
MonitorElement * meMaxColBlade_
MonitorElement * mePixClustersPhi_
MonitorElement * meChargeBlade_
MonitorElement * mePixClustersLay_py_
MonitorElement * meMinColRing_
MonitorElement * meNClustersLay_
MonitorElement * meMaxColLay_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meMaxRowDisk_
int ladderName() const
ladder id (index in phi)
MonitorElement * meYRing_
MonitorElement * book2D(Args &&...args)
MonitorElement * meNClustersRing_
MonitorElement * meSizeYvsEtaBarrel_
MonitorElement * mePixClustersLad_py_
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
int layerName() const
layer id
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
MonitorElement * meYDisk_
MonitorElement * meSizeRing_
MonitorElement * mePixClusters_px_
const_iterator find(id_type i, bool update=false) const
MonitorElement * meSizeXPhi_
MonitorElement * meSizeXRing_
MonitorElement * mePixClusters_
MonitorElement * meSizeXBlade_
int pannelName() const
pannel id
MonitorElement * meMaxRow_
const TrackerGeomDet * idToDet(DetId) const override
MonitorElement * meChargeLad_
MonitorElement * meSizeLad_
MonitorElement * meSizeBlade_
MonitorElement * mePixClustersRing_py_
int diskName() const
disk id
MonitorElement * meSizeXDisk_
MonitorElement * meSizeYPhi_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * mePixClustersPhi_px_
T const * product() const
MonitorElement * meXBlade_
MonitorElement * meChargeLay_
const_iterator begin(bool update=false) const
MonitorElement * meNClusters_
MonitorElement * meSizeLay_
MonitorElement * meMaxColDisk_