Skip to content

Commit 5e9f738

Browse files
ljoergennjacazio
authored andcommitted
[PWGLF] angularCorrelationsInJets.cxx: fixed QC histogram availability (#10805)
1 parent 001005b commit 5e9f738

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

PWGLF/Tasks/Nuspex/angularCorrelationsInJets.cxx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,16 @@ struct AngularCorrelationsInJets {
8585
Configurable<float> minJetPt{"minJetPt", 10.0, "minimum total pT to accept jet"};
8686

8787
// Proton Cuts
88-
Configurable<float> protonDCAxyYield{"protonDCAxyYield", 0.05, "[proton] DCAxy cut for yield"};
89-
Configurable<float> protonDCAzYield{"protonDCAzYield", 0.05, "[proton] DCAz cut for yield"};
9088
Configurable<float> protonDCAxyCF{"protonDCAxyCF", 0.05, "[proton] DCAxy cut for CF"};
9189
Configurable<float> protonDCAzCF{"protonDCAzCF", 0.02, "[proton] DCAz cut for CF"};
9290
Configurable<float> protonTPCTOFpT{"protonTPCTOFpT", 0.7, "[proton] pT for switch in TPC/TPC+TOF nsigma"};
93-
Configurable<float> protonTPCnsigmaLowPtYield{"protonTPCnsigmaLowPtYield", 4.0, "[proton] max TPC nsigma with low pT for yield"};
94-
Configurable<float> protonTPCnsigmaHighPtYield{"protonTPCnsigmaHighPtYield", 4.0, "[proton] max TPC nsigma with high pT for yield"};
95-
Configurable<float> protonTOFnsigmaHighPtYield{"protonTOFnsigmaHighPtYield", 4.0, "[proton] max TOF nsigma with high pT yield"};
9691
Configurable<float> protonTPCnsigma{"protonTPCnsigma", 4.0, "[proton] max TPC nsigma for pt > 0/1.5/3.0 GeV"};
9792
Configurable<float> protonTOFnsigma{"protonTOFnsigma", 3.0, "[proton] max TOF nsigma for pt > 0/1.5/3.0 GeV"};
9893

9994
// Antiproton Cuts
100-
Configurable<float> antiprotonDCAxyYield{"antiprotonDCAxyYield", 0.05, "[antiproton] DCAxy cut for yield"};
101-
Configurable<float> antiprotonDCAzYield{"antiprotonDCAzYield", 0.05, "[antiproton] DCAz cut for yield"};
10295
Configurable<float> antiprotonDCAxyCF{"antiprotonDCAxyCF", 0.05, "[antiproton] DCAxy cut for CF"};
10396
Configurable<float> antiprotonDCAzCF{"antiprotonDCAzCF", 0.02, "[antiproton] DCAz cut for CF"};
10497
Configurable<float> antiprotonTPCTOFpT{"antiprotonTPCTOFpT", 0.7, "[antiproton] pT for switch in TPC/TPC+TOF nsigma"};
105-
Configurable<float> antiprotonTPCnsigmaLowPtYield{"antiprotonTPCnsigmaLowPtYield", 4.0, "[antiproton] max TPC nsigma with low pT for yield"};
106-
Configurable<float> antiprotonTPCnsigmaHighPtYield{"antiprotonTPCnsigmaHighPtYield", 4.0, "[antiproton] max TPC nsigma with high pT for yield"};
107-
Configurable<float> antiprotonTOFnsigmaHighPtYield{"antiprotonTOFnsigmaHighPtYield", 4.0, "[antiproton] min TOF nsigma with high pT for yield"};
10898
Configurable<float> antiprotonTPCnsigma{"antiprotonTPCnsigma", 4.0, "[antiproton] max TPC nsigma for pt > 0/1.5/3.0 GeV"};
10999
Configurable<float> antiprotonTOFnsigma{"antiprotonTOFnsigma", 3.0, "[antiproton] max TOF nsigma for pt > 0/1.5/3.0 GeV"};
110100

@@ -1000,7 +990,7 @@ struct AngularCorrelationsInJets {
1000990
registryData.fill(HIST("trackProtocol"), 1); // # tracks selected for jet reconstruction
1001991
double mass = 0.139;
1002992

1003-
if (track.tpcNClsFindable() != 0) {
993+
if (outputQC && (track.tpcNClsFindable() != 0)) {
1004994
registryQC.fill(HIST("ratioCrossedRowsTPC"), track.pt(), track.tpcNClsCrossedRows() / track.tpcNClsFindable());
1005995
}
1006996

@@ -1075,7 +1065,7 @@ struct AngularCorrelationsInJets {
10751065
jets.clear();
10761066

10771067
for (const auto& track : tracks) {
1078-
if (track.tpcNClsFindable() != 0) {
1068+
if (outputQC && (track.tpcNClsFindable() != 0)) {
10791069
registryQC.fill(HIST("ratioCrossedRowsTPC"), track.pt(), track.tpcNClsCrossedRows() / track.tpcNClsFindable());
10801070
}
10811071
registryQC.fill(HIST("ptFullEvent"), track.pt());

0 commit comments

Comments
 (0)