@@ -91,6 +91,7 @@ struct Phik0shortanalysis {
9191 Configurable<bool > cfgPVContributor{" cfgPVContributor" , true , " PV contributor track selection" };
9292 Configurable<float > cMinKaonPtcut{" cMinKaonPtcut" , 0 .15f , " Track minimum pt cut" };
9393 Configurable<float > etaMax{" etaMax" , 0 .8f , " eta max" };
94+ Configurable<float > pTToUseTOF{" pTToUseTOF" , 0 .5f , " pT above which use TOF" };
9495 Configurable<float > cMaxDCAzToPVcut{" cMaxDCAzToPVcut" , 2 .0f , " Track DCAz cut to PV Maximum" };
9596 Configurable<float > cMaxDCArToPV1Phi{" cMaxDCArToPV1Phi" , 0 .004f , " Track DCAr cut to PV config 1 for Phi" };
9697 Configurable<float > cMaxDCArToPV2Phi{" cMaxDCArToPV2Phi" , 0 .013f , " Track DCAr cut to PV config 2 for Phi" };
@@ -703,9 +704,9 @@ struct Phik0shortanalysis {
703704 template <typename T>
704705 bool selectionPIDKaonpTdependent (const T& track)
705706 {
706- if (track.pt () < 0.5 && std::abs (track.tpcNSigmaKa ()) < trackConfigs.nSigmaCutTPCKa )
707+ if (track.pt () < trackConfigs. pTToUseTOF && std::abs (track.tpcNSigmaKa ()) < trackConfigs.nSigmaCutTPCKa )
707708 return true ;
708- if (track.pt () >= 0.5 && track.hasTOF () && (std::pow (track.tofNSigmaKa (), 2 ) + std::pow (track.tpcNSigmaKa (), 2 )) < std::pow (trackConfigs.nSigmaCutCombinedKa , 2 ))
709+ if (track.pt () >= trackConfigs. pTToUseTOF && track.hasTOF () && (std::pow (track.tofNSigmaKa (), 2 ) + std::pow (track.tpcNSigmaKa (), 2 )) < std::pow (trackConfigs.nSigmaCutCombinedKa , 2 ))
709710 return true ;
710711 return false ;
711712 }
@@ -747,7 +748,7 @@ struct Phik0shortanalysis {
747748 return false ;
748749
749750 if constexpr (isTOFChecked) {
750- if (track.pt () >= 0.5 && !track.hasTOF ())
751+ if (track.pt () >= trackConfigs. pTToUseTOF && !track.hasTOF ())
751752 return false ;
752753 }
753754
@@ -1569,7 +1570,7 @@ struct Phik0shortanalysis {
15691570 mcPhiPionHist.fill (HIST (" h4PhiPiTPCMCReco" ), i, genmultiplicity, mcTrack.pt (), track.tpcNSigmaPi ());
15701571 }
15711572
1572- if (track.pt () >= 0.5 && !track.hasTOF ())
1573+ if (track.pt () >= trackConfigs. pTToUseTOF && !track.hasTOF ())
15731574 continue ;
15741575
15751576 mcPionHist.fill (HIST (" h4PiTPCTOFMCReco" ), genmultiplicity, mcTrack.pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
@@ -2280,12 +2281,12 @@ struct Phik0shortanalysis {
22802281 PROCESS_SWITCH (Phik0shortanalysis, processdNdetaWPhiData, " Process function for dN/deta values in Data" , false );
22812282
22822283 void processdNdetaWPhiMCReco (SimCollisions const & collisions, soa::Filtered<FullMCTracks> const & fullMCTracks, MCCollisions const &, aod::McParticles const & mcParticles)
2283- {
2284+ {
22842285 for (const auto & collision : collisions) {
22852286 if (!acceptEventQA<true >(collision, true ))
22862287 continue ;
22872288 if (!collision.has_mcCollision ())
2288- continue ;
2289+ continue ;
22892290 const auto & mcCollision = collision.mcCollision_as <MCCollisions>();
22902291
22912292 auto mcParticlesThisColl = mcParticles.sliceByCached (aod::mcparticle::mcCollisionId, mcCollision.globalIndex (), cache);
@@ -2313,7 +2314,7 @@ struct Phik0shortanalysis {
23132314 PROCESS_SWITCH (Phik0shortanalysis, processdNdetaWPhiMCReco, " Process function for dN/deta values in MCReco" , false );
23142315
23152316 void processdNdetaWPhiMCGen (MCCollisions::iterator const & mcCollision, soa::SmallGroups<SimCollisions> const & collisions, aod::McParticles const & mcParticles)
2316- {
2317+ {
23172318 if (std::abs (mcCollision.posZ ()) > cutZVertex)
23182319 return ;
23192320 if (!pwglf::isINELgtNmc (mcParticles, 0 , pdgDB))
@@ -2330,7 +2331,7 @@ struct Phik0shortanalysis {
23302331 }
23312332
23322333 float genmultiplicity = mcCollision.centFT0M ();
2333-
2334+
23342335 for (const auto & mcParticle : mcParticles) {
23352336 if (!mcParticle.isPhysicalPrimary () || std::abs (mcParticle.eta ()) > trackConfigs.etaMax || std::abs (mcParticle.signed1Pt ()) == trackConfigs.cfgCutCharge )
23362337 continue ;
0 commit comments