@@ -224,35 +224,33 @@ struct PiDeuteronFemto {
224224
225225 HistogramRegistry mQaRegistry {
226226 " QA" ,
227- {
228- {" hVtxZ" , " Vertex distribution in Z;Z (cm)" , {HistType::kTH1F , {{400 , -20.0 , 20.0 }}}},
229- {" hNcontributor" , " Number of primary vertex contributor" , {HistType::kTH1F , {{2000 , 0 .0f , 2000 .0f }}}},
230- {" hTrackSel" , " Accepted tracks" , {HistType::kTH1F , {{Selections::kAll , -0.5 , static_cast <double >(Selections::kAll ) - 0.5 }}}},
231- {" hEvents" , " ; Events;" , {HistType::kTH1F , {{3 , -0.5 , 2.5 }}}},
232- {" hEmptyPool" , " svPoolCreator did not find track pairs false/true" , {HistType::kTH1F , {{2 , -0.5 , 1.5 }}}},
233- {" hdcaxyDe" , " ;DCA_{xy} (cm)" , {HistType::kTH1F , {{200 , -1 .0f , 1 .0f }}}},
234- {" hdcazDe" , " ;DCA_{z} (cm)" , {HistType::kTH1F , {{200 , -1 .0f , 1 .0f }}}},
235- {" hNClsDeITS" , " ;N_{ITS} Cluster" , {HistType::kTH1F , {{20 , -10 .0f , 10 .0f }}}},
236- {" hNClsPiITS" , " ;N_{ITS} Cluster" , {HistType::kTH1F , {{20 , -10 .0f , 10 .0f }}}},
237- {" hDePitInvMass" , " ; M(De + p) (GeV/#it{c}^{2})" , {HistType::kTH1F , {{300 , 3 .74f , 4 .34f }}}},
238- {" hDePt" , " #it{p}_{T} distribution; #it{p}_{T} (GeV/#it{c})" , {HistType::kTH1F , {{240 , -6 .0f , 6 .0f }}}},
239- {" hPiPt" , " Pt distribution; #it{p}_{T} (GeV/#it{c})" , {HistType::kTH1F , {{120 , -3 .0f , 3 .0f }}}},
240- {" h2dEdxDecandidates" , " dEdx distribution; #it{p} (GeV/#it{c}); dE/dx (a.u.)" , {HistType::kTH2F , {{200 , -5 .0f , 5 .0f }, {100 , 0 .0f , 2000 .0f }}}},
241- {" h2NsigmaDeTPC" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
242- {" h2NsigmaDeTPC_preselection" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
243- {" h2NsigmaDeTPC_preselecComp" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
244- {" h2NSigmaDeITS_preselection" , " NsigmaDe ITS distribution; signed #it{p}_{T} (GeV/#it{c}); n#sigma_{ITS} De" , {HistType::kTH2F , {{50 , -5 .0f , 5 .0f }, {120 , -3 .0f , 3 .0f }}}},
245- {" h2NSigmaDeITS" , " NsigmaDe ITS distribution; signed #it{p}_{T} (GeV/#it{c}); n#sigma_{ITS} De" , {HistType::kTH2F , {{50 , -5 .0f , 5 .0f }, {120 , -3 .0f , 3 .0f }}}},
246- {" h2NsigmaPiTPC" , " NsigmaPi TPC distribution; #it{p}_{T}(GeV/#it{c}); n#sigma_{TPC}(p)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
247- {" h2NsigmaPiTPC_preselection" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
248- {" h2NsigmaPiTOF" , " NsigmaPi TOF distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(p)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
249- {" h2NsigmaPiTOF_preselection" , " NsigmaPi TOF distribution; #iit{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(p)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
250- {" hkStar_LS_M" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
251- {" hkStar_LS_A" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
252- {" hkStar_US_M" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
253- {" hkStar_US_A" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
254- {" hisBkgEM" , " ; isBkgEM;" , {HistType::kTH1F , {{3 , -1 , 2 }}}}
255- },
227+ {{" hVtxZ" , " Vertex distribution in Z;Z (cm)" , {HistType::kTH1F , {{400 , -20.0 , 20.0 }}}},
228+ {" hNcontributor" , " Number of primary vertex contributor" , {HistType::kTH1F , {{2000 , 0 .0f , 2000 .0f }}}},
229+ {" hTrackSel" , " Accepted tracks" , {HistType::kTH1F , {{Selections::kAll , -0.5 , static_cast <double >(Selections::kAll ) - 0.5 }}}},
230+ {" hEvents" , " ; Events;" , {HistType::kTH1F , {{3 , -0.5 , 2.5 }}}},
231+ {" hEmptyPool" , " svPoolCreator did not find track pairs false/true" , {HistType::kTH1F , {{2 , -0.5 , 1.5 }}}},
232+ {" hdcaxyDe" , " ;DCA_{xy} (cm)" , {HistType::kTH1F , {{200 , -1 .0f , 1 .0f }}}},
233+ {" hdcazDe" , " ;DCA_{z} (cm)" , {HistType::kTH1F , {{200 , -1 .0f , 1 .0f }}}},
234+ {" hNClsDeITS" , " ;N_{ITS} Cluster" , {HistType::kTH1F , {{20 , -10 .0f , 10 .0f }}}},
235+ {" hNClsPiITS" , " ;N_{ITS} Cluster" , {HistType::kTH1F , {{20 , -10 .0f , 10 .0f }}}},
236+ {" hDePitInvMass" , " ; M(De + p) (GeV/#it{c}^{2})" , {HistType::kTH1F , {{300 , 3 .74f , 4 .34f }}}},
237+ {" hDePt" , " #it{p}_{T} distribution; #it{p}_{T} (GeV/#it{c})" , {HistType::kTH1F , {{240 , -6 .0f , 6 .0f }}}},
238+ {" hPiPt" , " Pt distribution; #it{p}_{T} (GeV/#it{c})" , {HistType::kTH1F , {{120 , -3 .0f , 3 .0f }}}},
239+ {" h2dEdxDecandidates" , " dEdx distribution; #it{p} (GeV/#it{c}); dE/dx (a.u.)" , {HistType::kTH2F , {{200 , -5 .0f , 5 .0f }, {100 , 0 .0f , 2000 .0f }}}},
240+ {" h2NsigmaDeTPC" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
241+ {" h2NsigmaDeTPC_preselection" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
242+ {" h2NsigmaDeTPC_preselecComp" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
243+ {" h2NSigmaDeITS_preselection" , " NsigmaDe ITS distribution; signed #it{p}_{T} (GeV/#it{c}); n#sigma_{ITS} De" , {HistType::kTH2F , {{50 , -5 .0f , 5 .0f }, {120 , -3 .0f , 3 .0f }}}},
244+ {" h2NSigmaDeITS" , " NsigmaDe ITS distribution; signed #it{p}_{T} (GeV/#it{c}); n#sigma_{ITS} De" , {HistType::kTH2F , {{50 , -5 .0f , 5 .0f }, {120 , -3 .0f , 3 .0f }}}},
245+ {" h2NsigmaPiTPC" , " NsigmaPi TPC distribution; #it{p}_{T}(GeV/#it{c}); n#sigma_{TPC}(p)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
246+ {" h2NsigmaPiTPC_preselection" , " NsigmaDe TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(De)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
247+ {" h2NsigmaPiTOF" , " NsigmaPi TOF distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(p)" , {HistType::kTH2F , {{20 , -5 .0f , 5 .0f }, {200 , -5 .0f , 5 .0f }}}},
248+ {" h2NsigmaPiTOF_preselection" , " NsigmaPi TOF distribution; #iit{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(p)" , {HistType::kTH2F , {{100 , -5 .0f , 5 .0f }, {400 , -10 .0f , 10 .0f }}}},
249+ {" hkStar_LS_M" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
250+ {" hkStar_LS_A" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
251+ {" hkStar_US_M" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
252+ {" hkStar_US_A" , " ;kStar (GeV/c)" , {HistType::kTH1F , {{300 , 0 .0f , 3 .0f }}}},
253+ {" hisBkgEM" , " ; isBkgEM;" , {HistType::kTH1F , {{3 , -1 , 2 }}}}},
256254 OutputObjHandlingPolicy::AnalysisObject,
257255 false ,
258256 true };
@@ -701,25 +699,26 @@ struct PiDeuteronFemto {
701699 mQaRegistry .fill (HIST (" hisBkgEM" ), piDecand.isBkgEM );
702700 }
703701
704- double computePrTPCnsig (double InnerParamTPCHad, double SignalTPCHad){
702+ double computePrTPCnsig (double InnerParamTPCHad, double SignalTPCHad)
703+ {
705704 double m_BBparamsProton[6 ] = {-54.42066571222577 , 0.2857381250239097 , 1.247140602468868 , 0.6297483918147729 , 2.985438833884555 , 0.09 };
706-
707- float TPCinnerParam = InnerParamTPCHad;
708- float expTPCSignal = o2::tpc::BetheBlochAleph ((TPCinnerParam / 0.9382721 ), m_BBparamsProton[0 ], m_BBparamsProton[1 ], m_BBparamsProton[2 ], m_BBparamsProton[3 ], m_BBparamsProton[4 ]);
709- double resoTPC{expTPCSignal * m_BBparamsProton[5 ]};
710- return ((SignalTPCHad - expTPCSignal) / resoTPC);
711- }
712-
713- double tofNSigmaCalculation (double MassTOFHad, double ptHad)
714- {
705+
706+ float TPCinnerParam = InnerParamTPCHad;
707+ float expTPCSignal = o2::tpc::BetheBlochAleph ((TPCinnerParam / 0.9382721 ), m_BBparamsProton[0 ], m_BBparamsProton[1 ], m_BBparamsProton[2 ], m_BBparamsProton[3 ], m_BBparamsProton[4 ]);
708+ double resoTPC{expTPCSignal * m_BBparamsProton[5 ]};
709+ return ((SignalTPCHad - expTPCSignal) / resoTPC);
710+ }
711+
712+ double tofNSigmaCalculation (double MassTOFHad, double ptHad)
713+ {
715714 double fExpTOFMassHad = 0.9487 ; // Proton mass in TOF
716715 const float kp0 = 1.22204e-02 ;
717716 const float kp1 = 7.48467e-01 ;
718-
717+
719718 double fSigmaTOFMassHad = (kp0 * TMath::Exp (kp1 * TMath::Abs (ptHad))) * fExpTOFMassHad ;
720719 double fNSigmaTOFHad = (MassTOFHad - fExpTOFMassHad ) / fSigmaTOFMassHad ;
721720 return fNSigmaTOFHad ;
722- }
721+ }
723722
724723 double computeKstar (const PiDecandidate& piDecand)
725724 {
@@ -741,29 +740,34 @@ struct PiDeuteronFemto {
741740 }
742741
743742 void fillKstar (const PiDecandidate& piDecand)
744- {
743+ {
745744 double PrTPCnsigma = computePrTPCnsig (piDecand.momPiTPC , piDecand.tpcSignalPi );
746745 double PrTOFnsigma = tofNSigmaCalculation (piDecand.massTOFPi , piDecand.recoPtPi ());
747- if (abs (PrTPCnsigma) < settingCutNsigTPCPrMin) return ;
748- if (abs (PrTOFnsigma) < settingCutNsigTOFPrMin) return ;
749- float DeDCAxyMin = 0.015 + 0.0305 / TMath::Power (piDecand.recoPtDe (),1.1 );
750- if (abs (piDecand.dcaxyDe ) > DeDCAxyMin || abs (piDecand.dcazDe ) > settingCutDeDCAzMin || abs (piDecand.dcaxyPi ) > settingCutPiDCAxyMin || abs (piDecand.dcazPi ) > settingCutPiDCAzMin) return ;
751- if (std::abs (piDecand.recoPtPi ()) < settingCutPiptMin || std::abs (piDecand.recoPtPi ()) > settingCutPiptMax) return ;
752- if (std::abs (piDecand.recoPtDe ()) < settingCutDeptMin || std::abs (piDecand.recoPtDe ()) > settingCutDeptMax) return ;
753-
746+ if (abs (PrTPCnsigma) < settingCutNsigTPCPrMin)
747+ return ;
748+ if (abs (PrTOFnsigma) < settingCutNsigTOFPrMin)
749+ return ;
750+ float DeDCAxyMin = 0.015 + 0.0305 / TMath::Power (piDecand.recoPtDe (), 1.1 );
751+ if (abs (piDecand.dcaxyDe ) > DeDCAxyMin || abs (piDecand.dcazDe ) > settingCutDeDCAzMin || abs (piDecand.dcaxyPi ) > settingCutPiDCAxyMin || abs (piDecand.dcazPi ) > settingCutPiDCAzMin)
752+ return ;
753+ if (std::abs (piDecand.recoPtPi ()) < settingCutPiptMin || std::abs (piDecand.recoPtPi ()) > settingCutPiptMax)
754+ return ;
755+ if (std::abs (piDecand.recoPtDe ()) < settingCutDeptMin || std::abs (piDecand.recoPtDe ()) > settingCutDeptMax)
756+ return ;
757+
754758 fillHistograms (piDecand);
755759
756760 double kstar = computeKstar (piDecand);
757- if (piDecand.isBkgUS == 0 ){
758- if (piDecand.recoPtDe () > 0 ){
761+ if (piDecand.isBkgUS == 0 ) {
762+ if (piDecand.recoPtDe () > 0 ) {
759763 mQaRegistry .fill (HIST (" hkStar_LS_M" ), kstar);
760- }else {
764+ } else {
761765 mQaRegistry .fill (HIST (" hkStar_LS_A" ), kstar);
762766 }
763- }else {
764- if (piDecand.recoPtDe () > 0 ){
767+ } else {
768+ if (piDecand.recoPtDe () > 0 ) {
765769 mQaRegistry .fill (HIST (" hkStar_US_M" ), kstar);
766- }else {
770+ } else {
767771 mQaRegistry .fill (HIST (" hkStar_US_A" ), kstar);
768772 }
769773 }
@@ -784,15 +788,14 @@ struct PiDeuteronFemto {
784788 if (!fillCandidateInfo (deTrack, piTrack, collBracket, collisions, piDecand, tracks, isMixedEvent)) {
785789 continue ;
786790 }
787-
791+
788792 fillKstar (piDecand);
789793
790794 auto collision = collisions.rawIteratorAt (piDecand.collisionID );
791795
792- if (settingFillTable) {
796+ if (settingFillTable) {
793797 fillTable (piDecand, collision);
794798 }
795-
796799 }
797800 }
798801
0 commit comments