Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions PWGEM/PhotonMeson/DataModel/EventTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <Rtypes.h> // for BIT

#include <cstdint>
#include <string>
#include <vector>

namespace o2::aod
Expand Down Expand Up @@ -61,6 +62,23 @@ enum EventAcceptanceBits {
kSize
};

const std::vector<std::string> vecEventAccBitNames = {
"all",
"has MC coll",
"good zVtx",
"is FT0AND",
"No TFB",
"ITS ROFB",
"Same bunch Pileup",
"ZVtxFT0PV",
"No coll in time range",
"good track occi",
"Good FT0 occupancy",
"kTVXinEMC",
"Good centrality",
"Good RCT",
"Good Sel8"};

} // namespace pmevsel

namespace pmevent
Expand Down
4 changes: 4 additions & 0 deletions PWGEM/PhotonMeson/Tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,7 @@ o2physics_add_dpl_workflow(dilepton-effi-for-dalitz-skimmer
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(meson-signal-loss
SOURCES mesonSignalLoss.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
23 changes: 4 additions & 19 deletions PWGEM/PhotonMeson/Tasks/eventNormalizationTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,10 @@ struct EventNormalizationTask {
void init(InitContext& /*context*/)
{
// Names derived from EventAcceptance bits in EventTables.h
std::vector<std::string> vecLabelNames = {
"all",
"has MC coll",
"good zVtx",
"is FT0AND",
"No TFB",
"ITS ROFB",
"Same bunch Pileup",
"ZVtxFT0PV",
"No coll in time range",
"good track occi",
"Good FT0 occupancy",
"kTVXinEMC",
"Good centrality",
"Good RCT",
"Good Sel8"};
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);
for (size_t i = 0; i < vecLabelNames.size(); ++i) {
fRegistry.get<TH1>(HIST("EventNormalization/hEventCounter"))->GetXaxis()->SetBinLabel(i + 1, vecLabelNames[i].c_str());

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);
for (size_t i = 0; i < o2::aod::pmevsel::vecEventAccBitNames.size(); ++i) {
fRegistry.get<TH1>(HIST("EventNormalization/hEventCounter"))->GetXaxis()->SetBinLabel(i + 1, o2::aod::pmevsel::vecEventAccBitNames[i].c_str());
}
}

Expand Down
Loading
Loading