We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 851162d commit d5c009fCopy full SHA for d5c009f
1 file changed
Common/CCDB/ctpRateFetcher.cxx
@@ -95,9 +95,7 @@ double ctpRateFetcher::pileUpCorrection(double triggerRate)
95
if (mLHCIFdata == nullptr) {
96
LOG(fatal) << "No filling" << std::endl;
97
}
98
- auto bfilling = mLHCIFdata->getBunchFilling();
99
- std::vector<int> bcs = bfilling.getFilledBCs();
100
- double nbc = bcs.size();
+ double nbc = mLHCIFdata->getBunchFilling().getPattern().count();
101
double nTriggersPerFilledBC = triggerRate / nbc / constants::lhc::LHCRevFreq;
102
double mu = -std::log(1 - nTriggersPerFilledBC);
103
return mu * nbc * constants::lhc::LHCRevFreq;
0 commit comments