@@ -193,12 +193,12 @@ struct DedxPidAnalysis {
193193 " Maximum V0 Radius" };
194194 Configurable<float > dcaV0DaughtersMax{" dcaV0DaughtersMax" , 0 .5f ,
195195 " Maximum DCA Daughters" };
196- Configurable<float > dcaProtonsFromLambda{" dcaProtonsFromLambda" , 0 .05f ,
197- " Minimum DCA of protons to vtx for Lambda" };
198- Configurable<float > dcaPionsFromLambda{" dcaPionsFromLambda" , 0 .2f ,
199- " Minimum DCA of pions to vtx for Lambda" };
200- Configurable<float > dcaPionsFromK0s{" dcaPionsFromK0s" , 0 .1f ,
201- " Minimum DCA of pions to vtx for K0s" };
196+ Configurable<float > dcaProtonsFromLambda{" dcaProtonsFromLambda" , 0 .05f ,
197+ " Minimum DCA of protons to vtx for Lambda" };
198+ Configurable<float > dcaPionsFromLambda{" dcaPionsFromLambda" , 0 .2f ,
199+ " Minimum DCA of pions to vtx for Lambda" };
200+ Configurable<float > dcaPionsFromK0s{" dcaPionsFromK0s" , 0 .1f ,
201+ " Minimum DCA of pions to vtx for K0s" };
202202 Configurable<float > v0rapidityCut{" v0rapidityCut" , 0 .5f , " V0 rapidity cut" };
203203 Configurable<float > v0ProperLifetimeCutK0s{" v0ProperLifetimeCutK0s" , 20 .f , " V0 proper lifetime cut for K0s" };
204204 Configurable<float > v0ProperLifetimeCutLambda{" v0ProperLifetimeCutLambda" , 30 .f , " V0 proper lifetime cut for Lambda" };
@@ -216,7 +216,7 @@ struct DedxPidAnalysis {
216216 Configurable<int > v0SelectionMode{" v0SelectionMode" , 3 , " V0 Selection base on TPC: 1, TOF:2 ,Both:3" };
217217 Configurable<int > momentumMode{" momentumMode" , 2 , " 1: TPC inner param, 2: Total momentum p" };
218218 Configurable<uint8_t > v0TypeSelection{" v0TypeSelection" , 1 , " select on a certain V0 type (leave negative if no selection desired)" };
219- Configurable<uint8_t > v0TypeSelectionGamma{" v0TypeSelectionGamma" , 7 , " select on a certain V0 type (leave negative if no selection desired)" };
219+ Configurable<uint8_t > v0TypeSelectionGamma{" v0TypeSelectionGamma" , 7 , " select on a certain V0 type (leave negative if no selection desired)" };
220220 Configurable<int > multiplicityEstimator{" multiplicityEstimator" , 9 , " Flag to use a multiplicity estimator; No multiplicity: 0, MultFV0A: 1, MultFT0M: 2, MultFDDM: 3 ,MultTracklets: 4,MultTPC: 5,MultNTracksPV: 6 ,MultNTracksPVeta1: 7,CentralityFT0C: 8 ,CentralityFT0M: 9, CentralityFV0A: 10" };
221221 Configurable<double > lowParam1{" lowParam1" , 0.119297 , " First parameter for low phi cut" };
222222 Configurable<double > lowParam2{" lowParam2" , 0.000379693 , " Second parameter for low phi cut" };
@@ -640,10 +640,10 @@ struct DedxPidAnalysis {
640640
641641 // Event Counter by centrality
642642 registryDeDx.add (" histCentrality" , " Centrality" , HistType::kTH1F , {centAxis});
643-
644- // Tracks vs p
645- registryDeDx.add (" Tracks_vs_pT_all" , " pT All" , HistType::kTH1F ,{{ ptAxis}});
646- registryDeDx.add (" Tracks_vs_pT_all_cuts" , " pT All + cuts" , HistType::kTH1F ,{{ ptAxis}});
643+
644+ // Tracks vs p
645+ registryDeDx.add (" Tracks_vs_pT_all" , " pT All" , HistType::kTH1F , {{ ptAxis}});
646+ registryDeDx.add (" Tracks_vs_pT_all_cuts" , " pT All + cuts" , HistType::kTH1F , {{ ptAxis}});
647647
648648 // Event Counter
649649 registryDeDx.add (" evsel" , " events selected" , HistType::kTH1F , {{6 , 0.5 , 6.5 , " " }});
@@ -677,24 +677,24 @@ struct DedxPidAnalysis {
677677 xSec->SetBinLabel (NClTPCFoundCutSec, " NClTPCFoundCutSec" );
678678 xSec->SetBinLabel (NClTPCPIDCutSec, " NClTPCPIDCutSec" );
679679 xSec->SetBinLabel (AllK0s, " AllK0s" );
680- xSec->SetBinLabel (SingleTrackSelectionK0s, " SingleTrackSelectionK0s" );
681- xSec->SetBinLabel (V0TypeK0s, " V0TypeK0s" );
682- xSec->SetBinLabel ( DCAtoVtxK0s, " DCAtoVtxK0s" );
683- xSec->SetBinLabel ( Armenteros, " Armenteros" );
680+ xSec->SetBinLabel (SingleTrackSelectionK0s, " SingleTrackSelectionK0s" );
681+ xSec->SetBinLabel (V0TypeK0s, " V0TypeK0s" );
682+ xSec->SetBinLabel (DCAtoVtxK0s, " DCAtoVtxK0s" );
683+ xSec->SetBinLabel (Armenteros, " Armenteros" );
684684 xSec->SetBinLabel (V0RapidityK0s, " V0RapidityK0s" );
685685 xSec->SetBinLabel (V0ProperLifetimeK0s, " V0ProperLifetimeK0s" );
686686 xSec->SetBinLabel (MassCutK0s, " MassCutK0s" );
687687 xSec->SetBinLabel (AllLambda, " AllLambda" );
688- xSec->SetBinLabel (SingleTrackSelectionLambda, " SingleTrackSelectionLambda" );
689- xSec->SetBinLabel (V0TypeLambda, " V0TypeLambda" );
690- xSec->SetBinLabel ( DCAtoVtxLambda, " DCAtoVtxLambda" );
688+ xSec->SetBinLabel (SingleTrackSelectionLambda, " SingleTrackSelectionLambda" );
689+ xSec->SetBinLabel (V0TypeLambda, " V0TypeLambda" );
690+ xSec->SetBinLabel (DCAtoVtxLambda, " DCAtoVtxLambda" );
691691 xSec->SetBinLabel (V0RapidityLambda, " V0RapidityLambda" );
692692 xSec->SetBinLabel (V0ProperLifetimeLambda, " V0ProperLifetimeLambda" );
693693 xSec->SetBinLabel (MassCutLambda, " MassCutLambda" );
694694 xSec->SetBinLabel (AllAntiLambda, " AllAntiLambda" );
695- xSec->SetBinLabel (SingleTrackSelectionAntiLambda, " SingleTrackSelectionAntiLambda" );
696- xSec->SetBinLabel (V0TypeAntiLambda, " V0TypeAntiLambda" );
697- xSec->SetBinLabel ( DCAtoVtxAntiLambda, " DCAtoVtxAntiLambda" );
695+ xSec->SetBinLabel (SingleTrackSelectionAntiLambda, " SingleTrackSelectionAntiLambda" );
696+ xSec->SetBinLabel (V0TypeAntiLambda, " V0TypeAntiLambda" );
697+ xSec->SetBinLabel (DCAtoVtxAntiLambda, " DCAtoVtxAntiLambda" );
698698 xSec->SetBinLabel (V0RapidityAntiLambda, " V0RapidityAntiLambda" );
699699 xSec->SetBinLabel (V0ProperLifetimeAntiLambda, " V0ProperLifetimeAntiLambda" );
700700 xSec->SetBinLabel (MassCutAntiLambda, " MassCutAntiLambda" );
@@ -711,12 +711,12 @@ struct DedxPidAnalysis {
711711 bool passedSingleTrackSelection (const T1& track, const C& /* collision*/ )
712712 {
713713 // Single-Track Selections
714- // if (!track.hasTPC())
715- // return false;
714+ // if (!track.hasTPC())
715+ // return false;
716716 if (track.tpcNClsCrossedRows () < minNCrossedRowsTPC)
717717 return false ;
718- // if (track.tpcChi2NCl() > maxChi2TPC)
719- // return false;
718+ // if (track.tpcChi2NCl() > maxChi2TPC)
719+ // return false;
720720 if (track.eta () < etaMin || track.eta () > etaMax)
721721 return false ;
722722
@@ -754,9 +754,9 @@ struct DedxPidAnalysis {
754754 bool passedK0Selection (const T1& v0, const T2& ntrack, const T2& ptrack,
755755 const C& collision)
756756 {
757-
757+
758758 if (fillHist)
759- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllK0s);
759+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllK0s);
760760 // Single-Track Selections
761761 if (!passedSingleTrackSelection (ptrack, collision))
762762 return false ;
@@ -792,33 +792,33 @@ struct DedxPidAnalysis {
792792 if (fillHist)
793793 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionK0s);
794794
795- if (v0.v0Type () != v0TypeSelection) // V0 type selection
796- return false ;
797- if (fillHist)
798- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeK0s);
799-
800- if (std::fabs (v0.dcapostopv ()) < dcaPionsFromK0s && std::fabs (v0.dcanegtopv ()) < dcaPionsFromK0s ) // DCA selection
801- return false ;
802- if (fillHist)
803- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxK0s);
804-
805- if (armPodCut * v0.qtarm () < std::abs (v0.alpha ())) // Armenteros-Podolanski cut
806- return false ;
807- if (fillHist)
808- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::Armenteros);
809-
810- if (std::abs (v0.yK0Short ()) > v0rapidityCut) // Rapidity selection
795+ if (v0.v0Type () != v0TypeSelection) // V0 type selection
796+ return false ;
797+ if (fillHist)
798+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeK0s);
799+
800+ if (std::fabs (v0.dcapostopv ()) < dcaPionsFromK0s && std::fabs (v0.dcanegtopv ()) < dcaPionsFromK0s) // DCA selection
801+ return false ;
802+ if (fillHist)
803+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxK0s);
804+
805+ if (armPodCut * v0.qtarm () < std::abs (v0.alpha ())) // Armenteros-Podolanski cut
806+ return false ;
807+ if (fillHist)
808+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::Armenteros);
809+
810+ if (std::abs (v0.yK0Short ()) > v0rapidityCut) // Rapidity selection
811811 return false ;
812812 if (fillHist)
813813 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0RapidityK0s);
814814
815815 float properLifetime = v0.distovertotmom (collision.posX (), collision.posY (), collision.posZ ()) * MassK0Short;
816- if (properLifetime > v0ProperLifetimeCutK0s) // Proper lifetime
816+ if (properLifetime > v0ProperLifetimeCutK0s) // Proper lifetime
817817 return false ;
818818 if (fillHist)
819819 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0ProperLifetimeK0s);
820820
821- if (std::abs (v0.mK0Short () - MassK0Short) > invMassCutK0s) // Invarian mass
821+ if (std::abs (v0.mK0Short () - MassK0Short) > invMassCutK0s) // Invarian mass
822822 return false ;
823823 if (fillHist)
824824 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::MassCutK0s);
@@ -831,15 +831,14 @@ struct DedxPidAnalysis {
831831 bool passedLambdaSelection (const T1& v0, const T2& ntrack, const T2& ptrack,
832832 const C& collision)
833833 {
834-
835- if (fillHist)
836- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllLambda);
834+
835+ if (fillHist)
836+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllLambda);
837837 // Single-Track Selections
838838 if (!passedSingleTrackSelection (ptrack, collision))
839839 return false ;
840840 if (!passedSingleTrackSelection (ntrack, collision))
841841 return false ;
842-
843842
844843 /* double sigmap = 0.0;
845844 double sigman = 0.0;
@@ -868,32 +867,32 @@ struct DedxPidAnalysis {
868867 if (std::abs(sigman) > nsigmaTOFmax)
869868 return false;
870869 }*/
871-
872- if (fillHist)
873- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionLambda);
874-
875- if (v0.v0Type () != v0TypeSelection) // V0 type selection
876- return false ;
870+
871+ if (fillHist)
872+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionLambda);
873+
874+ if (v0.v0Type () != v0TypeSelection) // V0 type selection
875+ return false ;
876+ if (fillHist)
877+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeLambda);
878+
879+ if (std::fabs (v0.dcapostopv ()) < dcaProtonsFromLambda && std::fabs (v0.dcanegtopv ()) < dcaPionsFromLambda) // DCA selection
880+ return false ;
877881 if (fillHist)
878- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeLambda);
879-
880- if (std::fabs (v0.dcapostopv ()) < dcaProtonsFromLambda && std::fabs (v0.dcanegtopv ()) < dcaPionsFromLambda) // DCA selection
881- return false ;
882- if (fillHist)
883- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxLambda);
884-
885- if (std::abs (v0.yLambda ()) > v0rapidityCut) // Rapidity selection
882+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxLambda);
883+
884+ if (std::abs (v0.yLambda ()) > v0rapidityCut) // Rapidity selection
886885 return false ;
887886 if (fillHist)
888887 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0RapidityLambda);
889888
890889 float properLifetime = v0.distovertotmom (collision.posX (), collision.posY (), collision.posZ ()) * MassLambda;
891- if (properLifetime > v0ProperLifetimeCutLambda) // Proper lifetime
890+ if (properLifetime > v0ProperLifetimeCutLambda) // Proper lifetime
892891 return false ;
893892 if (fillHist)
894893 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0ProperLifetimeLambda);
895894
896- if (std::abs (v0.mLambda () - MassLambda) > invMassCutLambda) // Invarian mass
895+ if (std::abs (v0.mLambda () - MassLambda) > invMassCutLambda) // Invarian mass
897896 return false ;
898897 if (fillHist)
899898 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::MassCutLambda);
@@ -906,9 +905,9 @@ struct DedxPidAnalysis {
906905 bool passedAntiLambdaSelection (const T1& v0, const T2& ntrack,
907906 const T2& ptrack, const C& collision)
908907 {
909- if (fillHist)
910- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllAntiLambda);
911-
908+ if (fillHist)
909+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllAntiLambda);
910+
912911 // Single-Track Selections
913912 if (!passedSingleTrackSelection (ptrack, collision))
914913 return false ;
@@ -940,33 +939,33 @@ struct DedxPidAnalysis {
940939 if (std::abs(sigman) > nsigmaTOFmax)
941940 return false;
942941 }*/
943-
944- if (fillHist)
945- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionAntiLambda);
946-
947- // Select V0 type
948- if (v0.v0Type () != v0TypeSelection) // V0 type selection
949- return false ;
950- if (fillHist)
951- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeAntiLambda);
952-
953- if (std::fabs (v0.dcapostopv ()) < dcaPionsFromLambda && std::fabs (v0.dcanegtopv ()) < dcaProtonsFromLambda) // DCA selection
954- return false ;
955- if (fillHist)
956- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxAntiLambda);
957-
958- if (std::abs (v0.yLambda ()) > v0rapidityCut) // Rapidity selection
942+
943+ if (fillHist)
944+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionAntiLambda);
945+
946+ // Select V0 type
947+ if (v0.v0Type () != v0TypeSelection) // V0 type selection
948+ return false ;
949+ if (fillHist)
950+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeAntiLambda);
951+
952+ if (std::fabs (v0.dcapostopv ()) < dcaPionsFromLambda && std::fabs (v0.dcanegtopv ()) < dcaProtonsFromLambda) // DCA selection
953+ return false ;
954+ if (fillHist)
955+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::DCAtoVtxAntiLambda);
956+
957+ if (std::abs (v0.yLambda ()) > v0rapidityCut) // Rapidity selection
959958 return false ;
960959 if (fillHist)
961960 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0RapidityAntiLambda);
962961
963962 float properLifetime = v0.distovertotmom (collision.posX (), collision.posY (), collision.posZ ()) * MassLambda;
964- if (properLifetime > v0ProperLifetimeCutLambda) // Proper lifetime
963+ if (properLifetime > v0ProperLifetimeCutLambda) // Proper lifetime
965964 return false ;
966965 if (fillHist)
967966 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0ProperLifetimeAntiLambda);
968967
969- if (std::abs (v0.mAntiLambda () - MassLambda) > invMassCutLambda) // Invarian mass
968+ if (std::abs (v0.mAntiLambda () - MassLambda) > invMassCutLambda) // Invarian mass
970969 return false ;
971970 if (fillHist)
972971 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::MassCutAntiLambda);
@@ -979,9 +978,9 @@ struct DedxPidAnalysis {
979978 bool passedGammaSelection (const T1& v0, const T2& ntrack, const T2& ptrack,
980979 const C& collision)
981980 {
982- if (fillHist)
983- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllGamma);
984-
981+ if (fillHist)
982+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::AllGamma);
983+
985984 // Single-Track Selections
986985 if (!passedSingleTrackSelection (ptrack, collision))
987986 return false ;
@@ -1016,22 +1015,22 @@ struct DedxPidAnalysis {
10161015 return false;
10171016 }*/
10181017 const float gammaMass = 2 * MassElectron; // GeV/c^2
1019-
1020- if (fillHist)
1021- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionGamma);
10221018
1023- if (v0.v0Type () != v0TypeSelectionGamma) // V0 type selection
1024- return false ;
1025- if (fillHist)
1026- registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeGamma);
1019+ if (fillHist)
1020+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::SingleTrackSelectionGamma);
1021+
1022+ if (v0.v0Type () != v0TypeSelectionGamma) // V0 type selection
1023+ return false ;
1024+ if (fillHist)
1025+ registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0TypeGamma);
10271026
10281027 const float yGamma = RecoDecay::y (std::array{v0.px (), v0.py (), v0.pz ()}, MassGamma);
1029- if (std::abs (yGamma) > v0rapidityCut) // Rapidity selection
1028+ if (std::abs (yGamma) > v0rapidityCut) // Rapidity selection
10301029 return false ;
10311030 if (fillHist)
10321031 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::V0RapidityGamma);
10331032
1034- if (std::abs (v0.mGamma () - gammaMass) > invMassCutGamma) // Invarian mass
1033+ if (std::abs (v0.mGamma () - gammaMass) > invMassCutGamma) // Invarian mass
10351034 return false ;
10361035 if (fillHist)
10371036 registryDeDx.fill (HIST (" trackselSec" ), TrkSecCutLabel::MassCutGamma);
@@ -1472,9 +1471,9 @@ struct DedxPidAnalysis {
14721471 continue ;
14731472
14741473 registryDeDx.fill (HIST (" trackselAll" ), TrkPriCutLabel::SelectionPrim);
1475- // For pt
1474+ // For pt
14761475 registryDeDx.fill (HIST (" Tracks_vs_pT_all" ), trk.pt ());
1477-
1476+
14781477 // phi and Ncl cut
14791478 if (phiVarCut) {
14801479 if (!passedPhiCutPri (trk, magField, *fphiCutLow, *fphiCutHigh))
@@ -1501,7 +1500,7 @@ struct DedxPidAnalysis {
15011500 }
15021501
15031502 registryDeDx.fill (HIST (" heta_vs_NclFound_TPC_After_Primary" ), trk.eta (), trk.tpcNClsFound ());
1504- // For pt + cuts
1503+ // For pt + cuts
15051504 registryDeDx.fill (HIST (" Tracks_vs_pT_all_cuts" ), trk.pt ());
15061505
15071506 float signedP = trk.sign () * getMomentum (trk);
@@ -1623,8 +1622,8 @@ struct DedxPidAnalysis {
16231622 if (!negTrack.passedTPCRefit())
16241623 continue;*/
16251624
1626- // registryDeDx.fill(HIST("trackselSec"), TrkSecCutLabel::TPCRefit);
1627- // phi and Ncl cut
1625+ // registryDeDx.fill(HIST("trackselSec"), TrkSecCutLabel::TPCRefit);
1626+ // phi and Ncl cut
16281627 if (phiVarCut) {
16291628 if (!passedPhiCutSecondaries (posTrack, magField, *fphiCutLow, *fphiCutHigh))
16301629 continue ;
0 commit comments