//--------------------------------------------------------------------------//
AliESDPmdTrack::AliESDPmdTrack () :
TObject(),
- fDet(0),
fX(0),
fY(0),
fZ(0),
fCluADC(0),
+ fCluPID(0),
+ fDet(0),
fNcell(0),
- fCluPID(0)
+ fSmn(-1),
+ fTrackNo(-1),
+ fTrackPid(-1),
+ fClMatching(0),
+ fSigX(9999),
+ fSigY(9999)
{
// Default Constructor
}
//--------------------------------------------------------------------------//
AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack) :
TObject(PMDTrack),
- fDet(PMDTrack.fDet),
fX(PMDTrack.fX),
fY(PMDTrack.fY),
fZ(PMDTrack.fZ),
fCluADC(PMDTrack.fCluADC),
+ fCluPID(PMDTrack.fCluPID),
+ fDet(PMDTrack.fDet),
fNcell(PMDTrack.fNcell),
- fCluPID(PMDTrack.fCluPID)
+ fSmn(PMDTrack.fSmn),
+ fTrackNo(PMDTrack.fTrackNo),
+ fTrackPid(PMDTrack.fTrackPid),
+ fClMatching(PMDTrack.fClMatching),
+ fSigX(PMDTrack.fSigX),
+ fSigY(PMDTrack.fSigY)
{
// Copy Constructor
}
{
// Copy constructor
if(&PMDTrack == this) return *this;
- fDet = PMDTrack.fDet;
+ TObject::operator=(PMDTrack);
fX = PMDTrack.fX;
fY = PMDTrack.fY;
fZ = PMDTrack.fZ;
fCluADC = PMDTrack.fCluADC;
- fNcell = PMDTrack.fNcell;
fCluPID = PMDTrack.fCluPID;
+ fDet = PMDTrack.fDet;
+ fNcell = PMDTrack.fNcell;
+ fSmn = PMDTrack.fSmn;
+ fTrackNo= PMDTrack.fTrackNo;
+ fTrackPid = PMDTrack.fTrackPid;
+ fClMatching = PMDTrack.fClMatching;
+ fSigX = PMDTrack.fSigX;
+ fSigY = PMDTrack.fSigY;
return *this;
}
+
+void AliESDPmdTrack::Copy(TObject& obj) const {
+
+ // this overwrites the virtual TOBject::Copy()
+ // to allow run time copying without casting
+ // in AliESDEvent
+
+ if(this==&obj)return;
+ AliESDPmdTrack *robj = dynamic_cast<AliESDPmdTrack*>(&obj);
+ if(!robj)return; // not an aliesesdpmdtrack
+ *robj = *this;
+}