Browse Source

Fixed Clear() function - it is no longer virtual since it is called in the class destructor

PeterParfenov 2 years ago
parent
commit
194d4aeaba
3 changed files with 3 additions and 3 deletions
  1. 1 1
      include/PicoDstBaseTrack.h
  2. 1 1
      include/PicoDstMCTrack.h
  3. 1 1
      include/PicoDstRecoTrack.h

+ 1 - 1
include/PicoDstBaseTrack.h

@@ -14,7 +14,7 @@ public:
   PicoDstBaseTrack();
   virtual ~PicoDstBaseTrack();
 
-  virtual void Clear(Option_t *option = "") { TObject::Clear(option); fMom.SetXYZ(0,0,0); fDCA.SetXYZ(0,0,0); }
+  void Clear(Option_t *option = "") { TObject::Clear(option); fMom.SetXYZ(0,0,0); fDCA.SetXYZ(0,0,0); }
 
   // Setters
   virtual void SetPxPyPz(Float_t _px, Float_t _py, Float_t _pz) { fMom.SetXYZ(_px,_py,_pz); }

+ 1 - 1
include/PicoDstMCTrack.h

@@ -15,7 +15,7 @@ public:
   PicoDstMCTrack();
   virtual ~PicoDstMCTrack();
 
-  virtual void Clear(Option_t *option = "");
+  void Clear(Option_t *option = "");
 
   // Setters
   virtual void SetInitialId(Int_t _a) { fInitialId = _a; }

+ 1 - 1
include/PicoDstRecoTrack.h

@@ -22,7 +22,7 @@ public:
   PicoDstRecoTrack();
   virtual ~PicoDstRecoTrack();
 
-  virtual void Clear(Option_t *option = "");
+  void Clear(Option_t *option = "");
 
   // Setters
   virtual void SetInitialMcId(Int_t _a) { fInitialId = _a; }