Skip to content

Commit 1b7ce84

Browse files
committed
fix comments from vit
1 parent 0899aa2 commit 1b7ce84

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,8 @@ enum EventRejection {
113113
NEventRejection
114114
};
115115

116-
// upc event type, refer from PWGUD/Core/SGSelector.h
117-
enum EventTypeUpc {
118-
SingleGapA = 0,
119-
SingleGapC = 1,
120-
DoubleGap = 2,
121-
NEventTypes = 3
122-
};
123-
124116
o2::framework::AxisSpec axisEvents = {EventRejection::NEventRejection, -0.5f, +EventRejection::NEventRejection - 0.5f, ""};
125-
o2::framework::AxisSpec axisUPCEvents = {EventTypeUpc::NEventTypes, -0.5f, +EventTypeUpc::NEventTypes - 0.5f, ""};
117+
o2::framework::AxisSpec axisUpcEvents = { o2::aod::sgselector::DoubleGap + 1, -0.5f, +o2::aod::sgselector::DoubleGap + 0.5f, ""};
126118

127119
/// \brief Function to put labels on monitoring histogram
128120
/// \param hRejection monitoring histogram
@@ -198,7 +190,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
198190
static constexpr char NameHistCollisionsCentOcc[] = "hCollisionsCentOcc";
199191
static constexpr char NameHistUpCollisions[] = "hUpCollisions";
200192

201-
std::shared_ptr<TH1> hCollisions, hSelCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel, hUPCollisions;
193+
std::shared_ptr<TH1> hCollisions, hSelCollisionsCent, hPosZBeforeEvSel, hPosZAfterEvSel, hPosXAfterEvSel, hPosYAfterEvSel, hNumPvContributorsAfterSel, hUpCollisions;
202194
std::shared_ptr<TH2> hCollisionsCentOcc;
203195

204196
// util to retrieve the RCT info from CCDB
@@ -236,7 +228,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
236228
hPosYAfterEvSel = registry.add<TH1>(NameHistPosYAfterEvSel, "selected events;#it{y}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{200, -0.5, 0.5}}});
237229
hNumPvContributorsAfterSel = registry.add<TH1>(NameHistNumPvContributorsAfterSel, "selected events;#it{y}_{prim. vtx.} (cm);entries", {o2::framework::HistType::kTH1D, {{500, -0.5, 499.5}}});
238230
setEventRejectionLabels(hCollisions, softwareTrigger);
239-
hUPCollisions = registry.add<TH1>(NameHistUpCollisions, "HF upc counter;;# of upc events", {o2::framework::HistType::kTH1D, {axisUPCEvents}});
231+
hUpCollisions = registry.add<TH1>(NameHistUpCollisions, "HF upc counter;;# of upc events", {o2::framework::HistType::kTH1D, {axisUpcEvents}});
240232
const o2::framework::AxisSpec th2AxisCent{th2ConfigAxisCent, "Centrality"};
241233
const o2::framework::AxisSpec th2AxisOccupancy{th2ConfigAxisOccupancy, "Occupancy"};
242234
hCollisionsCentOcc = registry.add<TH2>(NameHistCollisionsCentOcc, "selected events;Centrality; Occupancy", {o2::framework::HistType::kTH2D, {th2AxisCent, th2AxisOccupancy}});
@@ -383,10 +375,10 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
383375
auto bcRange = udhelpers::compatibleBCs(collision, sgCuts.NDtcoll(), bcs, sgCuts.minNBCs());
384376
auto sgSelectionResult = sgSelector.IsSelected(sgCuts, collision, bcRange, bc);
385377
int upcEventType = sgSelectionResult.value;
386-
if (upcEventType > EventTypeUpc::DoubleGap) {
378+
if (upcEventType > o2::aod::sgselector::DoubleGap) {
387379
SETBIT(rejectionMaskWithUpc, EventRejection::UpcEventCut);
388380
} else {
389-
hUPCollisions->Fill(upcEventType);
381+
hUpCollisions->Fill(upcEventType);
390382
}
391383
}
392384

0 commit comments

Comments
 (0)