We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 531ea81 commit bd619d0Copy full SHA for bd619d0
1 file changed
DataFormats/Detectors/CTP/src/CTPRateFetcher.cxx
@@ -233,9 +233,7 @@ double CTPRateFetcher::pileUpCorrection(double triggerRate)
233
if (mLHCIFdata.getFillNumber() == 0) {
234
LOG(fatal) << "No filling" << std::endl;
235
}
236
- auto bfilling = mLHCIFdata.getBunchFilling();
237
- std::vector<int> bcs = bfilling.getFilledBCs();
238
- double nbc = bcs.size();
+ double nbc = mLHCIFdata.getBunchFilling().getPattern().count();
239
double nTriggersPerFilledBC = triggerRate / nbc / constants::lhc::LHCRevFreq;
240
double mu = -std::log(1 - nTriggersPerFilledBC);
241
return mu * nbc * constants::lhc::LHCRevFreq;
0 commit comments