Skip to content

Commit 6519c4f

Browse files
author
jokonig
committed
[PWGEM] PhotonMeson: Add signal loss task for mesons
- First version of a signal loss task implemented taking into account the various event selection flags - First version of a multiplicity dependent estimate (still to be improved) - Event selection flags moved from event normalization task to the event tables to allow multiple tasks to access this information
1 parent a3f8cc7 commit 6519c4f

4 files changed

Lines changed: 459 additions & 19 deletions

File tree

‎PWGEM/PhotonMeson/DataModel/EventTables.h‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#include <cstdint>
3232
#include <vector>
33+
#include <string>
3334

3435
namespace o2::aod
3536
{
@@ -61,6 +62,23 @@ enum EventAcceptanceBits {
6162
kSize
6263
};
6364

65+
const std::vector<std::string> vecEventAccBitNames = {
66+
"all",
67+
"has MC coll",
68+
"good zVtx",
69+
"is FT0AND",
70+
"No TFB",
71+
"ITS ROFB",
72+
"Same bunch Pileup",
73+
"ZVtxFT0PV",
74+
"No coll in time range",
75+
"good track occi",
76+
"Good FT0 occupancy",
77+
"kTVXinEMC",
78+
"Good centrality",
79+
"Good RCT",
80+
"Good Sel8"};
81+
6482
} // namespace pmevsel
6583

6684
namespace pmevent

‎PWGEM/PhotonMeson/Tasks/CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@ o2physics_add_dpl_workflow(dilepton-effi-for-dalitz-skimmer
221221
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
222222
COMPONENT_NAME Analysis)
223223

224+
o2physics_add_dpl_workflow(meson-signal-loss
225+
SOURCES mesonSignalLoss.cxx
226+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
227+
COMPONENT_NAME Analysis)

‎PWGEM/PhotonMeson/Tasks/eventNormalizationTask.cxx‎

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,10 @@ struct EventNormalizationTask {
4343
void init(InitContext& /*context*/)
4444
{
4545
// Names derived from EventAcceptance bits in EventTables.h
46-
std::vector<std::string> vecLabelNames = {
47-
"all",
48-
"has MC coll",
49-
"good zVtx",
50-
"is FT0AND",
51-
"No TFB",
52-
"ITS ROFB",
53-
"Same bunch Pileup",
54-
"ZVtxFT0PV",
55-
"No coll in time range",
56-
"good track occi",
57-
"Good FT0 occupancy",
58-
"kTVXinEMC",
59-
"Good centrality",
60-
"Good RCT",
61-
"Good Sel8"};
62-
fRegistry.add("EventNormalization/hEventCounter", "Event Counter;category;#it{N}_{evt}", kTH1D, {{static_cast<int>(vecLabelNames.size()), -0.5, -0.5 + static_cast<int>(vecLabelNames.size())}}, false);
63-
for (size_t i = 0; i < vecLabelNames.size(); ++i) {
64-
fRegistry.get<TH1>(HIST("EventNormalization/hEventCounter"))->GetXaxis()->SetBinLabel(i + 1, vecLabelNames[i].c_str());
46+
47+
fRegistry.add("EventNormalization/hEventCounter", "Event Counter;category;#it{N}_{evt}", kTH1D, {{static_cast<int>(o2::aod::pmevsel::vecEventAccBitNames.size()), -0.5, -0.5 + static_cast<int>(o2::aod::pmevsel::vecEventAccBitNames.size())}}, false);
48+
for (size_t i = 0; i < o2::aod::pmevsel::vecEventAccBitNames.size(); ++i) {
49+
fRegistry.get<TH1>(HIST("EventNormalization/hEventCounter"))->GetXaxis()->SetBinLabel(i + 1, o2::aod::pmevsel::vecEventAccBitNames[i].c_str());
6550
}
6651
}
6752

0 commit comments

Comments
 (0)