Skip to content

Commit b5b047b

Browse files
author
Sunanda
committed
Code check
1 parent 987080a commit b5b047b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Calibration/HcalCalibAlgos/macros/CalibCorr.C

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,15 +1394,15 @@ void CalibCorrScale2(const char* infile, const char* outfile, double scaleB, dou
13941394
++good;
13951395
int ieta = std::atoi(items[1].c_str());
13961396
int depth = std::atoi(items[2].c_str());
1397-
int jp(-1);
1398-
for (int j = 0; j < 3; ++j) {
1399-
if (std::abs(ieta) > ietasL[j] && std::abs(ieta) <= ietasH[j]) {
1400-
if (jp < 0)
1401-
jp = j;
1402-
}
1403-
}
1404-
if (jp < 0)
1405-
jp = 2;
1397+
int jp(-1);
1398+
for (int j = 0; j < 3; ++j) {
1399+
if (std::abs(ieta) > ietasL[j] && std::abs(ieta) <= ietasH[j]) {
1400+
if (jp < 0)
1401+
jp = j;
1402+
}
1403+
}
1404+
if (jp < 0)
1405+
jp = 2;
14061406
float corrf = scale[jp] * std::atof(items[3].c_str());
14071407
float dcorr = scale[jp] * std::atof(items[4].c_str());
14081408
myfile << std::setw(10) << items[0] << std::setw(10) << std::dec << ieta << std::setw(10) << depth

Calibration/HcalCalibAlgos/macros/CalibPlotProperties.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// with values > 1 as depth 2 (3), all depths in
7676
// HB with values > 1 as depth 2 (4), all depths
7777
// in HB and HE with values > 1 as depth 2 (5),
78-
// for depth = 1 and 2, depth = 1, else depth
78+
// for depth = 1 and 2, depth = 1, else depth
7979
// = 2. (Default 0)
8080
// useGen (bool) = true/false to use generator level momentum
8181
// or reconstruction level momentum (def false)

0 commit comments

Comments
 (0)