1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliESDPmdTrack.h"
20 // Event Data Summary Class
22 // This is part of the reconstructed
24 // for the PMD detector
26 ClassImp(AliESDPmdTrack)
28 //--------------------------------------------------------------------------//
29 AliESDPmdTrack::AliESDPmdTrack () :
45 // Default Constructor
48 //--------------------------------------------------------------------------//
49 AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack) :
54 fCluADC(PMDTrack.fCluADC),
55 fCluPID(PMDTrack.fCluPID),
57 fNcell(PMDTrack.fNcell),
59 fTrackNo(PMDTrack.fTrackNo),
60 fTrackPid(PMDTrack.fTrackPid),
61 fClMatching(PMDTrack.fClMatching),
62 fSigX(PMDTrack.fSigX),
68 //--------------------------------------------------------------------------//
69 AliESDPmdTrack &AliESDPmdTrack::operator=(const AliESDPmdTrack& PMDTrack)
72 if(&PMDTrack == this) return *this;
73 TObject::operator=(PMDTrack);
77 fCluADC = PMDTrack.fCluADC;
78 fCluPID = PMDTrack.fCluPID;
80 fNcell = PMDTrack.fNcell;
82 fTrackNo= PMDTrack.fTrackNo;
83 fTrackPid = PMDTrack.fTrackPid;
84 fClMatching = PMDTrack.fClMatching;
85 fSigX = PMDTrack.fSigX;
86 fSigY = PMDTrack.fSigY;
90 void AliESDPmdTrack::Copy(TObject& obj) const {
92 // this overwrites the virtual TOBject::Copy()
93 // to allow run time copying without casting
97 AliESDPmdTrack *robj = dynamic_cast<AliESDPmdTrack*>(&obj);
98 if(!robj)return; // not an aliesesdpmdtrack