@@ -55,7 +55,7 @@ class BasicXYZVHit : public BaseHit
5555 BasicXYZVHit () = default ; // for ROOT IO
5656
5757 // constructor
58- BasicXYZVHit (T x, T y, T z, E time, V val, int trackid, short did)
58+ BasicXYZVHit (T x, T y, T z, E time, V val, int trackid, unsigned short did)
5959 : mPos (x, y, z), mTime (time), mHitValue (val), BaseHit(trackid), mDetectorID (did)
6060 {
6161 }
@@ -70,12 +70,12 @@ class BasicXYZVHit : public BaseHit
7070 // getting the time
7171 E GetTime () const { return mTime ; }
7272 // get detector + track information
73- short GetDetectorID () const { return mDetectorID ; }
73+ unsigned short GetDetectorID () const { return mDetectorID ; }
7474
7575 // modifiers
7676 void SetTime (E time) { mTime = time; }
7777 void SetHitValue (V val) { mHitValue = val; }
78- void SetDetectorID (short detID) { mDetectorID = detID; }
78+ void SetDetectorID (unsigned short detID) { mDetectorID = detID; }
7979 void SetX (T x) { mPos .SetX (x); }
8080 void SetY (T y) { mPos .SetY (y); }
8181 void SetZ (T z) { mPos .SetZ (z); }
@@ -87,7 +87,7 @@ class BasicXYZVHit : public BaseHit
8787 }
8888 void SetPos (math_utils::Point3D<T> const & p) { mPos = p; }
8989
90- ClassDefNV (BasicXYZVHit, 1 );
90+ ClassDefNV (BasicXYZVHit, 2 );
9191};
9292
9393// Class for a hit containing energy loss as hit value
0 commit comments