Skip to content

Commit

Permalink
bug fix in Phase2TrackerMonitorDigi.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Suchandra authored and Suchandra committed Aug 27, 2016
1 parent f50f147 commit 60d413b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SimTracker/SiPhase2Digitizer/test/Phase2TrackerMonitorDigi.cc
Expand Up @@ -112,7 +112,7 @@ void Phase2TrackerMonitorDigi::fillITPixelDigiHistos(const edm::Handle<edm::DetS
int row_last = -1;
int col_last = -1;
int nclus = 0;
int width = 0;
int width = 1;
int position = 0;
for (typename edm::DetSet< PixelDigi >::const_iterator di = DSViter->begin(); di != DSViter->end(); di++) {
int col = di->column(); // column
Expand All @@ -132,7 +132,6 @@ void Phase2TrackerMonitorDigi::fillITPixelDigiHistos(const edm::Handle<edm::DetS
local_mes.PositionOfDigis->Fill(row+1, col+1);

if (row_last == -1 ) {
width = 1;
position = row+1;
nclus++;
} else {
Expand Down Expand Up @@ -174,7 +173,7 @@ void Phase2TrackerMonitorDigi::fillOTDigiHistos(const edm::Handle<edm::DetSetVec
int row_last = -1;
int col_last = -1;
int nclus = 0;
int width = 0;
int width = 1;
int position = 0;
float frac_ot = 0.;
for (typename edm::DetSet< Phase2TrackerDigi >::const_iterator di = DSViter->begin(); di != DSViter->end(); di++) {
Expand All @@ -197,7 +196,6 @@ void Phase2TrackerMonitorDigi::fillOTDigiHistos(const edm::Handle<edm::DetSetVec


if (row_last == -1 ) {
width = 1;
position = row+1;
nclus++;
} else {
Expand Down

0 comments on commit 60d413b

Please sign in to comment.