You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc12526
Browse filesBrowse the repository at this point in the historyBrowse files
Configurable<bool> cfgFillEfficiency{"fillEfficiency", false, "Fill MC tracking efficiency; ignored by data processes"};
138
138
Configurable<bool> cfgFillAcceptance{"fillAcceptance", false, "Fill GFW acceptance weights instead of running the reconstructed analysis"};
139
+
Configurable<bool> cfgUseRun2EventSelectionWithoutZdc{"cfgUseRun2EventSelectionWithoutZdc", false, "For Run 2 data, require kINT7 and every CCDB-enabled barrel sel7 criterion except the ZDC beam-beam criteria; retain the ZDC beam-gas vetoes"};
139
140
140
141
Configurable<float> cfgSpectatorEnergyPerNucleon{"cfgSpectatorEnergyPerNucleon", 1.f, "ZDC energy corresponding to one spectator nucleon"};
141
142
Configurable<float> cfgMaxTotalSpectators{"cfgMaxTotalSpectators", 500.f, "Maximum accepted spectator count from ZNA+ZNC+ZPA+ZPC"};
@@ -145,8 +146,10 @@ struct EnergyFlowGfw {
145
146
Configurable<float> cfgZdcResponseZPC{"cfgZdcResponseZPC", 1.f, "ZPC efficiency/acceptance response factor alpha; corrected energy is E_ZPC/alpha_ZPC"};
146
147
Configurable<float> cfgZdcMaxAbsTimeForQa{"cfgZdcMaxAbsTimeForQa", 100.f, "Maximum absolute ZDC time considered available in QA; excludes missing-time sentinels"};
147
148
148
-
Configurable<std::string> efficiencyPath{"efficiencyPath", "", "CCDB path or local ROOT file containing a 4D efficiency-correction THn"};
149
-
Configurable<bool> efficiencyFromLocalFile{"efficiencyFromLocalFile", false, "Load efficiencyPath from a local ROOT file"};
149
+
struct : ConfigurableGroup {
150
+
Configurable<std::string> cfgEfficiencyPath{"cfgEfficiencyPath", "", "CCDB path to efficiency object"};
151
+
Configurable<bool> cfgUsePIDEfficiencies{"cfgUsePIDEfficiencies", false, "Use separate charged, pion, kaon, and proton efficiencies"};
152
+
} cfgEfficiency;
150
153
Configurable<std::string> acceptancePath{"acceptancePath", "", "CCDB path to GFW acceptance weights"};
151
154
Configurable<bool> acceptanceRunByRun{"acceptanceRunByRun", false, "Load acceptance weights from the RunByRun subdirectory"};
152
155
@@ -197,8 +200,9 @@ struct EnergyFlowGfw {
197
200
std::vector<bool> zeroHarmonicConfigs;
198
201
int gfwMask = 0;
199
202
200
-
std::unique_ptr<THn> localEfficiency;
201
-
THn* efficiency = nullptr;
203
+
TH1* efficiency = nullptr;
204
+
std::vector<TH1*> pidEfficiencies;
205
+
bool efficiencyLoaded = false;
202
206
GFWWeights* acceptance = nullptr;
203
207
int acceptanceRunNumber = -1;
204
208
@@ -601,39 +605,70 @@ struct EnergyFlowGfw {
601
605
returntrue;
602
606
}
603
607
604
-
voidloadEfficiency(uint64_t timestamp)
608
+
staticboolisZdcBeamBeamSelectionFlag(int flag)
605
609
{
606
-
if (efficiencyPath.value.empty()) {
607
-
efficiency = nullptr;
608
-
return;
610
+
return flag == aod::evsel::kIsBBZNA || flag == aod::evsel::kIsBBZNC || flag == aod::evsel::kIsBBZAC;
0 commit comments