Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Mar 15, 2023
1 parent 0dd7712 commit dacaa37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Calibration/HcalCalibAlgos/macros/CalibCorr.C
Expand Up @@ -1132,6 +1132,9 @@ double CalibDuplicate::getWeight(unsigned int detId) {
int subdet, ieta, zside, depth, iphi;
unpackDetId(detId, subdet, zside, ieta, iphi, depth);
std::map<int, std::vector<double> >::const_iterator itr = weights_.find(ieta);
--depth;
if (depth < 0)
std::cout << "Strange Depth value " << depth << " in " << std::hex << detId << std::dec << std::endl;
if (itr != weights_.end()) {
if (depth < static_cast<int>(itr->second.size()))
wt = itr->second[depth];
Expand Down
4 changes: 2 additions & 2 deletions Calibration/HcalCalibAlgos/macros/CalibSort.C
Expand Up @@ -2405,8 +2405,8 @@ void combineML(const char *inputFileList, const char *outfile) {
if (den > 0) {
fout << std::setw(4) << ieta << " " << l0v.size();
for (unsigned int k = 0; k < l0v.size(); ++k) {
double ml = l0v[k].ml_ / den;
double dml = l0v[k].dml_ / den;
double ml = den / l0v[k].ml_;
double dml = l0v[k].dml_ * den / (l0v[k].ml_ * l0v[k].ml_);
fout << " " << l0v[k].depth_ << " " << std::setw(6) << ml << " " << std::setw(6) << dml;
}
fout << std::endl;
Expand Down

0 comments on commit dacaa37

Please sign in to comment.