+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
//_________________________________________________________________________
// TOF hit : member variables
// fTrack :
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
#include "AliTOFhit.h"
ClassImp(AliTOFhit)
+//____________________________________________________________________________
+ AliTOFhit::AliTOFhit():
+ AliHit(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
+{
+}
+
//____________________________________________________________________________
AliTOFhit::AliTOFhit(const AliTOFhit & hit)
-: AliHit(hit)
+ : AliHit(hit),
+ fSector(hit.fSector),
+ fPlate(hit.fPlate),
+ fStrip(hit.fStrip),
+ fPadx(hit.fPadx),
+ fPadz(hit.fPadz),
+ fPx(hit.fPx),
+ fPy(hit.fPy),
+ fPz(hit.fPz),
+ fPmom(hit.fPmom),
+ fTof(hit.fTof),
+ fDx(hit.fDx),
+ fDy(hit.fDy),
+ fDz(hit.fDz),
+ fIncA(hit.fIncA),
+ fEdep(hit.fEdep)
{
//
// copy ctor for AliTOFhit object
//
- fTrack = hit.fTrack;
- fX = hit.fX;
- fY = hit.fY;
- fZ = hit.fZ;
- fSector = hit.fSector;
- fPlate = hit.fPlate;
- fStrip = hit.fStrip;
- fPadx = hit.fPadx;
- fPadz = hit.fPadz;
- fPx = hit.fPx;
- fPy = hit.fPy;
- fPz = hit.fPz;
- fPmom = hit.fPmom;
- fTof = hit.fTof;
- fDx = hit.fDx;
- fDy = hit.fDy;
- fDz = hit.fDz;
- fIncA = hit.fIncA;
- fEdep = hit.fEdep;
-
+ fTrack = hit.fTrack;
}
//______________________________________________________________________________
-AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t *vol,
- Float_t *hits)
-:AliHit(shunt, track)
+AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t * const vol,
+ Float_t * const hits)
+ :AliHit(shunt, track),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
{
//
// Constructor of hit object