Skip to content

Commit b5768c9

Browse files
sawenzelktf
authored andcommitted
Use ClassDefOverride in the derived interaction samplers
This fixes the -Winconsistent-missing-override warnings in InteractionSampler.h. - FixedSkipBC_InteractionSampler and NonUniformMuInteractionSampler derive from InteractionSampler, which already has a ClassDef. - Their plain ClassDef produced override warnings for IsA, ShowMembers, Streamer and CheckTObjectHashConsistency. - Both now use ClassDefOverride. https://ali-ci.cern.ch/alice-build-logs/AliceO2Group/AliceO2/15843/ee5503a4c432ac109fab4860dde02f104c65e5a6/build_O2_gpu-test-slc10-x86/pretty.html
1 parent 42e7264 commit b5768c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎DataFormats/simulation/include/SimulationDataFormat/InteractionSampler.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class FixedSkipBC_InteractionSampler : public InteractionSampler
128128
private:
129129
int mEveryN; // the skip number ---> fills every N-th BC in the bunch filling scheme
130130
int mMultiplicity; // how many events to put if bc is filled
131-
ClassDef(FixedSkipBC_InteractionSampler, 1);
131+
ClassDefOverride(FixedSkipBC_InteractionSampler, 1);
132132
};
133133

134134
// A version of the interaction sampler which can sample according to non-uniform mu(bc) as
@@ -152,7 +152,7 @@ class NonUniformMuInteractionSampler : public InteractionSampler
152152
private:
153153
// non-uniformity
154154
std::vector<float> mBCIntensityScales;
155-
ClassDef(NonUniformMuInteractionSampler, 1);
155+
ClassDefOverride(NonUniformMuInteractionSampler, 1);
156156
};
157157

158158
} // namespace steer

0 commit comments

Comments
 (0)