Skip to content

Commit

Permalink
Added plots to monitor pixel clusterrepair algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Rossi committed Apr 2, 2019
1 parent 5eeb095 commit 815d40a
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DQM/SiPixelPhase1Track/plugins/SiPixelPhase1RecHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class SiPixelPhase1RecHits final : public SiPixelPhase1Base {
ERROR_X,
ERROR_Y,
POS,
CLUSTER_PROB
CLUSTER_PROB,
NONEDGE,
NOTHERBAD
};

public:
Expand Down Expand Up @@ -142,6 +144,8 @@ void SiPixelPhase1RecHits::analyze(const edm::Event& iEvent, const edm::EventSet
float lerr_y = sqrt(lerr.yy());

histo[NRECHITS].fill(id, &iEvent, col, row); //in general a inclusive counter of missing/valid/inactive hits
if(prechit->isOnEdge()) histo[NONEDGE].fill(id, &iEvent, col, row);
if(prechit->hasBadPixels()) histo[NOTHERBAD].fill(id, &iEvent, col, row);

if (isHitValid){
histo[CLUST_X].fill(sizeX, id, &iEvent, col, row);
Expand Down
96 changes: 96 additions & 0 deletions DQM/SiPixelPhase1Track/python/SiPixelPhase1RecHits_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,100 @@
)
)

SiPixelPhase1RecHitsOnEdge = DefaultHistoTrack.clone(
name = "onedge",
title = "OnEdge",
range_min = 0, range_max = 30, range_nbins = 30,
xlabel = "onedge",
dimensions = 0,
specs = VPSet(

StandardSpecificationTrend_Num,
StandardSpecificationOccupancy,
Specification().groupBy("PXBarrel/PXLayer/Event")
.reduce("COUNT")
.groupBy("PXBarrel/PXLayer/LumiBlock")
.reduce("MEAN")
.groupBy("PXBarrel/PXLayer","EXTEND_X")
.save(),
Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward/PXDisk/LumiBlock")
.reduce("MEAN")
.groupBy("PXForward/PXDisk","EXTEND_X")
.save(),
Specification().groupBy("PXBarrel/PXLayer/Event")
.reduce("COUNT")
.groupBy("PXBarrel/PXLayer/")
.save(nbins=100, xmin=0, xmax=1000),
Specification().groupBy("PXBarrel/Event")
.reduce("COUNT")
.groupBy("PXBarrel")
.save(nbins=100, xmin=0, xmax=1000),

Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward/PXDisk/")
.save(nbins=100, xmin=0, xmax=1000),
Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward")
.save(nbins=100, xmin=0, xmax=1000),

Specification().groupBy("PXAll/Event")
.reduce("COUNT")
.groupBy("PXAll")
.save(nbins=100, xmin=0, xmax=1000)

)
)

SiPixelPhase1RecHitsOtherBad = DefaultHistoTrack.clone(
name = "otherbad",
title = "OtherBad",
range_min = 0, range_max = 30, range_nbins = 30,
xlabel = "otherbad",
dimensions = 0,
specs = VPSet(

StandardSpecificationTrend_Num,
StandardSpecificationOccupancy,
Specification().groupBy("PXBarrel/PXLayer/Event")
.reduce("COUNT")
.groupBy("PXBarrel/PXLayer/LumiBlock")
.reduce("MEAN")
.groupBy("PXBarrel/PXLayer","EXTEND_X")
.save(),
Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward/PXDisk/LumiBlock")
.reduce("MEAN")
.groupBy("PXForward/PXDisk","EXTEND_X")
.save(),
Specification().groupBy("PXBarrel/PXLayer/Event")
.reduce("COUNT")
.groupBy("PXBarrel/PXLayer/")
.save(nbins=100, xmin=0, xmax=1000),
Specification().groupBy("PXBarrel/Event")
.reduce("COUNT")
.groupBy("PXBarrel")
.save(nbins=100, xmin=0, xmax=1000),

Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward/PXDisk/")
.save(nbins=100, xmin=0, xmax=1000),
Specification().groupBy("PXForward/PXDisk/Event")
.reduce("COUNT")
.groupBy("PXForward")
.save(nbins=100, xmin=0, xmax=1000),

Specification().groupBy("PXAll/Event")
.reduce("COUNT")
.groupBy("PXAll")
.save(nbins=100, xmin=0, xmax=1000)
)
)

SiPixelPhase1RecHitsConf = cms.VPSet(
SiPixelPhase1RecHitsNRecHits,
Expand All @@ -117,6 +211,8 @@
SiPixelPhase1RecHitsErrorY,
SiPixelPhase1RecHitsPosition,
SiPixelPhase1RecHitsProb,
SiPixelPhase1RecHitsOnEdge,
SiPixelPhase1RecHitsOtherBad,
)

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
Expand Down

0 comments on commit 815d40a

Please sign in to comment.