Skip to content

Commit ca1d845

Browse files
author
Sunanda
committed
Code check
1 parent c2c7bc4 commit ca1d845

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

Calibration/HcalCalibAlgos/macros/CalibFitPlots.C

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,7 @@ void PlotHistCorrFactor(char* infile,
22412241
sprintf(name, "hdf%d", j + 1);
22422242
TObject* ob = gROOT->FindObject(name);
22432243
if (ob)
2244-
ob->Delete();
2244+
ob->Delete();
22452245
TF1* func = new TF1(name, "pol0", etamin, etamax);
22462246
h->Fit(func, "+QWLR", "");
22472247
}
@@ -2641,9 +2641,9 @@ void PlotHistCorrFactors(char* infile1,
26412641
for (int ih = 1; ih < nfile; ++ih) {
26422642
for (int j = 0; j < maxdepth; ++j) {
26432643
sprintf(name, "h%dd%d", ih, j + 1);
2644-
TObject* ob = gROOT->FindObject(name);
2645-
if (ob)
2646-
ob->Delete();
2644+
TObject* ob = gROOT->FindObject(name);
2645+
if (ob)
2646+
ob->Delete();
26472647
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
26482648
double sumNum(0), sumDen(0);
26492649
std::map<int, cfactors>::const_iterator ktr = cfacs[ih].begin();
@@ -2693,9 +2693,9 @@ void PlotHistCorrFactors(char* infile1,
26932693
for (int k1 = 0; k1 < nfile; ++k1) {
26942694
for (int j = 0; j < maxdepth; ++j) {
26952695
sprintf(name, "h%dd%d", k1, j + 1);
2696-
TObject* ob = gROOT->FindObject(name);
2697-
if (ob)
2698-
ob->Delete();
2696+
TObject* ob = gROOT->FindObject(name);
2697+
if (ob)
2698+
ob->Delete();
26992699
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
27002700
int nent(0);
27012701
for (std::map<int, cfactors>::const_iterator itr = cfacs[k1].begin(); itr != cfacs[k1].end(); ++itr) {
@@ -2715,9 +2715,9 @@ void PlotHistCorrFactors(char* infile1,
27152715
if (drawStatBox)
27162716
dy += 0.025;
27172717
sprintf(name, "h%ddf%d", k1, j + 1);
2718-
TObject* ob = gROOT->FindObject(name);
2719-
if (ob)
2720-
ob->Delete();
2718+
TObject* ob = gROOT->FindObject(name);
2719+
if (ob)
2720+
ob->Delete();
27212721
TF1* func = new TF1(name, "pol0", etamin, etamax);
27222722
h->Fit(func, "+QWLR", "");
27232723
}
@@ -2869,9 +2869,9 @@ void PlotHistCorr2Factors(char* infile1,
28692869
if (ratio) {
28702870
for (int ih = 1; ih < nfile; ++ih) {
28712871
sprintf(name, "h%dd%d", ih, depth);
2872-
TObject* ob = gROOT->FindObject(name);
2873-
if (ob)
2874-
ob->Delete();
2872+
TObject* ob = gROOT->FindObject(name);
2873+
if (ob)
2874+
ob->Delete();
28752875
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
28762876
double sumNum(0), sumDen(0);
28772877
std::map<int, cfactors>::const_iterator ktr = cfacs[ih].begin();
@@ -2911,9 +2911,9 @@ void PlotHistCorr2Factors(char* infile1,
29112911
} else {
29122912
for (int k1 = 0; k1 < nfile; ++k1) {
29132913
sprintf(name, "h%dd%d", k1, depth);
2914-
TObject* ob = gROOT->FindObject(name);
2915-
if (ob)
2916-
ob->Delete();
2914+
TObject* ob = gROOT->FindObject(name);
2915+
if (ob)
2916+
ob->Delete();
29172917
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
29182918
int nent(0);
29192919
for (std::map<int, cfactors>::const_iterator itr = cfacs[k1].begin(); itr != cfacs[k1].end(); ++itr) {
@@ -2933,9 +2933,9 @@ void PlotHistCorr2Factors(char* infile1,
29332933
if (drawStatBox)
29342934
dy += 0.025;
29352935
sprintf(name, "h%ddf%d", k1, depth);
2936-
TObject* ob = gROOT->FindObject(name);
2937-
if (ob)
2938-
ob->Delete();
2936+
TObject* ob = gROOT->FindObject(name);
2937+
if (ob)
2938+
ob->Delete();
29392939
TF1* func = new TF1(name, "pol0", etamin, etamax);
29402940
h->Fit(func, "+QWLR", "");
29412941
}
@@ -3079,7 +3079,7 @@ void PlotHistCorrSys(std::string infilec, int conds, std::string text, int save
30793079
sprintf(name, "hd%d", j + 1);
30803080
TObject* ob = gROOT->FindObject(name);
30813081
if (ob)
3082-
ob->Delete();
3082+
ob->Delete();
30833083
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
30843084
h->SetLineColor(colors[j]);
30853085
h->SetMarkerColor(colors[j]);
@@ -3165,9 +3165,9 @@ void PlotHistCorrLumis(std::string infilec, int conds, double lumi, int save = 0
31653165
int ih = (int)(hists.size());
31663166
for (int j = 0; j < maxdepth; ++j) {
31673167
sprintf(name, "hd%d%d", j + 1, i);
3168-
TObject* ob = gROOT->FindObject(name);
3169-
if (ob)
3170-
ob->Delete();
3168+
TObject* ob = gROOT->FindObject(name);
3169+
if (ob)
3170+
ob->Delete();
31713171
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
31723172
h->SetLineColor(colors[j]);
31733173
h->SetMarkerColor(colors[j]);
@@ -3279,9 +3279,9 @@ void PlotHistCorrRel(char* infile1,
32793279
for (int j = 0; j < maxdepth; ++j) {
32803280
int j1 = (i == 0) ? j : maxdepth + j;
32813281
sprintf(name, "hd%d%d", i, j + 1);
3282-
TObject* ob = gROOT->FindObject(name);
3283-
if (ob)
3284-
ob->Delete();
3282+
TObject* ob = gROOT->FindObject(name);
3283+
if (ob)
3284+
ob->Delete();
32853285
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
32863286
h->SetLineColor(colors[j1]);
32873287
h->SetMarkerColor(colors[j1]);
@@ -4562,7 +4562,7 @@ void PlotHistCorrRatio(char* infile1,
45624562
sprintf(name, "h%d", ih);
45634563
TObject* ob = gROOT->FindObject(name);
45644564
if (ob)
4565-
ob->Delete();
4565+
ob->Delete();
45664566
TH1D* h = new TH1D(name, name, nbin, etamin, etamax);
45674567
double sumNum(0), sumDen(0);
45684568
int npt(0);
@@ -4603,9 +4603,9 @@ void PlotHistCorrRatio(char* infile1,
46034603
h->GetYaxis()->SetTitleOffset(1.20);
46044604
h->GetYaxis()->SetRangeUser(0.0, 3.0);
46054605
if (doFit) {
4606-
TObject* ob = gROOT->FindObject(name);
4607-
if (ob)
4608-
ob->Delete();
4606+
TObject* ob = gROOT->FindObject(name);
4607+
if (ob)
4608+
ob->Delete();
46094609
TF1* func = new TF1(name, "pol0", etamin, etamax);
46104610
func->SetLineColor(colors[ih]);
46114611
func->SetLineStyle(styles[ih]);

0 commit comments

Comments
 (0)