Skip to content

Commit 00c1137

Browse files
committed
Restore accidentally deleted code in SiPixelDigiSource and SiPixelClusterSource
1 parent 41cf6ff commit 00c1137

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ void SiPixelClusterSource::buildStructure(const edm::EventSetup &iSetup) {
344344
thePixelStructure.insert(pair<uint32_t, SiPixelClusterModule *>(id, theModule));
345345
} else if (detId.subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap)) {
346346
LogDebug("PixelDQM") << " ---> Adding Endcap Module " << detId.rawId() << endl;
347+
int disk = PixelEndcapName(DetId(id), pTT, isUpgrade).diskName();
348+
if (disk > noOfDisks)
349+
noOfDisks = disk;
347350
SiPixelClusterModule *theModule = new SiPixelClusterModule(id, ncols, nrows);
348351
thePixelStructure.insert(pair<uint32_t, SiPixelClusterModule *>(id, theModule));
349352
}

DQM/SiPixelMonitorDigi/src/SiPixelDigiSource.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,19 @@ void SiPixelDigiSource::buildStructure(const edm::EventSetup& iSetup) {
11371137
LogDebug("PixelDQM") << " ---> Adding Endcap Module " << detId.rawId() << endl;
11381138
uint32_t id = detId();
11391139
SiPixelDigiModule* theModule = new SiPixelDigiModule(id, ncols, nrows);
1140+
1141+
int disk = PixelEndcapName(DetId(id), pTT, isUpgrade).diskName();
1142+
if (disk > noOfDisks)
1143+
noOfDisks = disk;
11401144
thePixelStructure.insert(pair<uint32_t, SiPixelDigiModule*>(id, theModule));
11411145
} else if ((detId.subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap)) && (isUpgrade)) {
11421146
LogDebug("PixelDQM") << " ---> Adding Endcap Module " << detId.rawId() << endl;
11431147
uint32_t id = detId();
11441148
SiPixelDigiModule* theModule = new SiPixelDigiModule(id, ncols, nrows);
1149+
1150+
int disk = PixelEndcapName(DetId(id), pTT, isUpgrade).diskName();
1151+
if (disk > noOfDisks)
1152+
noOfDisks = disk;
11451153
thePixelStructure.insert(pair<uint32_t, SiPixelDigiModule*>(id, theModule));
11461154
} //end_elseif(isUpgrade)
11471155
}

0 commit comments

Comments
 (0)