-
- fId = hit.fId ;
- fELOS = hit.fELOS ;
- fPrimary = hit.fPrimary ;
- fTrack = hit.fTrack ;
- fX = hit.fX;
- fY = hit.fY;
- fZ = hit.fZ;
- fPx = hit.fPx;
- fPy = hit.fPy;
- fPz = hit.fPz;
- fPe = hit.fPe;
- fIparent = hit.fIparent;
- fIenergy = hit.fIenergy;
- fTime = hit.fTime ;
+}
+//_____________________________________________________________________
+AliEMCALHit& AliEMCALHit::operator = (const AliEMCALHit &source)
+{ // assignment operator; use copy ctor
+ if (&source == this) return *this;
+
+ new (this) AliEMCALHit(source);
+ return *this;