Skip to content

Commit a38ddae

Browse files
author
Sunanda
committed
Code check
1 parent 63298c3 commit a38ddae

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

Calibration/HcalCalibAlgos/macros/CalibFitPlots.C

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ void PlotHistCorrFactors(char* infile1,
26992699
bool isRealData = false,
27002700
const char* year = "2024",
27012701
int iformat = 0,
2702-
int range = 1,
2702+
int range = 1,
27032703
int save = 0) {
27042704
std::map<int, cfactors> cfacs[5];
27052705
std::vector<std::string> texts;
@@ -2748,12 +2748,15 @@ void PlotHistCorrFactors(char* infile1,
27482748
gStyle->SetFillColor(kWhite);
27492749
gStyle->SetOptTitle(0);
27502750
double ylow, yhigh;
2751-
if (range == 0) {
2752-
ylow = 0.8; yhigh = 1.2;
2751+
if (range == 0) {
2752+
ylow = 0.8;
2753+
yhigh = 1.2;
27532754
} else if (range == 1) {
2754-
ylow = 0.5; yhigh = 1.5;
2755+
ylow = 0.5;
2756+
yhigh = 1.5;
27552757
} else {
2756-
ylow = 0.0; yhigh = 2.0;
2758+
ylow = 0.0;
2759+
yhigh = 2.0;
27572760
}
27582761
if ((!ratio) && drawStatBox) {
27592762
gStyle->SetOptStat(10);
@@ -2963,7 +2966,7 @@ void PlotHistCorr2Factors(char* infile1,
29632966
bool isRealData = true,
29642967
const char* year = "2024",
29652968
int iformat = 0,
2966-
int range = 1,
2969+
int range = 1,
29672970
int save = 0) {
29682971
std::map<int, cfactors> cfacs[5];
29692972
std::vector<std::string> texts;
@@ -2991,12 +2994,15 @@ void PlotHistCorr2Factors(char* infile1,
29912994
gStyle->SetFillColor(kWhite);
29922995
gStyle->SetOptTitle(0);
29932996
double ylow, yhigh;
2994-
if (range == 0) {
2995-
ylow = 0.8; yhigh = 1.2;
2997+
if (range == 0) {
2998+
ylow = 0.8;
2999+
yhigh = 1.2;
29963000
} else if (range == 1) {
2997-
ylow = 0.5; yhigh = 1.5;
3001+
ylow = 0.5;
3002+
yhigh = 1.5;
29983003
} else {
2999-
ylow = 0.0; yhigh = 2.0;
3004+
ylow = 0.0;
3005+
yhigh = 2.0;
30003006
}
30013007
if ((!ratio) && drawStatBox) {
30023008
gStyle->SetOptStat(10);
@@ -3194,7 +3200,7 @@ void PlotHistCorrDFactors(char* infile1,
31943200
bool isRealData = true,
31953201
const char* year = "2024",
31963202
int iformat = 0,
3197-
int range = 0,
3203+
int range = 0,
31983204
int save = 0) {
31993205
std::map<int, cfactors> cfacs[5];
32003206
std::vector<std::string> texts;
@@ -3243,12 +3249,15 @@ void PlotHistCorrDFactors(char* infile1,
32433249
gStyle->SetFillColor(kWhite);
32443250
gStyle->SetOptTitle(0);
32453251
double ylow, yhigh;
3246-
if (range == 0) {
3247-
ylow = 0.8; yhigh = 1.2;
3252+
if (range == 0) {
3253+
ylow = 0.8;
3254+
yhigh = 1.2;
32483255
} else if (range == 1) {
3249-
ylow = 0.5; yhigh = 1.5;
3256+
ylow = 0.5;
3257+
yhigh = 1.5;
32503258
} else {
3251-
ylow = 0.0; yhigh = 2.0;
3259+
ylow = 0.0;
3260+
yhigh = 2.0;
32523261
}
32533262
if ((!ratio) && drawStatBox) {
32543263
gStyle->SetOptStat(10);

0 commit comments

Comments
 (0)