@@ -259,6 +259,8 @@ struct nucleiSpectra {
259259 Configurable<LabeledArray<int >> cfgDCAHists{" cfgDCAHists" , {nuclei::DCAHistDefault[0 ], 5 , 2 , nuclei::names, nuclei::DCAConfigNames}, " DCA hist configuration" };
260260 Configurable<LabeledArray<int >> cfgFlowHist{" cfgFlowHist" , {nuclei::FlowHistDefault[0 ], 5 , 1 , nuclei::names, nuclei::flowConfigNames}, " Flow hist configuration" };
261261
262+ Configurable<double > cfgNsigmaTPCcutDCAhists{" cfgNsigmaTPCcutDCAhists" , 3 ., " TPC nsigma cut for DCA hists" };
263+ Configurable<double > cfgDeltaTOFmassCutDCAhists{" cfgDeltaTOFmassCutDCAhists" , 0.2 , " Delta TOF mass cut for DCA hists" };
262264 ConfigurableAxis cfgDCAxyBinsProtons{" cfgDCAxyBinsProtons" , {1500 , -1 .5f , 1 .5f }, " DCAxy binning for Protons" };
263265 ConfigurableAxis cfgDCAxyBinsDeuterons{" cfgDCAxyBinsDeuterons" , {1500 , -1 .5f , 1 .5f }, " DCAxy binning for Deuterons" };
264266 ConfigurableAxis cfgDCAxyBinsTritons{" cfgDCAxyBinsTritons" , {1500 , -1 .5f , 1 .5f }, " DCAxy binning for Tritons" };
@@ -605,26 +607,26 @@ struct nucleiSpectra {
605607 }
606608 ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<float >> fvector{mTrackParCov .getPt () * nuclei::charges[iS], mTrackParCov .getEta (), mTrackParCov .getPhi (), nuclei::masses[iS]};
607609 float y{fvector.Rapidity () + cfgCMrapidity};
608- for (int iPID{0 }; iPID < 2 ; ++iPID) {
610+ for (int iPID{0 }; iPID < 2 ; ++iPID) { // / 0 TPC, 1 TOF
609611 if (selectedTPC[iS]) {
610612 if (iPID && !track.hasTOF ()) {
611613 continue ;
612614 } else if (iPID) {
613- selectedTOF = true ;
615+ selectedTOF = true ; // / temporarly skipped
616+ float charge{1 .f + static_cast <float >(iS == 3 || iS == 4 )};
617+ tofMasses[iS] = correctedTpcInnerParam * charge * std::sqrt (1 .f / (beta * beta) - 1 .f ) - nuclei::masses[iS];
614618 }
615619 if (!cfgCutOnReconstructedRapidity || (y > cfgCutRapidityMin && y < cfgCutRapidityMax)) {
616- nuclei::hDCAxy[iPID][iS][iC]->Fill (centrality, fvector.pt (), dcaInfo[0 ]);
617- nuclei::hDCAz[iPID][iS][iC]->Fill (centrality, fvector.pt (), dcaInfo[1 ]);
620+ if (std::abs (nSigmaTPC[iS]) < cfgNsigmaTPCcutDCAhists && (!iPID || std::abs (tofMasses[iS]) < cfgDeltaTOFmassCutDCAhists)) {
621+ nuclei::hDCAxy[iPID][iS][iC]->Fill (centrality, fvector.pt (), dcaInfo[0 ]);
622+ nuclei::hDCAz[iPID][iS][iC]->Fill (centrality, fvector.pt (), dcaInfo[1 ]);
623+ }
618624 if (std::abs (dcaInfo[0 ]) < cfgDCAcut->get (iS, 0u )) {
619625 if (!iPID) { // / temporary exclusion of the TOF nsigma PID for the He3 and Alpha
620626 nuclei::hNsigma[iPID][iS][iC]->Fill (centrality, fvector.pt (), nSigma[iPID][iS]);
621627 nuclei::hNsigmaEta[iPID][iS][iC]->Fill (fvector.eta (), fvector.pt (), nSigma[iPID][iS]);
622628 }
623629 if (iPID) {
624- float charge{1 };
625- if (iS == 3 || iS == 4 )
626- charge = 2 ;
627- tofMasses[iS] = correctedTpcInnerParam * charge * std::sqrt (1 .f / (beta * beta) - 1 .f ) - nuclei::masses[iS];
628630 nuclei::hTOFmass[iS][iC]->Fill (centrality, fvector.pt (), tofMasses[iS]);
629631 nuclei::hTOFmassEta[iS][iC]->Fill (fvector.eta (), fvector.pt (), tofMasses[iS]);
630632 }
0 commit comments