Skip to content

Commit c0f89ac

Browse files
authored
Merge pull request #56 from alibuild/alibot-cleanup-10309
[PWGUD] Please consider the following formatting changes to AliceO2Group#10309
2 parents e154475 + 96bf7ba commit c0f89ac

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed

PWGUD/TableProducer/UPCCandidateProducer.cxx

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -697,47 +697,45 @@ struct UpcCandProducer {
697697
}
698698
}
699699

700-
701-
template <typename TBCs>
702-
void collectForwardGlobalTracks(std::vector<BCTracksPair>& bcsMatchedTrIds,
703-
int typeFilter,
704-
TBCs const& /*bcs*/,
705-
o2::aod::Collisions const& /*collisions*/,
706-
ForwardTracks const& fwdTracks,
707-
o2::aod::AmbiguousFwdTracks const& /*ambFwdTracks*/,
708-
std::unordered_map<int64_t, uint64_t>& ambFwdTrBCs)
709-
{
710-
for (const auto& trk : fwdTracks) {
711-
if (trk.trackType() != typeFilter)
712-
continue;
713-
if (!applyFwdCuts(trk))
714-
continue;
715-
int64_t trkId = trk.globalIndex();
716-
int32_t nContrib = -1;
717-
uint64_t trackBC = 0;
718-
auto ambIter = ambFwdTrBCs.find(trkId);
719-
if (ambIter == ambFwdTrBCs.end()) {
720-
const auto& col = trk.collision();
721-
nContrib = col.numContrib();
722-
trackBC = col.bc_as<TBCs>().globalBC();
723-
const auto& bc = col.bc_as<TBCs>();
724-
if (fRequireNoTimeFrameBorder && !bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
725-
continue; // skip this track if the kNoTimeFrameBorder bit is required but not set
726-
}
727-
if (fRequireNoITSROFrameBorder && !bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
728-
continue; // skip this track if the kNoITSROFrameBorder bit is required but not set
729-
}
730-
} else {
731-
trackBC = ambIter->second;
700+
template <typename TBCs>
701+
void collectForwardGlobalTracks(std::vector<BCTracksPair>& bcsMatchedTrIds,
702+
int typeFilter,
703+
TBCs const& /*bcs*/,
704+
o2::aod::Collisions const& /*collisions*/,
705+
ForwardTracks const& fwdTracks,
706+
o2::aod::AmbiguousFwdTracks const& /*ambFwdTracks*/,
707+
std::unordered_map<int64_t, uint64_t>& ambFwdTrBCs)
708+
{
709+
for (const auto& trk : fwdTracks) {
710+
if (trk.trackType() != typeFilter)
711+
continue;
712+
if (!applyFwdCuts(trk))
713+
continue;
714+
int64_t trkId = trk.globalIndex();
715+
int32_t nContrib = -1;
716+
uint64_t trackBC = 0;
717+
auto ambIter = ambFwdTrBCs.find(trkId);
718+
if (ambIter == ambFwdTrBCs.end()) {
719+
const auto& col = trk.collision();
720+
nContrib = col.numContrib();
721+
trackBC = col.bc_as<TBCs>().globalBC();
722+
const auto& bc = col.bc_as<TBCs>();
723+
if (fRequireNoTimeFrameBorder && !bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
724+
continue; // skip this track if the kNoTimeFrameBorder bit is required but not set
732725
}
733-
int64_t tint = TMath::FloorNint(trk.trackTime() / o2::constants::lhc::LHCBunchSpacingNS + static_cast<float>(fMuonTrackTShift));
734-
uint64_t bc = trackBC + tint;
735-
if (nContrib > upcCuts.getMaxNContrib())
736-
continue;
737-
addTrack(bcsMatchedTrIds, bc, trkId);
726+
if (fRequireNoITSROFrameBorder && !bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
727+
continue; // skip this track if the kNoITSROFrameBorder bit is required but not set
728+
}
729+
} else {
730+
trackBC = ambIter->second;
738731
}
732+
int64_t tint = TMath::FloorNint(trk.trackTime() / o2::constants::lhc::LHCBunchSpacingNS + static_cast<float>(fMuonTrackTShift));
733+
uint64_t bc = trackBC + tint;
734+
if (nContrib > upcCuts.getMaxNContrib())
735+
continue;
736+
addTrack(bcsMatchedTrIds, bc, trkId);
739737
}
740-
738+
}
741739

742740
int32_t searchTracks(uint64_t midbc, uint64_t range, uint32_t tracksToFind,
743741
std::vector<int64_t>& tracks,

0 commit comments

Comments
 (0)