Skip to content

Commit e73f903

Browse files
[PWGUD] Modified counter histogram (#12455)
1 parent 01f0c1b commit e73f903

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

PWGUD/Tasks/exclusiveRhoTo4Pi.cxx

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,6 @@ struct ExclusiveRhoTo4Pi {
395395
// Run Numbers
396396
static int runNos[113];
397397
static int numRunNums;
398-
// static std::string eventLabels[12];
399-
// static std::string trackLabels[14];
400-
// static int numTrackCuts;
401-
// static int numEventCuts;
402398
// Derived Data
403399
Produces<aod::SignalData> sigFromData;
404400
Produces<aod::BkgroundData> bkgFromData;
@@ -438,7 +434,7 @@ struct ExclusiveRhoTo4Pi {
438434
Configurable<float> rhoMassMin{"rhoMassMin", 1, "Min Mass of rho"};
439435
Configurable<float> rhoMassMax{"rhoMassMax", 2.5, "Max Mass of rho"};
440436
// Axis Configurations
441-
ConfigurableAxis pTAxis{"pTAxis", {1000, 0, 2}, "Axis for pT histograms"};
437+
ConfigurableAxis pTAxis{"pTAxis", {1000, 0, 1}, "Axis for pT histograms"};
442438
ConfigurableAxis etaAxis{"etaAxis", {1000, -1.1, 1.1}, "Axis for Eta histograms"};
443439
ConfigurableAxis rapidityAxis{"rapidityAxis", {1000, -2.5, 2.5}, "Axis for Rapidity histograms"};
444440
ConfigurableAxis invMassAxis{"invMassAxis", {1000, 1, 2.5}, "Axis for Phi histograms"};
@@ -451,9 +447,11 @@ struct ExclusiveRhoTo4Pi {
451447
histosCounter.add("EventsCounts_vs_runNo", "Number of Selected 4-Pion Events per Run; Run Number; Number of Events", kTH2F, {{113, 0, 113}, {12, 0, 12}});
452448
histosCounter.add("TracksCounts_vs_runNo", "Number of Selected Tracks per Run; Run Number; Number of Tracks", kTH2F, {{113, 0, 113}, {14, 0, 14}});
453449
histosCounter.add("fourPionCounts_0c", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
450+
histosCounter.add("fourPionCounts_0c_within_mass", "Four Pion Counts within mass range; Run Number; Events", kTH1F, {{113, 0, 113}});
454451
histosCounter.add("fourPionCounts_0c_within_rap", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
455452
histosCounter.add("fourPionCounts_0c_selected", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
456453
histosCounter.add("fourPionCounts_n0c", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
454+
histosCounter.add("fourPionCounts_n0c_within_mass", "Four Pion Counts within mass range; Run Number; Events", kTH1F, {{113, 0, 113}});
457455
histosCounter.add("fourPionCounts_n0c_within_rap", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
458456
histosCounter.add("fourPionCounts_n0c_selected", "Four Pion Counts; Run Number; Events", kTH1F, {{113, 0, 113}});
459457
// QA plots: event selection
@@ -800,6 +798,10 @@ struct ExclusiveRhoTo4Pi {
800798

801799
histosCounter.fill(HIST("fourPionCounts_0c"), runIndex);
802800

801+
if (rhoMassMin < p1234.M() && p1234.M() < rhoMassMax) {
802+
histosCounter.fill(HIST("fourPionCounts_0c_within_mass"), runIndex);
803+
}
804+
803805
if (std::fabs(p1234.Rapidity()) < rhoRapCut) {
804806
histosData.fill(HIST("fourpion_pT_0_charge_within_rap"), p1234.Pt());
805807
histosData.fill(HIST("fourpion_eta_0_charge_within_rap"), p1234.Eta());
@@ -912,7 +914,9 @@ struct ExclusiveRhoTo4Pi {
912914
p1234.M());
913915

914916
histosCounter.fill(HIST("fourPionCounts_n0c"), runIndex);
915-
917+
if (rhoMassMin < p1234.M() && p1234.M() < rhoMassMax) {
918+
histosCounter.fill(HIST("fourPionCounts_n0c_within_mass"), runIndex);
919+
}
916920
if (std::fabs(p1234.Rapidity()) < rhoRapCut) {
917921
histosData.fill(HIST("fourpion_pT_non_0_charge_within_rap"), p1234.Pt());
918922
histosData.fill(HIST("fourpion_eta_non_0_charge_within_rap"), p1234.Eta());
@@ -1231,6 +1235,7 @@ struct ExclusiveRhoTo4Pi {
12311235
for (int i = 0; i < numTrackCuts; ++i) {
12321236
h2->GetYaxis()->SetBinLabel(i + 1, trackLabels[i].c_str());
12331237
}
1238+
12341239
} // end of setHistBinLabels function
12351240

12361241
}; // End of Struct exclusiveRhoTo4Pi
@@ -1251,22 +1256,6 @@ int ExclusiveRhoTo4Pi::runNos[113] = {
12511256

12521257
int ExclusiveRhoTo4Pi::numRunNums = 113;
12531258

1254-
// std::string ExclusiveRhoTo4Pi::eventLabels[12] = {
1255-
// "No Cuts","UPC mode","vtxITSTPC=1","sbp=1","itsROFb=1","tfb=1",
1256-
// "FT0A <= 50","FT0C <= 50","FV0A <= 50","ZDC <= 0",
1257-
// "n PV Contrib = 4","V_{z} < 10cm"
1258-
// };
1259-
1260-
// int ExclusiveRhoTo4Pi::numEventCuts = 20;
1261-
1262-
// std::string ExclusiveRhoTo4Pi::trackLabels[14] = {
1263-
// "No Cuts","isPVContributor","pT > 0.15 GeV/c","|#eta| < 0.9","DCA Z < 2 cm",
1264-
// "DCA XY cut","hasITS","hasTPC","itsChi2NCl < 36","tpcChi2NCl < 4",
1265-
// "tpcNClsFindable < 70","#pi tracks","#pi^{+} tracks","#pi^{-} tracks"
1266-
// };
1267-
//
1268-
// int ExclusiveRhoTo4Pi::numTrackCuts = 14;
1269-
12701259
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
12711260
{
12721261
return WorkflowSpec{

0 commit comments

Comments
 (0)