Skip to content

Commit ebd23a5

Browse files
committed
fixing for BC
1 parent 7dbf61f commit ebd23a5

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

PWGCF/Flow/Tasks/flowDirectedFlowTask.cxx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
#include <TProfile2D.h>
5252
#include <TRandom3.h>
5353

54-
#include <algorithm>
5554
#include <chrono>
5655
#include <cmath>
5756
#include <cstdint>
5857
#include <cstdlib>
5958
#include <string>
6059
#include <utility>
6160
#include <vector>
61+
#include <algorithm>
6262

6363
using namespace o2;
6464
using namespace o2::framework;
@@ -146,7 +146,6 @@ struct flowDirectedFlowTask {
146146
using EventCandidates = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs, aod::SPCalibrationTables, aod::Mults>>;
147147
using AllTrackCandidates = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullPi, aod::pidTPCFullPr, aod::pidTPCFullKa>>;
148148
using ResoV0s = aod::V0Datas;
149-
using BCsRun3 = soa::Join<aod::BCsWithTimestamps, aod::Run3MatchedToBCSparse>;
150149

151150
void init(InitContext&)
152151
{
@@ -235,7 +234,7 @@ struct flowDirectedFlowTask {
235234

236235
template <typename TCollision>
237236
bool eventSelected(TCollision collision)
238-
{
237+
{
239238
if (!collision.sel8()) {
240239
return 0;
241240
}
@@ -244,7 +243,7 @@ struct flowDirectedFlowTask {
244243
}
245244
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
246245
return 0;
247-
}
246+
}
248247
if (cfgPVSel && std::abs(collision.posZ()) > cfgCutVertex) {
249248
return 0;
250249
}
@@ -418,8 +417,8 @@ struct flowDirectedFlowTask {
418417
ROOT::Math::PxPyPzMVector daughter;
419418
ROOT::Math::PxPyPzMVector pion;
420419
float mass = 0.0;
421-
422-
if (isLambda) {
420+
421+
if (isLambda) {
423422
daughter = ROOT::Math::PxPyPzMVector(v0.pxpos(), v0.pypos(), v0.pzpos(), massPr);
424423
pion = ROOT::Math::PxPyPzMVector(v0.pxneg(), v0.pyneg(), v0.pzneg(), massPi);
425424
mass = v0.mLambda();
@@ -428,7 +427,7 @@ struct flowDirectedFlowTask {
428427
pion = ROOT::Math::PxPyPzMVector(v0.pxpos(), v0.pypos(), v0.pzpos(), massPi);
429428
mass = v0.mAntiLambda();
430429
}
431-
430+
432431
const auto hyperon = daughter + pion;
433432
ROOT::Math::Boost boostToRest(hyperon.BoostToCM());
434433
const auto daughterStar = boostToRest(daughter);
@@ -502,7 +501,7 @@ struct flowDirectedFlowTask {
502501
}
503502
}
504503

505-
void processData(EventCandidates::iterator const& collision, AllTrackCandidates const& tracks, ResoV0s const& v0s, BCsRun3 const&)
504+
void processData(EventCandidates::iterator const& collision, AllTrackCandidates const& tracks, ResoV0s const& v0s, aod::BCsWithTimestamps const&)
506505
{
507506
if (!eventSelected(collision)) {
508507
return;

0 commit comments

Comments
 (0)