@@ -623,7 +623,9 @@ 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 > settingEnableTriggerSelection{" settingEnableTriggerSelection" , false , " Enable Zorro event selection for the configured software triggers" };
627+ Configurable<std::string> settingSoftwareTriggerNames{" settingSoftwareTriggerNames" , " fHighFt0Mult" , " Software trigger names, separated by commas (OR selection)" };
628+ Configurable<std::string> settingBaseCCDBPathForTriggers{" settingBaseCCDBPathForTriggers" , " EventFiltering/Zorro/" , " CCDB path for Zorro trigger information" };
627629 } zorro;
628630
629631 struct : o2::framework::ConfigurableGroup {
@@ -1041,8 +1043,9 @@ struct HadNucleiFemto {
10411043 return ;
10421044 }
10431045 if constexpr (!isMC) {
1044- if (zorro.settingSkimmedProcessing ) {
1045- mZorro .initCCDB (mCcdb .service , bc.runNumber (), bc.timestamp (), zorroTriggerMask ());
1046+ if (useZorroSelection ()) {
1047+ mZorro .setBaseCCDBPath (zorro.settingBaseCCDBPathForTriggers .value );
1048+ mZorro .initCCDB (mCcdb .service , bc.runNumber (), bc.timestamp (), zorro.settingSoftwareTriggerNames .value );
10461049 mZorro .populateHistRegistry (mQaRegistry , bc.runNumber ());
10471050 }
10481051 }
@@ -1113,7 +1116,7 @@ struct HadNucleiFemto {
11131116 template <typename Tcollision>
11141117 bool passesZorroSelection (const Tcollision& collision)
11151118 {
1116- if (!zorro. settingSkimmedProcessing ) {
1119+ if (!useZorroSelection () ) {
11171120 return true ;
11181121 }
11191122 auto bc = collision.template bc_as <aod::BCsWithTimestamps>();
@@ -1132,7 +1135,7 @@ struct HadNucleiFemto {
11321135 mQaRegistry .fill (HIST (" hEvents" ), 1 );
11331136
11341137 if constexpr (!isMC) {
1135- if (zorro. settingSkimmedProcessing ) {
1138+ if (useZorroSelection () ) {
11361139 if (!passesZorroSelection (collision)) {
11371140 return false ;
11381141 }
@@ -1287,12 +1290,9 @@ struct HadNucleiFemto {
12871290 return species.settingNuPDGCode .value == He3PDG;
12881291 }
12891292
1290- const char * zorroTriggerMask () const
1293+ bool useZorroSelection () const
12911294 {
1292- if (useTritonNucleus ()) {
1293- return " fTritonFemto" ;
1294- }
1295- return useHelium3Nucleus () ? " fHe" : " fDe" ;
1295+ return zorro.settingEnableTriggerSelection .value ;
12961296 }
12971297
12981298 const char * nucleusBetheBlochLabel () const
0 commit comments