Skip to content

Commit 129d19c

Browse files
committed
Fix BC type in bc_as<> in B data creators
1 parent 7de84fe commit 129d19c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ struct HfDataCreatorCharmHadPiReduced {
965965
// Set the magnetic field from ccdb.
966966
// The static instance of the propagator was already modified in the HFTrackIndexSkimCreator,
967967
// but this is not true when running on Run2 data/MC already converted into AO2Ds.
968-
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
968+
auto bc = collision.template bc_as<BBCs>();
969969
if (runNumber != bc.runNumber()) {
970970
LOG(info) << ">>>>>>>>>>>> Current run number: " << runNumber;
971971
o2::parameters::GRPMagField* grpo = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(configs.ccdbPathGrpMag, bc.timestamp());

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ struct HfDataCreatorJpsiHadReduced {
665665
// Set the magnetic field from ccdb.
666666
// The static instance of the propagator was already modified in the HFTrackIndexSkimCreator,
667667
// but this is not true when running on Run2 data/MC already converted into AO2Ds.
668-
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
668+
auto bc = collision.template bc_as<BBCs>();
669669
if (runNumber != bc.runNumber()) {
670670
LOG(info) << ">>>>>>>>>>>> Current run number: " << runNumber;
671671
o2::parameters::GRPMagField* grpo = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(ccdbPathGrpMag, bc.timestamp());

0 commit comments

Comments
 (0)