Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Dec 21, 2024
1 parent 7efa3b0 commit 8df2f6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Calibration/HcalCalibAlgos/macros/CalibCorr.C
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,8 @@ bool CalibSelectRBX::isItRBX(const int ieta, const int iphi) {
return ok;
}

CalibDuplicate::CalibDuplicate(const char* fname, int flag, bool debug) : flag_(flag), nocc_(0), debug_(debug), ok_(false) {
CalibDuplicate::CalibDuplicate(const char* fname, int flag, bool debug)
: flag_(flag), nocc_(0), debug_(debug), ok_(false) {
std::cout << "CalibDuplicate called with Flag " << flag_ << " i/p file " << fname << std::endl;
if (flag_ == 0) {
if (strcmp(fname, "") != 0) {
Expand Down Expand Up @@ -1459,7 +1460,8 @@ double CalibDuplicate::getCorr(int run, int ieta, int depth) {
corr = (itr->second)[irun];
}
if (debug_ && (nocc_ < 1000))
std::cout << "Run " << run << " ieta:depth " << ieta << ":" << depth << " found " << (itr == corrs_.end()) << " Corr " << corr << std::endl;
std::cout << "Run " << run << " ieta:depth " << ieta << ":" << depth << " found " << (itr == corrs_.end())
<< " Corr " << corr << std::endl;
return corr;
}

Expand Down
4 changes: 2 additions & 2 deletions Calibration/HcalCalibAlgos/plugins/HcalIsoTrkAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ std::array<int, 3> HcalIsoTrkAnalyzer::fillTree(std::vector<math::XYZTLorentzVec
accept = false;
}
if (accept) {
++count_;
++count_;
tree->Fill();
edm::LogVerbatim("HcalIsoTrackX")
<< "Run " << t_RunNo << " Event " << t_EventNo << " Track " << nTracks << " p " << t_p;
Expand Down Expand Up @@ -1443,7 +1443,7 @@ void HcalIsoTrkAnalyzer::storeEnergy(int indx,
for (unsigned int k = 0; k < ids.size(); ++k) {
double corr = (respCorrs_->getValues(ids[k]))->getValue();
if (count_ <= 1)
edm::LogVerbatim("HcalIsoTrack") << "Correction Factor for " << HcalDetId(ids[k]) << " " << corr;
edm::LogVerbatim("HcalIsoTrack") << "Correction Factor for " << HcalDetId(ids[k]) << " " << corr;
if (corr != 0)
edet[k] /= corr;
ehcal += edet[k];
Expand Down

0 comments on commit 8df2f6a

Please sign in to comment.