Skip to content

Commit 96475a2

Browse files
authored
[Common] fix bc_as bug (#11848)
1 parent f28eb61 commit 96475a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Common/Tools/EventSelectionTools.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ class EventSelectionModule
731731
return; // dummy process
732732
}
733733
for (const auto& col : collisions) {
734-
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Run2BCInfos, aod::Timestamps, aod::Run2MatchedToBCSparse>>();
734+
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Run2BCInfos, aod::Run2MatchedToBCSparse>>();
735735
uint64_t timestamp = timestamps[bc.globalIndex()];
736736
EventSelectionParams* par = ccdb->template getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", timestamp);
737737
bool* applySelection = par->getSelection(evselOpts.muonSelection);
@@ -837,7 +837,7 @@ class EventSelectionModule
837837
if (mapGlobalBcWithTVX.size() == 0) {
838838
LOGP(error, "FT0 table is empty or corrupted. Filling evsel table with dummy values");
839839
for (const auto& col : cols) {
840-
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Timestamps, aod::Run3MatchedToBCSparse>>();
840+
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Run3MatchedToBCSparse>>();
841841
int32_t foundBC = bc.globalIndex();
842842
int32_t foundFT0 = bcselbuffer[bc.globalIndex()].foundFT0Id;
843843
int32_t foundFV0 = bcselbuffer[bc.globalIndex()].foundFV0Id;
@@ -877,7 +877,7 @@ class EventSelectionModule
877877
// first loop to match collisions to TVX, also extract other per-collision information for further use
878878
for (const auto& col : cols) {
879879
int32_t colIndex = col.globalIndex();
880-
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Timestamps, aod::Run3MatchedToBCSparse>>();
880+
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Run3MatchedToBCSparse>>();
881881

882882
vCollVz[colIndex] = col.posZ();
883883

@@ -977,7 +977,7 @@ class EventSelectionModule
977977
if (vIsVertexTPC[colIndex] > 0 && vIsVertexTOF[colIndex] == 0 && vIsVertexHighPtTPC[colIndex] == 0) {
978978
float weightedTime = vWeightedTimesTPCnoTOFnoTRD[colIndex];
979979
float weightedSigma = vWeightedSigmaTPCnoTOFnoTRD[colIndex];
980-
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Timestamps, aod::Run3MatchedToBCSparse>>();
980+
auto bc = col.template bc_as<soa::Join<aod::BCs, aod::Run3MatchedToBCSparse>>();
981981
int64_t globalBC = bc.globalBC();
982982
int64_t meanBC = globalBC + TMath::Nint(weightedTime / bcNS);
983983
int64_t sigmaBC = TMath::CeilNint(weightedSigma / bcNS);

0 commit comments

Comments
 (0)