Skip to content

Commit 51ee8df

Browse files
committed
Suppress cppcheck false positives for configurable group prefixes
1 parent d31df40 commit 51ee8df

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

PWGLF/TableProducer/Nuspex/piHypertritonFemto.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,22 @@ struct PiHypertritonFemto {
9696
Produces<aod::PiHypertritonFemtoTableMC> mOutputMCTable;
9797

9898
struct : o2::framework::ConfigurableGroup {
99+
// cppcheck-suppress unusedStructMember
99100
std::string prefix{"eventMixing"};
100101
Configurable<float> settingCutVertex{"settingCutVertex", 10.0f, "Accepted z-vertex range"};
101102
Configurable<int> settingNoMixedEvents{"settingNoMixedEvents", 5, "Number of mixed events per event"};
102103
} eventMixing;
103104

104105
struct : o2::framework::ConfigurableGroup {
106+
// cppcheck-suppress unusedStructMember
105107
std::string prefix{"eventSelection"};
106108
Configurable<bool> disableITSROFCut{"disableITSROFCut", false, "Disable the ITS readout-frame border cut for data, as in hyperRecoTask"};
107109
Configurable<bool> cfgEvSelkNoSameBunchPileup{"cfgEvSelkNoSameBunchPileup", false, "Reject collisions sharing the same found-by-T0 bunch crossing"};
108110
Configurable<bool> cfgEvSelkIsGoodZvtxFT0vsPV{"cfgEvSelkIsGoodZvtxFT0vsPV", false, "Require consistent primary vertex z positions from tracking and FT0 timing"};
109111
} eventSelection;
110112

111113
struct : o2::framework::ConfigurableGroup {
114+
// cppcheck-suppress unusedStructMember
112115
std::string prefix{"pionTrack"};
113116
Configurable<float> settingCutEta{"settingCutEta", 0.8f, "Maximum pion track |eta|"};
114117
Configurable<float> settingPtMin{"settingPtMin", 0.14f, "Minimum pion pT"};
@@ -124,6 +127,7 @@ struct PiHypertritonFemto {
124127
} pionTrack;
125128

126129
struct : o2::framework::ConfigurableGroup {
130+
// cppcheck-suppress unusedStructMember
127131
std::string prefix{"pionPid"};
128132
Configurable<float> settingMomCombMin{"settingMomCombMin", 0.5f, "Minimum momentum to use combined TPC+TOF pion PID"};
129133
Configurable<float> settingTPCNsigMax{"settingTPCNsigMax", 3.0f, "Maximum pion TPC n-sigma below the TOF threshold"};
@@ -132,42 +136,49 @@ struct PiHypertritonFemto {
132136
} pionPid;
133137

134138
struct : o2::framework::ConfigurableGroup {
139+
// cppcheck-suppress unusedStructMember
135140
std::string prefix{"CPR"};
136141
Configurable<float> settingClosePairDeltaPhiMax{"settingClosePairDeltaPhiMax", 0.01f, "Average delta-phi-star ellipse semiaxis for the offline close-pair flag"};
137142
Configurable<float> settingClosePairDeltaEtaMax{"settingClosePairDeltaEtaMax", 0.01f, "Delta-eta ellipse semiaxis for the offline close-pair flag"};
138143
Configurable<float> settingClosePairDistanceMax{"settingClosePairDistanceMax", 8.f, "Average 3D TPC separation below which a same-sign daughter pair is tagged (cm)"};
139144
} CPR;
140145

141146
struct : o2::framework::ConfigurableGroup {
147+
// cppcheck-suppress unusedStructMember
142148
std::string prefix{"mc"};
143149
Configurable<bool> settingRequireSel8{"settingRequireSel8", false, "Additionally require sel8 for reconstructed MC; TVX and timeframe border cuts always apply"};
144150
Configurable<bool> settingRequireRecoMCCollisionMatch{"settingRequireRecoMCCollisionMatch", true, "Require reconstructed collision MC labels"};
145151
} mc;
146152

147153
struct : o2::framework::ConfigurableGroup {
154+
// cppcheck-suppress unusedStructMember
148155
std::string prefix{"hypertriton"};
149156
Configurable<float> settingHypMassMin{"settingHypMassMin", 2.94f, "Minimum hypertriton invariant mass"};
150157
Configurable<float> settingHypMassMax{"settingHypMassMax", 3.10f, "Maximum hypertriton invariant mass"};
151158
} hypertriton;
152159

153160
struct : o2::framework::ConfigurableGroup {
161+
// cppcheck-suppress unusedStructMember
154162
std::string prefix{"output"};
155163
Configurable<bool> settingFillTable{"settingFillTable", false, "Enable output table filling"};
156164
} output;
157165

158166
struct : o2::framework::ConfigurableGroup {
167+
// cppcheck-suppress unusedStructMember
159168
std::string prefix{"hadHyper"};
160169
Configurable<bool> enableMixing{"enableMixing", true, "Build mixed-event pion-hypertriton pairs"};
161170
Configurable<float> maxOutputKstar{"maxOutputKstar", -1.f, "Maximum pair k* (GeV/c); negative saves all selected pairs"};
162171
} hadHyper;
163172

164173
struct : o2::framework::ConfigurableGroup {
174+
// cppcheck-suppress unusedStructMember
165175
std::string prefix{"zorro"};
166176
Configurable<bool> settingSkimmedProcessing{"settingSkimmedProcessing", false, "Skimmed dataset processing"};
167177
Configurable<std::string> settingTriggerMask{"settingTriggerMask", "fPiHypertritonFemto", "Zorro trigger mask"};
168178
} zorro;
169179

170180
struct : o2::framework::ConfigurableGroup {
181+
// cppcheck-suppress unusedStructMember
171182
std::string prefix{"ccdb"};
172183
Configurable<std::string> settingCcdburl{"settingCcdburl", "http://alice-ccdb.cern.ch", "URL of the CCDB repository used by Zorro and the magnetic field"};
173184
Configurable<std::string> settingGrpmagPath{"settingGrpmagPath", "GLO/Config/GRPMagField", "CCDB path of the Run 3 magnetic field"};

0 commit comments

Comments
 (0)