11/* *******************************************************************************
2- * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+ * Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33 * *
44 * This software is distributed under the terms of the *
55 * GNU Lesser General Public Licence (LGPL) version 3, *
@@ -31,27 +31,27 @@ class Pixel : public FairDetector
3131 Pixel ();
3232
3333 /* * destructor */
34- virtual ~Pixel ();
34+ ~Pixel () override ;
3535
3636 /* * Initialization of the detector is done here */
37- virtual void Initialize ();
37+ void Initialize () override ;
3838
3939 /* * this method is called for each step during simulation
4040 * (see FairMCApplication::Stepping())
4141 */
42- virtual Bool_t ProcessHits (FairVolume* v = 0 );
42+ Bool_t ProcessHits (FairVolume* v = 0 ) override ;
4343
4444 /* * Registers the produced collections in FAIRRootManager. */
45- virtual void Register ();
45+ void Register () override ;
4646
4747 /* * Gets the produced collections */
48- virtual TClonesArray* GetCollection (Int_t iColl) const ;
48+ TClonesArray* GetCollection (Int_t iColl) const override ;
4949
5050 /* * has to be called after each event to reset the containers */
51- virtual void Reset ();
51+ void Reset () override ;
5252
5353 /* * Create the detector geometry */
54- void ConstructGeometry ();
54+ void ConstructGeometry () override ;
5555
5656 /* * This method is an example of how to add your own point
5757 * of type PixelPoint to the clones array
@@ -65,17 +65,17 @@ class Pixel : public FairDetector
6565
6666 // virtual void CopyClones( TClonesArray* cl1, TClonesArray* cl2 ,
6767 // Int_t offset) {;}
68- virtual void SetSpecialPhysicsCuts () { ; }
69- virtual void EndOfEvent ();
70- virtual void FinishPrimary () { ; }
71- virtual void FinishRun () { ; }
72- virtual void BeginPrimary () { ; }
73- virtual void PostTrack () { ; }
74- virtual void PreTrack () { ; }
75- virtual void BeginEvent () { ; }
76-
77- virtual Bool_t IsSensitive (const std::string& name);
78- virtual FairModule* CloneModule () const ;
68+ void SetSpecialPhysicsCuts () override { ; }
69+ void EndOfEvent () override ;
70+ void FinishPrimary () override { ; }
71+ void FinishRun () override { ; }
72+ void BeginPrimary () override { ; }
73+ void PostTrack () override { ; }
74+ void PreTrack () override { ; }
75+ void BeginEvent () override { ; }
76+
77+ Bool_t IsSensitive (const std::string& name) override ;
78+ FairModule* CloneModule () const override ;
7979
8080 private:
8181 /* * Track information to be stored until the track leaves the
@@ -96,7 +96,7 @@ class Pixel : public FairDetector
9696 Pixel (const Pixel&);
9797 Pixel& operator =(const Pixel&);
9898
99- ClassDef (Pixel, 1 );
99+ ClassDefOverride (Pixel, 1 );
100100};
101101
102102#endif // PIXEL_H
0 commit comments