@@ -64,6 +64,7 @@ namespace
6464constexpr int kNpart = 2 ;
6565constexpr float trackSels[12 ]{/* 60, */ 80 , 100 , 2 , 3 , /* 4, */ 0.05 , 0.1 , /* 0.15, */ 0.5 , 1 , /* 1.5, */ 2 , 3 /* , 4 */ , 2 , 3 , /* , 4 */ };
6666constexpr float dcaSels[3 ]{10 ., 10 ., 10 .};
67+ constexpr float trklSels[3 ]{1.2 , 0.6 , 0.7 };
6768constexpr double betheBlochDefault[kNpart ][6 ]{{-1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 }, {-1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 }};
6869constexpr double betheBlochDefaultITS[6 ]{-1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 , -1 .e32 };
6970constexpr double estimatorsCorrelationCoef[2 ]{-0.669108 , 1.04489 };
@@ -76,6 +77,7 @@ static const std::vector<std::string> particleNamesPar{"p", "d"};
7677static const std::vector<std::string> trackSelsNames{" tpcClsMid" , " tpcClsTight" , " chi2TpcTight" , " chi2TpcMid" , " dcaxyTight" , " dcaxyMid" , " dcazTight" , " dcazMid" , " tpcNsigmaTight" , " tpcNsigmaMid" , " itsNsigmaTight" , " itsNsigmaMid" };
7778static const std::vector<std::string> dcaSelsNames{" dcaxy" , " dcaz" , " dca" };
7879static const std::vector<std::string> particleName{" p" };
80+ static const std::vector<std::string> trklSelsNames{" etaMaxTot" , " etaMaxInner" , " etaMinOuter" };
7981std::array<std::shared_ptr<TH3>, kNpart > tofMass;
8082void momTotXYZ (std::array<float , 3 >& momA, std::array<float , 3 > const & momB, std::array<float , 3 > const & momC)
8183{
@@ -248,7 +250,6 @@ struct EbyeMaker {
248250 Configurable<float > etaMaxV0dau{" etaMaxV0dau" , 0 .8f , " maximum eta V0 daughters" };
249251 Configurable<float > outerPIDMin{" outerPIDMin" , -4 .f , " minimum outer PID" };
250252
251- Configurable<bool > storeTracksNum{" storeTracksNum" , false , " store the number of tracks instead of tracklets" };
252253 Configurable<std::string> genName{" genname" , " " , " Genearator name: HIJING, PYTHIA8, ... Default: \"\" " };
253254
254255 Configurable<uint8_t > triggerCut{" triggerCut" , 0x0 , " trigger cut to select" };
@@ -307,6 +308,7 @@ struct EbyeMaker {
307308 Configurable<float > antidPtItsClsSizeCut{" antidPtItsClsSizeCut" , 10 .f , " pt for cluster size cut for antideuterons" };
308309
309310 Configurable<LabeledArray<float >> cfgTrackSels{" cfgTrackSels" , {trackSels, 1 , 12 , particleName, trackSelsNames}, " Track selections" };
311+ Configurable<LabeledArray<float >> cfgTrklSels{" cfgTrklSels" , {trklSels, 1 , 3 , particleName, trklSelsNames}, " Tracklet selections (eta)" };
310312
311313 std::array<float , kNpart > ptMin;
312314 std::array<float , kNpart > ptTof;
@@ -673,13 +675,12 @@ struct EbyeMaker {
673675 std::array<float , 2 > dcaInfo;
674676 uint8_t nTracklets[2 ]{0 , 0 };
675677 uint8_t nTracks{0 };
676- const float tklEtaCuts[]{1.2 , 0.6 , 0.7 };
677678 for (const auto & track : tracks) {
678679
679- if (track.trackType () == o2::aod::track::TrackTypeEnum::Run2Tracklet && std::abs (track.eta ()) < tklEtaCuts[ 0 ] ) { // tracklet
680- if (std::abs (track.eta ()) < tklEtaCuts[ 1 ] )
680+ if (track.trackType () == o2::aod::track::TrackTypeEnum::Run2Tracklet && std::abs (track.eta ()) < cfgTrklSels-> get ( " etaMaxTot " ) ) { // tracklet
681+ if (std::abs (track.eta ()) < cfgTrklSels-> get ( " etaMaxInner " ) )
681682 nTracklets[0 ]++;
682- else if (std::abs (track.eta ()) > tklEtaCuts[ 2 ] )
683+ else if (std::abs (track.eta ()) > cfgTrklSels-> get ( " etaMinOuter " ) )
683684 nTracklets[1 ]++;
684685 }
685686
@@ -1251,7 +1252,7 @@ struct EbyeMaker {
12511252 if (triggerCut != 0x0 && (trigger & triggerCut) != triggerCut) {
12521253 continue ;
12531254 }
1254- miniCollTable (static_cast <int8_t >(collision.posZ () * 10 ), trigger, storeTracksNum ? nTracksColl : nTrackletsColl, cV0M);
1255+ miniCollTable (static_cast <int8_t >(collision.posZ () * 10 ), trigger, nTrackletsColl, cV0M, nTracksColl );
12551256
12561257 for (auto & candidateTrack : candidateTracks[0 ]) { // o2-linter: disable=const-ref-in-for-loop (not a const ref)
12571258 auto tk = tracks.rawIteratorAt (candidateTrack.globalIndex );
@@ -1443,7 +1444,7 @@ struct EbyeMaker {
14431444 fillMcEvent (collision, tracks, v0TableThisCollision, cV0M, mcParticles, mcLab);
14441445 fillMcGen (mcParticles, mcLab, collision.mcCollisionId ());
14451446
1446- miniCollTable (static_cast <int8_t >(collision.posZ () * 10 ), 0x0 , storeTracksNum ? nTracksColl : nTrackletsColl, cV0M);
1447+ miniCollTable (static_cast <int8_t >(collision.posZ () * 10 ), 0x0 , nTrackletsColl, cV0M, nTracksColl );
14471448
14481449 for (auto & candidateTrack : candidateTracks[0 ]) { // o2-linter: disable=const-ref-in-for-loop (not a const ref)
14491450 int selMask = -1 ;
0 commit comments