@@ -150,9 +150,9 @@ struct threebodyRecoTask {
150150 kCandRapidity ,
151151 kCandct ,
152152 kCandDcaDau ,
153- kCandTOFPID ,
154- kCandTPCPID ,
155153 kCandTPCNcls ,
154+ kCandTPCPID ,
155+ kCandTOFPID ,
156156 kCandDauPt ,
157157 kCandDcaToPV ,
158158 kCandInvMass ,
@@ -281,40 +281,44 @@ struct threebodyRecoTask {
281281 return ;
282282 }
283283 FillCandCounter (kCandCosPA , isTrueCand);
284+
284285 if (std::abs (trackProton.eta ()) > etacut || std::abs (trackPion.eta ()) > etacut || std::abs (trackDeuteron.eta ()) > etacut) {
285286 return ;
286287 }
287288 FillCandCounter (kCandDauEta , isTrueCand);
289+
288290 if (std::abs (candData.yHypertriton ()) > rapiditycut) {
289291 return ;
290292 }
291293 FillCandCounter (kCandRapidity , isTrueCand);
294+
292295 double ct = candData.distovertotmom (dCollision.posX (), dCollision.posY (), dCollision.posZ ()) * o2::constants::physics::MassHyperTriton;
293296 if (ct > lifetimecut) {
294297 return ;
295298 }
296299 FillCandCounter (kCandct , isTrueCand);
300+
297301 if (candData.dcaVtxdaughters () > dcavtxdau) {
298302 return ;
299303 }
300304 FillCandCounter (kCandDcaDau , isTrueCand);
301305
302- registry.fill (HIST (" hDeuteronTOFVsPBeforeTOFCut" ), trackDeuteron.sign () * trackDeuteron.p (), candData.tofNSigmaBachDe ());
303- if ((candData.tofNSigmaBachDe () < TofPidNsigmaMin || candData.tofNSigmaBachDe () > TofPidNsigmaMax) && trackDeuteron.p () > minDeuteronPUseTOF) {
306+ if (trackProton.tpcNClsFound () < mintpcNClsproton || trackPion.tpcNClsFound () < mintpcNClspion || trackDeuteron.tpcNClsFound () < mintpcNClsdeuteron) {
304307 return ;
305308 }
306- FillCandCounter (kCandTOFPID , isTrueCand);
307- registry.fill (HIST (" hDeuteronTOFVsPAtferTOFCut" ), trackDeuteron.sign () * trackDeuteron.p (), candData.tofNSigmaBachDe ());
309+ FillCandCounter (kCandTPCNcls , isTrueCand);
308310
309311 if (std::abs (trackProton.tpcNSigmaPr ()) > TpcPidNsigmaCut || std::abs (trackPion.tpcNSigmaPi ()) > TpcPidNsigmaCut || std::abs (trackDeuteron.tpcNSigmaDe ()) > TpcPidNsigmaCut) {
310312 return ;
311313 }
312314 FillCandCounter (kCandTPCPID , isTrueCand);
313315
314- if (trackProton.tpcNClsFound () < mintpcNClsproton || trackPion.tpcNClsFound () < mintpcNClspion || trackDeuteron.tpcNClsFound () < mintpcNClsdeuteron) {
316+ registry.fill (HIST (" hDeuteronTOFVsPBeforeTOFCut" ), trackDeuteron.sign () * trackDeuteron.p (), candData.tofNSigmaBachDe ());
317+ if ((candData.tofNSigmaBachDe () < TofPidNsigmaMin || candData.tofNSigmaBachDe () > TofPidNsigmaMax) && trackDeuteron.p () > minDeuteronPUseTOF) {
315318 return ;
316319 }
317- FillCandCounter (kCandTPCNcls , isTrueCand);
320+ FillCandCounter (kCandTOFPID , isTrueCand);
321+ registry.fill (HIST (" hDeuteronTOFVsPAtferTOFCut" ), trackDeuteron.sign () * trackDeuteron.p (), candData.tofNSigmaBachDe ());
318322
319323 if (trackProton.pt () < minProtonPt || trackProton.pt () > maxProtonPt || trackPion.pt () < minPionPt || trackPion.pt () > maxPionPt || trackDeuteron.pt () < minDeuteronPt || trackDeuteron.pt () > maxDeuteronPt) {
320324 return ;
0 commit comments