Skip to content

Commit f266e84

Browse files
authored
Update dndetaMFTPbPb.cxx
1 parent 289f646 commit f266e84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,8 @@ struct DndetaMFTPbPb {
11131113
{
11141114
auto occ = getOccupancy(collision, eventCuts.occupancyEstimator);
11151115
float c = getRecoCent(collision);
1116+
auto bc = collision.template foundBC_as<CollBCs>();
1117+
double ir = rateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), "ZNC hadronic") * 1.e-3;
11161118

11171119
if constexpr (has_reco_cent<C>) {
11181120
registry.fill(HIST("Events/Centrality/Selection"), 1., c, occ);
@@ -1124,8 +1126,6 @@ struct DndetaMFTPbPb {
11241126
return;
11251127
}
11261128
if (eventCuts.cfgSelInteractionRate) {
1127-
auto bc = collision.template foundBC_as<CollBCs>();
1128-
double ir = rateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), "ZNC hadronic") * 1.e-3;
11291129
if (!isIRSelected(bc, true)) {
11301130
return;
11311131
}
@@ -1166,6 +1166,8 @@ struct DndetaMFTPbPb {
11661166
{
11671167
auto occ = getOccupancy(collision, eventCuts.occupancyEstimator);
11681168
float c = getRecoCent(collision);
1169+
auto bc = collision.template foundBC_as<CollBCs>();
1170+
double ir = rateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), "ZNC hadronic") * 1.e-3;
11691171

11701172
if constexpr (has_reco_cent<C>) {
11711173
registry.fill(HIST("Events/Centrality/Selection"), 1., c, occ);
@@ -1177,8 +1179,6 @@ struct DndetaMFTPbPb {
11771179
return;
11781180
}
11791181
if (eventCuts.cfgSelInteractionRate) {
1180-
auto bc = collision.template foundBC_as<CollBCs>();
1181-
double ir = rateFetcher.fetch(ccdb.service, bc.timestamp(), bc.runNumber(), "ZNC hadronic") * 1.e-3;
11821182
if (!isIRSelected(bc, true)) {
11831183
return;
11841184
}

0 commit comments

Comments
 (0)