Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed May 31, 2024
1 parent 7778e7a commit 03d86bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Calibration/HcalCalibAlgos/macros/CalibCorr.C
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ unsigned int truncateId(unsigned int detId, int truncateFlag, bool debug = false
depth = 1;
else
depth = 2;
} else if (truncate0 == 7) {
} else if (truncate0 == 7) {
//Ignore depth index for depth > 2 in HB; depthes 1, 2 considered as 1
//Ignore all depths for HE
if (subdet == 1) {
if (depth <= 2)
depth = 1;
depth = 1;
else
depth = 2;
depth = 2;
} else {
depth = 1;
}
Expand All @@ -166,17 +166,17 @@ unsigned int truncateId(unsigned int detId, int truncateFlag, bool debug = false
//Ignore all depths for HB
if (subdet == 2) {
if (depth <= 2)
depth = 1;
depth = 1;
else
depth = 2;
depth = 2;
} else {
depth = 1;
}
} else if (truncate0 == 9) {
//Ignore depth index for depth > 1 in HB and all depth index for HE
if (subdet == 1) {
if (depth > 1)
depth = 2;
depth = 2;
} else {
depth = 1;
}
Expand Down
4 changes: 2 additions & 2 deletions Calibration/HcalCalibAlgos/macros/CalibPlotProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
// index in HE (depth index set 1) (3); ignore
// depth index in HB (depth index set 1) (4); all
// all depths in HB and HE with values > 1 as
// depth 2 (5); for depth = 1 and 2, depth = 1,
// else depth = 2 (6); in case of HB, depths 1
// depth 2 (5); for depth = 1 and 2, depth = 1,
// else depth = 2 (6); in case of HB, depths 1
// and 2 are set to 1, else depth = 2; for HE
// ignore depth index (7); in case of HE, depths 1
// and 2 are set to 1, else depth =2; for HB
Expand Down

0 comments on commit 03d86bd

Please sign in to comment.