//____________________________________________________________________________
AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & hit):
AliHit(hit),
- 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){
+ 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):
+AliTOFhitT0& AliTOFhitT0::operator = (const AliTOFhitT0& hit) {
+
+ if (this == &hit)
+ return *this;
+
+ 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;
+ fTrack = hit.fTrack;
+ return *this;
+
+}
+//______________________________________________________________________________
+AliTOFhitT0::AliTOFhitT0(Int_t shunt, Int_t track, Int_t * const vol,
+ Float_t * const hits):
AliHit(shunt, track),
fSector(-1),
fPlate(-1),