Skip to content

Commit cde8f6f

Browse files
kegangxiongkegangxiong
authored andcommitted
Fix the struct bug
1 parent 10c70ff commit cde8f6f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

PWGCF/Flow/Tasks/flowZdcEnergy.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ using namespace o2::framework::expressions;
4646

4747
struct flowZdcEnergy {
4848

49-
struct : ConfigurableGroup{
50-
O2_DEFINE_CONFIGURABLE(cfgVtxZ, float, 10.f, "Accepted z-vertex range")} evsel;
51-
49+
O2_DEFINE_CONFIGURABLE(cfgVtxZ, float, 10.f, "Event cut: accepted z-vertex range")
5250
O2_DEFINE_CONFIGURABLE(cfgEtaMax, float, 0.8f, "Maximum track #eta")
5351
O2_DEFINE_CONFIGURABLE(cfgPtMin, float, 0.2f, "Minimum track #P_{t}")
5452
O2_DEFINE_CONFIGURABLE(cfgPtMax, float, 10.0f, "Maximum track #P_{t}")
@@ -155,7 +153,7 @@ struct flowZdcEnergy {
155153
return false;
156154
}
157155
registry.fill(HIST("QA/hEventCount"), kSeln);
158-
if (std::abs(collision.posZ()) > evsel.cfgVtxZ) {
156+
if (std::abs(collision.posZ()) > cfgVtxZ) {
159157
return false;
160158
}
161159
registry.fill(HIST("QA/hEventCount"), kZvtx);
@@ -171,7 +169,7 @@ struct flowZdcEnergy {
171169
return false;
172170
}
173171
registry.fill(HIST("QA/hEventCount"), kSeln);
174-
if (std::abs(collision.posZ()) > evsel.cfgVtxZ) {
172+
if (std::abs(collision.posZ()) > cfgVtxZ) {
175173
return false;
176174
}
177175
registry.fill(HIST("QA/hEventCount"), kZvtx);

0 commit comments

Comments
 (0)