]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFhitT0.cxx
Corrected t0spread stored in AliTOFHeader object and changed log infos
[u/mrichter/AliRoot.git] / TOF / AliTOFhitT0.cxx
index 78d729a0a10959eeacec47204743b5b67c3c3475..8fb4fc9769bac460d3b01ea4647965c60ce79eb7 100644 (file)
 ClassImp(AliTOFhitT0)
 
 //____________________________________________________________________________
-AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & hit)
+  AliTOFhitT0::AliTOFhitT0():
+  AliHit(),
+  fSector(-1),
+  fPlate(-1),
+  fStrip(-1),
+  fPadx(-1),
+  fPadz(-1),
+  fPx(0),
+  fPy(0),
+  fPz(0),
+  fPmom(0),
+  fTof(0),
+  fLenTof(0),
+  fDx(0),
+  fDy(0),
+  fDz(0),
+  fIncA(0),
+  fEdep(0)
 {
+}
+//____________________________________________________________________________
+AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & 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),
+  fLenTof(hit.fLenTof),
+  fDx(hit.fDx),
+  fDy(hit.fDy),
+  fDz(hit.fDz),
+  fIncA(hit.fIncA),
+  fEdep(hit.fEdep){
    //
    // copy ctor for AliTOFhitT0 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;
-  fLenTof = hit.fLenTof;
-  fDx     = hit.fDx;
-  fDy     = hit.fDy;
-  fDz     = hit.fDz;
-  fIncA   = hit.fIncA;
-  fEdep   = hit.fEdep;
 
 }
  
 //______________________________________________________________________________
-AliTOFhitT0::AliTOFhitT0(Int_t shunt, Int_t track, Int_t *vol,
-                     Float_t *hits)
-:AliHit(shunt, track)
+AliTOFhitT0::AliTOFhitT0(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),
+  fLenTof(0),
+  fDx(0),
+  fDy(0),
+  fDz(0),
+  fIncA(0),
+  fEdep(0)
 {
 //
 // Constructor of hit object