Skip to content

Commit 46de7dc

Browse files
authored
Update HadNucleiFemto.cxx
1 parent 42b110b commit 46de7dc

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

‎PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ struct HadNucleiFemto {
623623
// cppcheck-suppress unusedStructMember
624624
std::string prefix{"zorro"};
625625
// Zorro
626-
Configurable<bool> settingSkimmedProcessing{"settingSkimmedProcessing", false, "Skimmed dataset processing"};
626+
Configurable<bool> settingSkimmedProcessing{"settingSkimmedProcessing", false, "Use the pair-specific fHe or fTritonFemto Zorro trigger"};
627+
Configurable<bool> settingUseHighFt0MultTrigger{"settingUseHighFt0MultTrigger", false, "Select events with the fHighFt0Mult Zorro trigger instead of the pair-specific trigger"};
627628
} zorro;
628629

629630
struct : o2::framework::ConfigurableGroup {
@@ -1041,7 +1042,7 @@ struct HadNucleiFemto {
10411042
return;
10421043
}
10431044
if constexpr (!isMC) {
1044-
if (zorro.settingSkimmedProcessing) {
1045+
if (useZorroSelection()) {
10451046
mZorro.initCCDB(mCcdb.service, bc.runNumber(), bc.timestamp(), zorroTriggerMask());
10461047
mZorro.populateHistRegistry(mQaRegistry, bc.runNumber());
10471048
}
@@ -1113,7 +1114,7 @@ struct HadNucleiFemto {
11131114
template <typename Tcollision>
11141115
bool passesZorroSelection(const Tcollision& collision)
11151116
{
1116-
if (!zorro.settingSkimmedProcessing) {
1117+
if (!useZorroSelection()) {
11171118
return true;
11181119
}
11191120
auto bc = collision.template bc_as<aod::BCsWithTimestamps>();
@@ -1132,7 +1133,7 @@ struct HadNucleiFemto {
11321133
mQaRegistry.fill(HIST("hEvents"), 1);
11331134

11341135
if constexpr (!isMC) {
1135-
if (zorro.settingSkimmedProcessing) {
1136+
if (useZorroSelection()) {
11361137
if (!passesZorroSelection(collision)) {
11371138
return false;
11381139
}
@@ -1289,10 +1290,19 @@ struct HadNucleiFemto {
12891290

12901291
const char* zorroTriggerMask() const
12911292
{
1293+
if (zorro.settingUseHighFt0MultTrigger.value) {
1294+
return "fHighFt0Mult";
1295+
}
12921296
if (useTritonNucleus()) {
12931297
return "fTritonFemto";
12941298
}
1295-
return useHelium3Nucleus() ? "fHe" : "fDe";
1299+
return "fHe";
1300+
}
1301+
1302+
bool useZorroSelection() const
1303+
{
1304+
return zorro.settingUseHighFt0MultTrigger.value ||
1305+
(zorro.settingSkimmedProcessing.value && (useHelium3Nucleus() || useTritonNucleus()));
12961306
}
12971307

12981308
const char* nucleusBetheBlochLabel() const

0 commit comments

Comments
 (0)