Skip to content
Merged
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
8 changes: 4 additions & 4 deletions PWGUD/TableProducer/UPCCandidateProducer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ struct UpcCandProducer {
const auto& bcIds = ambTrk.bcIds();
if (bcIds.size() == 0)
continue;

const auto firstBcId = static_cast<int64_t>(*bcIds.begin());
if (firstBcId < 0 || firstBcId >= static_cast<int64_t>(bcs.size())) {
LOGP(debug,
Expand Down Expand Up @@ -713,7 +713,7 @@ struct UpcCandProducer {
trackBC = ambIter->second;
hasTrackBC = true;
}
if (!hasTrackBC)
if (!hasTrackBC)
continue;
int64_t tint = TMath::FloorNint(trk.trackTime() / o2::constants::lhc::LHCBunchSpacingNS + static_cast<float>(fMuonTrackTShift));
uint64_t bc = trackBC + tint;
Expand Down Expand Up @@ -758,7 +758,7 @@ struct UpcCandProducer {
} else {
trackBC = ambIter->second;
}
if (!hasTrackBC)
if (!hasTrackBC)
continue;
int64_t tint = TMath::FloorNint(trk.trackTime() / o2::constants::lhc::LHCBunchSpacingNS + static_cast<float>(fMuonTrackTShift));
uint64_t bc = trackBC + tint;
Expand Down Expand Up @@ -1584,7 +1584,7 @@ struct UpcCandProducer {

// trackID -> index in amb. track table
std::unordered_map<int64_t, uint64_t> ambFwdTrBCs;
collectAmbTrackBCs<1, BCsWithBcSels>(ambFwdTrBCs, bcs,ambFwdTracks);
collectAmbTrackBCs<1, BCsWithBcSels>(ambFwdTrBCs, bcs, ambFwdTracks);

collectForwardTracks(bcsMatchedTrIdsMID,
o2::aod::fwdtrack::ForwardTrackTypeEnum::MuonStandaloneTrack,
Expand Down
Loading