Skip to content

Commit

Permalink
fix name histo
Browse files Browse the repository at this point in the history
  • Loading branch information
Luigi Dello Stritto committed Jul 18, 2024
1 parent 5c8fc2c commit 77bc68d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PWGHF/Utils/utilsEvSelHf.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {

// histogram names
static constexpr char nameHistCollisions[] = "hCollisions";
static constexpr char nameHistCollisionsCent[] = "hCollisionsCent";
static constexpr char nameHistSelCollisionsCent[] = "hSelCollisionsCent";
static constexpr char nameHistPosZBeforeEvSel[] = "hPosZBeforeEvSel";
static constexpr char nameHistPosZAfterEvSel[] = "hPosZAfterEvSel";
static constexpr char nameHistPosXAfterEvSel[] = "hPosXAfterEvSel";
static constexpr char nameHistPosYAfterEvSel[] = "hPosYAfterEvSel";
static constexpr char nameHistNumPvContributorsAfterSel[] = "hNumPvContributorsAfterSel";

std::shared_ptr<TH1> hCollisions, hCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel;
std::shared_ptr<TH1> hCollisions, hSelCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel;

// util to retrieve trigger mask in case of software triggers
Zorro zorro;
Expand All @@ -112,7 +112,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
void addHistograms(o2::framework::HistogramRegistry& registry)
{
hCollisions = registry.add<TH1>(nameHistCollisions, "HF event counter;;# of accepted collisions", {o2::framework::HistType::kTH1D, {axisEvents}});
hCollisionsCent = registry.add<TH1>(nameHistCollisionsCent, "HF event counter;T0M;# of accepted collisions", {o2::framework::HistType::kTH1D, {{100, 0., 100.}}});
hSelCollisionsCent = registry.add<TH1>(nameHistSelCollisionsCent, "HF event counter;T0M;# of accepted collisions", {o2::framework::HistType::kTH1D, {{100, 0., 100.}}});
hPosZBeforeEvSel = registry.add<TH1>(nameHistPosZBeforeEvSel, "all events;#it{z}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{400, -20., 20.}}});
hPosZAfterEvSel = registry.add<TH1>(nameHistPosZAfterEvSel, "selected events;#it{z}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{400, -20., 20.}}});
hPosXAfterEvSel = registry.add<TH1>(nameHistPosXAfterEvSel, "selected events;#it{x}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{200, -0.5, 0.5}}});
Expand Down Expand Up @@ -239,7 +239,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
hPosYAfterEvSel->Fill(collision.posY());
hPosZAfterEvSel->Fill(posZ);
hNumPvContributorsAfterSel->Fill(collision.numContrib());
hCollisionsCent->Fill(centrality);
hSelCollisionsCent->Fill(centrality);
}
};

Expand Down

0 comments on commit 77bc68d

Please sign in to comment.