Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 25, 2021
1 parent 8f15e63 commit 36c7e6b
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 352 deletions.
4 changes: 2 additions & 2 deletions Calibration/HcalCalibAlgos/macros/CalibCorr.C
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ double puFactor(int type, int ieta, double pmom, double eHcal, double ediff, boo
<< LINEAR_COR_COEF[icor] << ":" << SQUARE_COR_COEF[icor] << " Fac " << fac;
} else if (type == 97) { // dlphin Try 3
const double CONST_COR_COEF[6] = {0.987617, 0.983421, 0.938622, 0.806662, 0.738354, 0.574195};
const double LINEAR_COR_COEF[6] = {-0.07018610, -0.2494880, -0.1997290, -0.1769320,-0.2427950,-0.1230480};
const double LINEAR_COR_COEF[6] = {-0.07018610, -0.2494880, -0.1997290, -0.1769320, -0.2427950, -0.1230480};
const double SQUARE_COR_COEF[6] = {0, 0, 0.0263541, 0.0257008, 0.0426584, 0.0200361};
const int PU_IETA_1 = 7;
const int PU_IETA_2 = 16;
Expand All @@ -232,7 +232,7 @@ double puFactor(int type, int ieta, double pmom, double eHcal, double ediff, boo
<< LINEAR_COR_COEF[icor] << ":" << SQUARE_COR_COEF[icor] << " Fac " << fac;
} else if (type == 98) { // dlphin Try 2
const double CONST_COR_COEF[6] = {0.987665, 0.983468, 0.938628, 0.807241, 0.739132, 0.529059};
const double LINEAR_COR_COEF[6] = {-0.0708906, -0.249995, -0.199683, -0.177692,-0.243436,-0.0668783};
const double LINEAR_COR_COEF[6] = {-0.0708906, -0.249995, -0.199683, -0.177692, -0.243436, -0.0668783};
const double SQUARE_COR_COEF[6] = {0, 0, 0.0263163, 0.0260158, 0.0426864, 0.00398778};
const int PU_IETA_1 = 7;
const int PU_IETA_2 = 16;
Expand Down
2 changes: 1 addition & 1 deletion Calibration/HcalCalibAlgos/macros/CalibFitPlots.C
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void FitHistExtended(const char* infile,
fitLanGau(hist3, debug);
hists.push_back(hist3);
}
// results meaner0 = fitTwoGauss(hist, debug);
// results meaner0 = fitTwoGauss(hist, debug);
results meaner0 = fitOneGauss(hist, true, debug);
value = meaner0.mean;
error = meaner0.errmean;
Expand Down
10 changes: 5 additions & 5 deletions Calibration/HcalCalibAlgos/macros/CalibMonitor.C
Original file line number Diff line number Diff line change
Expand Up @@ -1640,11 +1640,11 @@ void GetEntries::Init(TTree *tree, const char *dupFileName) {
std::cout << "Cannot open " << dupFileName << std::endl;
} else {
while (1) {
Long64_t jentry;
infile >> jentry;
if (!infile.good())
break;
entries_.push_back(jentry);
Long64_t jentry;
infile >> jentry;
if (!infile.good())
break;
entries_.push_back(jentry);
}
infile.close();
std::cout << "Reads a list of " << entries_.size() << " events from " << dupFileName << std::endl;
Expand Down
10 changes: 5 additions & 5 deletions Calibration/HcalCalibAlgos/macros/CalibPlotProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@ void CalibPlotProperties::Init(TChain *tree, const char *dupFileName) {
std::cout << "Cannot open duplicate file " << dupFileName << std::endl;
} else {
while (1) {
Long64_t jentry;
infil1 >> jentry;
if (!infil1.good())
break;
entries_.push_back(jentry);
Long64_t jentry;
infil1 >> jentry;
if (!infil1.good())
break;
entries_.push_back(jentry);
}
infil1.close();
std::cout << "Reads a list of " << entries_.size() << " events from " << dupFileName << std::endl;
Expand Down
Loading

0 comments on commit 36c7e6b

Please sign in to comment.