Skip to content

Commit bcf6720

Browse files
committed
Fixed Configurable Grouping
1 parent cb031fb commit bcf6720

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎PWGLF/Tasks/Strangeness/v0ptinvmassplots.cxx‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ struct V0PtInvMassPlots {
104104
Configurable<float> itsMinHits{"itsMinHits", 1.0, "Minimum Hits of Daughter Tracks in the ITS"};
105105

106106
// Configurables switches for event selection
107-
struct EventSelectionConfig {
107+
struct EventSelectionConfig : ConfigurableGroup {
108+
std::string prefix = "eventSelections"; // JSON group name
108109
Configurable<bool> dosel8{"dosel8", true, "Enable sel8 event selection"};
109110
Configurable<bool> doNoTimeFrameBorder{"doNoTimeFrameBorder", true, "Enable NoTimeFrameBorder event selection"};
110111
Configurable<bool> doNoITSROFrameBorder{"doNoITSROFrameBorder", true, "Enable NoITSROFrameBorder event selection"};
@@ -118,14 +119,16 @@ struct V0PtInvMassPlots {
118119
};
119120

120121
// Configurables switches for v0 selection
121-
struct V0SelectionConfig {
122+
struct V0SelectionConfig : ConfigurableGroup {
123+
std::string prefix = "v0Selections"; // JSON group name
122124
Configurable<bool> doDaughterPseudorapidityCut{"doDaughterPseudorapidityCut", true, "Enable Daughter pseudorapidity v0 selection"};
123125
Configurable<bool> doisNotITSAfterburner{"doisNotITSAfterburner", true, "Enable Tracks do not come from Afterburner"};
124126
Configurable<bool> doitsMinHits{"doitsMinHits", true, "Enable ITS Minimum hits"};
125127
};
126128

127129
// Configurables switches for K0sh selection
128-
struct K0shSelectionConfig {
130+
struct K0shSelectionConfig : ConfigurableGroup {
131+
std::string prefix = "k0shSelections"; // JSON group name
129132
Configurable<bool> doK0shRapidityCut{"doK0shRapidityCut", true, "Enable rapidity K0sh selection"};
130133
Configurable<bool> dotruthK0sh{"dotruthK0sh", true, "Enable K0sh MC Matching"};
131134
Configurable<bool> doK0shTPCPID{"doK0shTPCPID", true, "Enable K0sh TPC PID"};
@@ -140,7 +143,8 @@ struct V0PtInvMassPlots {
140143
};
141144

142145
// Configurables switches for Lambda selection
143-
struct LambdaSelectionConfig {
146+
struct LambdaSelectionConfig : ConfigurableGroup {
147+
std::string prefix = "lambdaSelections"; // JSON group name
144148
Configurable<bool> doLambdaRapidityCut{"doLambdaRapidityCut", true, "Enable rapidity Lambda selection"};
145149
Configurable<bool> dotruthLambda{"dotruthLambda", true, "Enable Lambda MC Matching"};
146150
Configurable<bool> doLambdaTPCPID{"doLambdaTPCPID", true, "Enable Lambda TPC PID"};
@@ -155,7 +159,8 @@ struct V0PtInvMassPlots {
155159
};
156160

157161
// Configurables switches for AntiLambda selection
158-
struct AntiLambdaSelectionConfig {
162+
struct AntiLambdaSelectionConfig : ConfigurableGroup {
163+
std::string prefix = "antilambdaSelections"; // JSON group name
159164
Configurable<bool> doAntiLambdaRapidityCut{"doAntiLambdaRapidityCut", true, "Enable rapidity AntiLambda selection"};
160165
Configurable<bool> dotruthAntiLambda{"dotruthAntiLambda", true, "Enable AntiLambda MC Matching"};
161166
Configurable<bool> doAntilambdaTPCPID{"doAntilambdaTPCPID", true, "Enable AntiLambda TPC PID"};

0 commit comments

Comments
 (0)