Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWGMMLumi: Corrections on access of histograms #7952

Closed
wants to merge 19 commits into from
Closed
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
22 changes: 18 additions & 4 deletions PWGMM/Lumi/Tasks/lumiStability.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,24 @@ struct lumiStabilityTask {
// create orbit-axis histograms on the fly with binning based on info from GRP if GRP is available
// otherwise default minOrbit and nOrbits will be used
const AxisSpec axisOrbits{static_cast<int>(nOrbits / nOrbitsPerTF), 0., static_cast<double>(nOrbits), ""};
histos.add("hOrbitFDDVertexCoinc", "FDD Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histos.add("hOrbitFDDVertex", "FDD Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histos.add("hOrbitFT0vertex", "FT0 Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histos.add("hOrbitFV0Central", "FV0 Orbits; Orbit; Entries", kTH1F, {axisOrbits});
LOGP(info, "Creando histogramas para runNumber={}", runNumber);
std::set<std::string> histosCreated;
if (histosCreated.find("hOrbitFDDVertexCoinc") == histosCreated.end()) {
histos.add("hOrbitFDDVertexCoinc", "FDD Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histosCreated.insert("hOrbitFDDVertexCoinc");
}
if (histosCreated.find("hOrbitFDDVertex") == histosCreated.end()) {
histos.add("hOrbitFDDVertex", "FDD Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histosCreated.insert("hOrbitFDDVertex");
}
if (histosCreated.find("hOrbitFT0vertex") == histosCreated.end()) {
histos.add("hOrbitFT0vertex", "FT0 Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histosCreated.insert("hOrbitFT0vertex");
}
if (histosCreated.find("hOrbitFV0Central") == histosCreated.end()) {
histos.add("hOrbitFV0Central", "FV0 Orbits; Orbit; Entries", kTH1F, {axisOrbits});
histosCreated.insert("hOrbitFV0Central");
}
}

for (auto const& fdd : fdds) {
Expand Down
Loading