Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions DataFormats/Detectors/CTP/src/CTPRateFetcher.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ double CTPRateFetcher::pileUpCorrection(double triggerRate)
if (mLHCIFdata.getFillNumber() == 0) {
LOG(fatal) << "No filling" << std::endl;
}
auto bfilling = mLHCIFdata.getBunchFilling();
std::vector<int> bcs = bfilling.getFilledBCs();
double nbc = bcs.size();
double nbc = mLHCIFdata.getBunchFilling().getPattern().count();
double nTriggersPerFilledBC = triggerRate / nbc / constants::lhc::LHCRevFreq;
double mu = -std::log(1 - nTriggersPerFilledBC);
return mu * nbc * constants::lhc::LHCRevFreq;
Expand Down
Loading