Skip to content

Commit 728bfdc

Browse files
authored
PWGEM/PhotonMeson: update createPCM and histograms (#3255)
1 parent 63f6100 commit 728bfdc

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

PWGEM/PhotonMeson/Core/HistogramsLibrary.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ void o2::aod::emphotonhistograms::DefineHistograms(THashList* list, const char*
4949
list->Add(new TH1F("hQoverPt", "q/pT;q/p_{T} (GeV/c)^{-1}", 1000, -50, 50));
5050
list->Add(new TH2F("hEtaPhi", "#eta vs. #varphi;#varphi (rad.);#eta", 180, 0, TMath::TwoPi(), 40, -2.0f, 2.0f));
5151
list->Add(new TH2F("hDCAxyz", "DCA xy vs. z;DCA_{xy} (cm);DCA_{z} (cm)", 1000, -50.0f, 50.0f, 1000, -50.0f, 50.0f));
52+
list->Add(new TH2F("hNclsTPC_Pt", "number of TPC clusters vs. pT", 1000, 0, 10, 161, -0.5, 160.5));
53+
list->Add(new TH2F("hNcrTPC_Pt", "number of TPC crossed rows vs. pT", 1000, 0, 10, 161, -0.5, 160.5));
5254
list->Add(new TH1F("hNclsTPC", "number of TPC clusters", 161, -0.5, 160.5));
5355
list->Add(new TH1F("hNcrTPC", "number of TPC crossed rows", 161, -0.5, 160.5));
5456
list->Add(new TH1F("hChi2TPC", "chi2/number of TPC clusters", 100, 0, 10));

PWGEM/PhotonMeson/Core/HistogramsLibrary.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ void FillHistClass(THashList* list, const char* subGroup, T const& obj)
100100
reinterpret_cast<TH1F*>(list->FindObject("hQoverPt"))->Fill(obj.sign() / obj.pt());
101101
reinterpret_cast<TH2F*>(list->FindObject("hEtaPhi"))->Fill(obj.phi(), obj.eta());
102102
reinterpret_cast<TH2F*>(list->FindObject("hDCAxyz"))->Fill(obj.dcaXY(), obj.dcaZ());
103-
reinterpret_cast<TH1F*>(list->FindObject("hNclsTPC"))->Fill(obj.tpcNClsFound());
103+
reinterpret_cast<TH2F*>(list->FindObject("hNclsTPC_Pt"))->Fill(obj.pt(), obj.tpcNClsFound());
104+
reinterpret_cast<TH2F*>(list->FindObject("hNcrTPC_Pt"))->Fill(obj.pt(), obj.tpcNClsCrossedRows());
104105
reinterpret_cast<TH1F*>(list->FindObject("hNclsITS"))->Fill(obj.itsNCls());
106+
reinterpret_cast<TH1F*>(list->FindObject("hNclsTPC"))->Fill(obj.tpcNClsFound());
105107
reinterpret_cast<TH1F*>(list->FindObject("hNcrTPC"))->Fill(obj.tpcNClsCrossedRows());
106108
reinterpret_cast<TH1F*>(list->FindObject("hTPCNcr2Nf"))->Fill(obj.tpcCrossedRowsOverFindableCls());
107109
reinterpret_cast<TH1F*>(list->FindObject("hTPCNcls2Nf"))->Fill(obj.tpcFoundOverFindableCls());

PWGEM/PhotonMeson/TableProducer/createPCM.cxx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ struct createPCM {
8383
Configurable<float> maxeta{"maxeta", 0.9, "eta acceptance for single track"};
8484
Configurable<int> mincrossedrows{"mincrossedrows", 10, "min crossed rows"};
8585
Configurable<float> maxchi2tpc{"maxchi2tpc", 4.0, "max chi2/NclsTPC"};
86-
Configurable<float> maxchi2its{"maxchi2its", 36.0, "max chi2/NclsITS"};
87-
Configurable<float> maxpt_itsonly{"maxpt_itsonly", 1.0, "max pT for ITSonly tracks"};
86+
Configurable<float> maxchi2its{"maxchi2its", 5.0, "max chi2/NclsITS"};
87+
Configurable<float> maxpt_itsonly{"maxpt_itsonly", 0.5, "max pT for ITSonly tracks"};
8888
Configurable<float> min_tpcdEdx{"min_tpcdEdx", 30.0, "min TPC dE/dx"};
8989
Configurable<float> max_tpcdEdx{"max_tpcdEdx", 110.0, "max TPC dE/dx"};
9090
Configurable<float> margin_r{"margin_r", 7.0, "margin for r cut"};
@@ -330,15 +330,18 @@ struct createPCM {
330330
}
331331
}
332332

333-
bool isITSonly = track.hasITS() & !track.hasTPC() & !track.hasTRD() & !track.hasTOF();
334-
if (isITSonly) {
333+
if (track.hasITS()) {
335334
if (track.itsChi2NCl() > maxchi2its) {
336335
return false;
337336
}
338-
if (track.pt() > maxpt_itsonly) {
339-
return false;
337+
bool isITSonly = track.hasITS() & !track.hasTPC() & !track.hasTRD() & !track.hasTOF();
338+
if (isITSonly) {
339+
if (track.pt() > maxpt_itsonly) {
340+
return false;
341+
}
340342
}
341343
}
344+
342345
return true;
343346
}
344347

0 commit comments

Comments
 (0)