@@ -48,17 +48,17 @@ struct TaskJpsi {
4848
4949 void init (o2::framework::InitContext&)
5050 {
51- registry.add (" hmass" , " 2-prong candidates;inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{500 , 0 ., 5 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
52- registry.add (" hdeclength" , " 2-prong candidates;decay length (cm);entries" , {HistType::kTH2F , {{200 , 0 ., 2 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
53- registry.add (" hdeclengthxy" , " 2-prong candidates;decay length xy (cm);entries" , {HistType::kTH2F , {{200 , 0 ., 2 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
54- registry.add (" hd0Prong0" , " 2-prong candidates;prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
55- registry.add (" hd0Prong1" , " 2-prong candidates;prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
56- registry.add (" hd0d0" , " 2-prong candidates;product of DCAxy to prim. vertex (cm^{2});entries" , {HistType::kTH2F , {{500 , -1 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
57- registry.add (" hCPA" , " 2-prong candidates;cosine of pointing angle;entries" , {HistType::kTH2F , {{110 , - 1.1 , 1.1 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
51+ registry.add (" hmass" , " 2-prong candidates;inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{200 , 2 ., 4 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
52+ registry.add (" hdeclength" , " 2-prong candidates;decay length (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
53+ registry.add (" hdeclengthxy" , " 2-prong candidates;decay length xy (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
54+ registry.add (" hd0Prong0" , " 2-prong candidates;prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
55+ registry.add (" hd0Prong1" , " 2-prong candidates;prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
56+ registry.add (" hd0d0" , " 2-prong candidates;product of DCAxy to prim. vertex (cm^{2});entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
57+ registry.add (" hCPA" , " 2-prong candidates;cosine of pointing angle;entries" , {HistType::kTH2F , {{1000 , 0.5 , 1 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
5858 registry.add (" hEta" , " 2-prong candidates;candidate #it{#eta};entries" , {HistType::kTH2F , {{100 , -2 ., 2 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
59- registry.add (" hImpParErr" , " 2-prong candidates;impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
60- registry.add (" hDecLenErr" , " 2-prong candidates;decay length error (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
61- registry.add (" hDecLenXYErr" , " 2-prong candidates;decay length xy error (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 1 . }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
59+ registry.add (" hImpParErr" , " 2-prong candidates;impact parameter error (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
60+ registry.add (" hDecLenErr" , " 2-prong candidates;decay length error (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
61+ registry.add (" hDecLenXYErr" , " 2-prong candidates;decay length xy error (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
6262 }
6363
6464 Filter filterSelectCandidates = (aod::hf_selcandidate_jpsi::isSelJpsiToEE >= d_selectionFlagJpsi);
@@ -112,12 +112,22 @@ struct TaskJpsiMC {
112112
113113 void init (o2::framework::InitContext&)
114114 {
115- registry.add (" hmassSig" , " 2-prong candidates (rec matched);inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{500 , 0 ., 5 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
116- registry.add (" hmassBkg" , " 2-prong candidates (rec unmatched);inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{500 , 0 ., 5 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
117- registry.add (" hChi2PCASig" , " 3-prong candidates (rec. matched);chi2 PCA (cm);entries" , {HistType::kTH2F , {{500 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
118- registry.add (" hChi2PCABg" , " 3-prong candidates (rec. unmatched);chi2 PCA (cm);entries" , {HistType::kTH2F , {{500 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
119- registry.add (" hCtSig" , " 3-prong candidates (rec. matched);proper lifetime X(3872) * #it{c} (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.1 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
120- registry.add (" hCtBg" , " 3-prong candidates (rec. unmatched);proper lifetime X(3872) * #it{c} (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.1 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
115+ registry.add (" hmassSig" , " 2-prong candidates (rec matched);inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{200 , 2 ., 4 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
116+ registry.add (" hmassBg" , " 2-prong candidates (rec unmatched);inv. mass (e^{#plus} e^{#minus}) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{200 , 2 ., 4 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
117+ registry.add (" hdeclengthSig" , " 2-prong candidates (rec matched);decay length (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
118+ registry.add (" hdeclengthBg" , " 2-prong candidates (rec unmatched);decay length (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
119+ registry.add (" hdeclengthxySig" , " 2-prong candidates (rec matched);decay length xy (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
120+ registry.add (" hdeclengthxyBg" , " 2-prong candidates (rec unmatched);decay length xy (cm);entries" , {HistType::kTH2F , {{100 , 0 ., 0.01 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
121+ registry.add (" hd0Prong0Sig" , " 2-prong candidates (rec matched);prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
122+ registry.add (" hd0Prong0Bg" , " 2-prong candidates (rec unmatched);prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
123+ registry.add (" hd0Prong1Sig" , " 2-prong candidates (rec matched);prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
124+ registry.add (" hd0Prong1Bg" , " 2-prong candidates (rec unmatched);prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
125+ registry.add (" hd0d0Sig" , " 2-prong candidates (rec matched);product of DCAxy to prim. vertex (cm^{2});entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
126+ registry.add (" hd0d0Bg" , " 2-prong candidates (rec unmatched);product of DCAxy to prim. vertex (cm^{2});entries" , {HistType::kTH2F , {{400 , -0.002 , 0.002 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
127+ registry.add (" hChi2PCASig" , " 3-prong candidates (rec. matched);chi2 PCA (cm);entries" , {HistType::kTH2F , {{1000 , 0 ., 0.0001 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
128+ registry.add (" hChi2PCABg" , " 3-prong candidates (rec. unmatched);chi2 PCA (cm);entries" , {HistType::kTH2F , {{1000 , 0 ., 0.0001 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
129+ registry.add (" hCtSig" , " 3-prong candidates (rec. matched);proper lifetime X(3872) * #it{c} (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 0.001 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
130+ registry.add (" hCtBg" , " 3-prong candidates (rec. unmatched);proper lifetime X(3872) * #it{c} (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 0.001 }, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
121131 registry.add (" hYSig" , " 3-prong candidates (rec. matched);candidate rapidity;entries" , {HistType::kTH2F , {{100 , -2 ., 2 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
122132 registry.add (" hYBg" , " 3-prong candidates (rec. unmatched);candidate rapidity;entries" , {HistType::kTH2F , {{100 , -2 ., 2 .}, {(std::vector<double >)bins, " #it{p}_{T} (GeV/#it{c})" }}});
123133 }
@@ -145,14 +155,25 @@ struct TaskJpsiMC {
145155 registry.fill (HIST (" hCPARecSig" ), candidate.cpa ());
146156 registry.fill (HIST (" hEtaRecSig" ), candidate.eta ());
147157 registry.fill (HIST (" hmassSig" ), InvMassJpsiToEE (candidate), candidate.pt ());
158+ registry.fill (HIST (" hdeclengthSig" ), candidate.decayLength (), candidate.pt ());
159+ registry.fill (HIST (" hdeclengthxySig" ), candidate.decayLengthXY (), candidate.pt ());
160+ registry.fill (HIST (" hd0Prong0Sig" ), candidate.impactParameter0 (), candidate.pt ());
161+ registry.fill (HIST (" hd0Prong1Sig" ), candidate.impactParameter1 (), candidate.pt ());
162+ registry.fill (HIST (" hd0d0Sig" ), candidate.impactParameterProduct (), candidate.pt ());
148163 registry.fill (HIST (" hChi2PCASig" ), candidate.chi2PCA (), candidate.pt ());
149164 registry.fill (HIST (" hCtSig" ), CtJpsi (candidate), candidate.pt ());
150165 registry.fill (HIST (" hYSig" ), YJpsi (candidate), candidate.pt ());
166+
151167 } else {
152168 registry.fill (HIST (" hPtRecBg" ), candidate.pt ());
153169 registry.fill (HIST (" hCPARecBg" ), candidate.cpa ());
154170 registry.fill (HIST (" hEtaRecBg" ), candidate.eta ());
155- registry.fill (HIST (" hmassBkg" ), InvMassJpsiToEE (candidate), candidate.pt ());
171+ registry.fill (HIST (" hmassBg" ), InvMassJpsiToEE (candidate), candidate.pt ());
172+ registry.fill (HIST (" hdeclengthBg" ), candidate.decayLength (), candidate.pt ());
173+ registry.fill (HIST (" hdeclengthxyBg" ), candidate.decayLengthXY (), candidate.pt ());
174+ registry.fill (HIST (" hd0Prong0Bg" ), candidate.impactParameter0 (), candidate.pt ());
175+ registry.fill (HIST (" hd0Prong1Bg" ), candidate.impactParameter1 (), candidate.pt ());
176+ registry.fill (HIST (" hd0d0Bg" ), candidate.impactParameterProduct (), candidate.pt ());
156177 registry.fill (HIST (" hChi2PCABg" ), candidate.chi2PCA (), candidate.pt ());
157178 registry.fill (HIST (" hCtBg" ), CtJpsi (candidate), candidate.pt ());
158179 registry.fill (HIST (" hYBg" ), YJpsi (candidate), candidate.pt ());
0 commit comments