@@ -672,7 +672,7 @@ struct OnTheFlyTracker {
672672 }
673673
674674 float dNdEta = 0 .f; // Charged particle multiplicity to use in the efficiency evaluation
675- void processConfiguration (aod::McCollision const & mcCollision, aod::McParticles const & mcParticles, int const & icfg)
675+ void processWithLUTs (aod::McCollision const & mcCollision, aod::McParticles const & mcParticles, int const & icfg)
676676 {
677677 LOG (debug) << " Processing event " << mcCollision.globalIndex () << " with LUTs for configuration " << icfg;
678678 int lastTrackIndex = tableStoredTracksCov.lastIndex () + 1 ; // bookkeep the last added track
@@ -1446,6 +1446,24 @@ struct OnTheFlyTracker {
14461446 getHist (TH2, histPath + " h2dDCAz" )->Fill (trackParametrization.getPt (), dcaZ * 1e+4 );
14471447 histos.fill (HIST (" hTrackXatDCA" ), trackParametrization.getX ());
14481448 }
1449+ if (cascadeDecaySettings.doXiQA ) {
1450+ if (trackParCov.isUsedInCascading == 1 ) {
1451+ histos.fill (HIST (" h2dDCAxyCascade" ), trackParametrization.getPt (), dcaXY * 1e+4 ); // in microns, please
1452+ histos.fill (HIST (" h2dDCAzCascade" ), trackParametrization.getPt (), dcaZ * 1e+4 ); // in microns, please
1453+ }
1454+ if (trackParCov.isUsedInCascading == 2 ) {
1455+ histos.fill (HIST (" h2dDCAxyCascadeBachelor" ), trackParametrization.getPt (), dcaXY * 1e+4 ); // in microns, please
1456+ histos.fill (HIST (" h2dDCAzCascadeBachelor" ), trackParametrization.getPt (), dcaZ * 1e+4 ); // in microns, please
1457+ }
1458+ if (trackParCov.isUsedInCascading == 3 ) {
1459+ histos.fill (HIST (" h2dDCAxyCascadeNegative" ), trackParametrization.getPt (), dcaXY * 1e+4 ); // in microns, please
1460+ histos.fill (HIST (" h2dDCAzCascadeNegative" ), trackParametrization.getPt (), dcaZ * 1e+4 ); // in microns, please
1461+ }
1462+ if (trackParCov.isUsedInCascading == 4 ) {
1463+ histos.fill (HIST (" h2dDCAxyCascadePositive" ), trackParametrization.getPt (), dcaXY * 1e+4 ); // in microns, please
1464+ histos.fill (HIST (" h2dDCAzCascadePositive" ), trackParametrization.getPt (), dcaZ * 1e+4 ); // in microns, please
1465+ }
1466+ }
14491467 tableTracksDCA (dcaXY, dcaZ);
14501468 if (populateTracksDCACov) {
14511469 tableTracksDCACov (dcaInfo.getSigmaY2 (), dcaInfo.getSigmaZ2 ());
@@ -1685,7 +1703,7 @@ struct OnTheFlyTracker {
16851703 const float nsToMus = 1e-3f ;
16861704 const float timeResolutionUs = timeResolutionNs * nsToMus; // us
16871705 const float time = (eventCollisionTimeNS + gRandom ->Gaus (0 ., timeResolutionNs)) * nsToMus;
1688-
1706+
16891707 bool reconstructed = false ;
16901708 if (enablePrimarySmearing && mcParticle.isPrimary ()) {
16911709 o2::upgrade::convertMCParticleToO2Track (mcParticle, trackParCov, pdgDB);
@@ -1760,7 +1778,7 @@ struct OnTheFlyTracker {
17601778 aod::track::TrackTypeEnum trackType = aod::track::Track;
17611779
17621780 if (populateTracksDCA) {
1763- float dcaXY = 1e+10 , dcaZ = 1e+10 ;
1781+ float dcaXY = 1e+10 , dcaZ = 1e+10 ;
17641782 o2::track::TrackParCov trackParametrization (trackParCov);
17651783 if (trackParametrization.propagateToDCA (primaryVertex, mMagneticField , &dcaInfo)) {
17661784 dcaXY = dcaInfo.getY ();
@@ -1806,12 +1824,12 @@ struct OnTheFlyTracker {
18061824 aod::track::TrackTypeEnum trackType = aod::track::Track;
18071825
18081826 if (populateTracksDCA) {
1809- float dcaXY = 1e+10 , dcaZ = 1e+10 ;
1827+ float dcaXY = 1e+10 , dcaZ = 1e+10 ;
18101828 o2::track::TrackParCov trackParametrization (trackParCov);
18111829 if (trackParametrization.propagateToDCA (primaryVertex, mMagneticField , &dcaInfo)) {
18121830 dcaXY = dcaInfo.getY ();
18131831 dcaZ = dcaInfo.getZ ();
1814- }
1832+ }
18151833
18161834 tableTracksDCA (dcaXY, dcaZ);
18171835 if (populateTracksDCACov) {
@@ -1846,7 +1864,7 @@ struct OnTheFlyTracker {
18461864 tableTracksAlice3 (true );
18471865 }
18481866 }
1849-
1867+
18501868 void processDecayer (aod::McCollision const & mcCollision, aod::McParticlesWithDau const & mcParticles)
18511869 {
18521870 for (size_t icfg = 0 ; icfg < mSmearer .size (); ++icfg) {
@@ -1856,7 +1874,6 @@ struct OnTheFlyTracker {
18561874
18571875 PROCESS_SWITCH (OnTheFlyTracker, processOnTheFly, " Enable default workflow" , true );
18581876 PROCESS_SWITCH (OnTheFlyTracker, processDecayer, " Enable experimental decayer workflow" , false );
1859-
18601877};
18611878
18621879// / Extends TracksExtra if necessary
0 commit comments