Skip to content
Merged
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
16 changes: 4 additions & 12 deletions PWGHF/HFC/TableProducer/producerCharmHadronsTrackFemtoDream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,18 @@ struct HfProducerCharmHadronsTrackFemtoDream {
trackRegistry.add("AnalysisQA/CutCounter", "; Bit; Counter", kTH1F, {{cutBits + 1, -0.5, cutBits + 0.5}});

// event QA histograms
constexpr int kEventTypes = PairSelected + 1;
std::string labels[kEventTypes];
constexpr int EventTypes = PairSelected + 1;
std::string labels[EventTypes];
labels[Event::All] = "All events";
labels[Event::RejEveSel] = "rejected by event selection";
labels[Event::RejNoTracksAndCharm] = "rejected by no tracks and charm";
labels[Event::TrackSelected] = "with tracks ";
labels[Event::CharmSelected] = "with charm hadrons ";
labels[Event::PairSelected] = "with pairs";

static const AxisSpec axisEvents = {kEventTypes, 0.5, kEventTypes + 0.5, ""};
static const AxisSpec axisEvents = {EventTypes, 0.5, EventTypes + 0.5, ""};
qaRegistry.add("hEventQA", "Events;;entries", HistType::kTH1F, {axisEvents});
for (int iBin = 0; iBin < kEventTypes; iBin++) {
for (int iBin = 0; iBin < EventTypes; iBin++) {
qaRegistry.get<TH1>(HIST("hEventQA"))->GetXaxis()->SetBinLabel(iBin + 1, labels[iBin].data());
}

Expand Down Expand Up @@ -613,14 +613,6 @@ struct HfProducerCharmHadronsTrackFemtoDream {
fillMcCollision(col);
}

// Filling candidate properties
if constexpr (Channel == DecayChannel::DplusToPiKPi || Channel == DecayChannel::LcToPKPi) {
rowCandCharm3Prong.reserve(sizeCand);
} else if constexpr (Channel == DecayChannel::D0ToPiK) {
rowCandCharm2Prong.reserve(sizeCand);
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) {
rowCandCharmDstar.reserve(sizeCand);
}
bool isTrackFilled = false;
bool isSelectedMlLcToPKPi = true;
bool isSelectedMlLcToPiKP = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,14 +727,6 @@ struct HfProducerCharmHadronsV0FemtoDream {
fillMcCollision(col);
}

// Filling candidate properties
if constexpr (Channel == DecayChannel::DplusToPiKPi || Channel == DecayChannel::LcToPKPi) {
rowCandCharm3Prong.reserve(sizeCand);
} else if constexpr (Channel == DecayChannel::D0ToPiK) {
rowCandCharm2Prong.reserve(sizeCand);
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) {
rowCandCharmDstar.reserve(sizeCand);
}
bool isV0Filled = false;
bool isSelectedMlLcToPKPi = true;
bool isSelectedMlLcToPiKP = true;
Expand Down
Loading