Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Aug 5, 2024
1 parent bdb163d commit 5091d02
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Calibration/HcalCalibAlgos/macros/CalibPlotProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -1814,8 +1814,8 @@ public:
const std::string &outFileName,
double pmin = 40.0,
double pmax = 60.0,
int runMin = -1,
int runMax = -1,
int runMin = -1,
int runMax = -1,
bool debug = false);
virtual ~CalibSplit();
virtual Int_t Cut(Long64_t entry);
Expand All @@ -1839,7 +1839,14 @@ private:
TTree *outputTree_;
};

CalibSplit::CalibSplit(const char *fname, const std::string &dirnm, const std::string &outFileName, double pmin, double pmax, int runMin, int runMax, bool debug)
CalibSplit::CalibSplit(const char *fname,
const std::string &dirnm,
const std::string &outFileName,
double pmin,
double pmax,
int runMin,
int runMax,
bool debug)
: fname_(fname),
dirnm_(dirnm),
outFileName_(outFileName),
Expand Down Expand Up @@ -2085,7 +2092,7 @@ void CalibSplit::Loop(Long64_t nentries) {
bool select = ((t_p >= pmin_) && (t_p < pmax_));
if (select && checkRun_) {
if ((t_Run < runMin_) || (t_Run > runMax_))
select = false;
select = false;
}
if (!select) {
++reject;
Expand Down

0 comments on commit 5091d02

Please sign in to comment.