]>
Commit | Line | Data |
---|---|---|
0742d588 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
561b7b31 | 18 | #include "AliESDPmdTrack.h" |
19 | ||
0742d588 | 20 | // Event Data Summary Class |
21 | // For pmd tracks | |
22 | // This is part of the reconstructed | |
23 | // ESD events | |
24 | // for the PMD detector | |
25 | ||
561b7b31 | 26 | ClassImp(AliESDPmdTrack) |
27 | ||
90e48c0c | 28 | //--------------------------------------------------------------------------// |
29 | AliESDPmdTrack::AliESDPmdTrack () : | |
30 | TObject(), | |
55853e31 | 31 | fX(0), |
32 | fY(0), | |
33 | fZ(0), | |
90e48c0c | 34 | fCluADC(0), |
4f036e6e | 35 | fCluPID(0), |
36 | fDet(0), | |
e0b22b3e | 37 | fNcell(0), |
38 | fSmn(-1), | |
39 | fTrackNo(-1), | |
40 | fTrackPid(-1), | |
41 | fClMatching(0), | |
42 | fSigX(9999), | |
43 | fSigY(9999) | |
561b7b31 | 44 | { |
90e48c0c | 45 | // Default Constructor |
561b7b31 | 46 | } |
90e48c0c | 47 | |
48 | //--------------------------------------------------------------------------// | |
49 | AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack) : | |
50 | TObject(PMDTrack), | |
55853e31 | 51 | fX(PMDTrack.fX), |
52 | fY(PMDTrack.fY), | |
53 | fZ(PMDTrack.fZ), | |
90e48c0c | 54 | fCluADC(PMDTrack.fCluADC), |
4f036e6e | 55 | fCluPID(PMDTrack.fCluPID), |
56 | fDet(PMDTrack.fDet), | |
e0b22b3e | 57 | fNcell(PMDTrack.fNcell), |
58 | fSmn(PMDTrack.fSmn), | |
59 | fTrackNo(PMDTrack.fTrackNo), | |
60 | fTrackPid(PMDTrack.fTrackPid), | |
61 | fClMatching(PMDTrack.fClMatching), | |
62 | fSigX(PMDTrack.fSigX), | |
63 | fSigY(PMDTrack.fSigY) | |
90e48c0c | 64 | { |
65 | // Copy Constructor | |
66 | } | |
67 | ||
561b7b31 | 68 | //--------------------------------------------------------------------------// |
69 | AliESDPmdTrack &AliESDPmdTrack::operator=(const AliESDPmdTrack& PMDTrack) | |
70 | { | |
71 | // Copy constructor | |
72 | if(&PMDTrack == this) return *this; | |
4f036e6e | 73 | TObject::operator=(PMDTrack); |
55853e31 | 74 | fX = PMDTrack.fX; |
75 | fY = PMDTrack.fY; | |
76 | fZ = PMDTrack.fZ; | |
561b7b31 | 77 | fCluADC = PMDTrack.fCluADC; |
78 | fCluPID = PMDTrack.fCluPID; | |
4f036e6e | 79 | fDet = PMDTrack.fDet; |
80 | fNcell = PMDTrack.fNcell; | |
e0b22b3e | 81 | fSmn = PMDTrack.fSmn; |
82 | fTrackNo= PMDTrack.fTrackNo; | |
83 | fTrackPid = PMDTrack.fTrackPid; | |
84 | fClMatching = PMDTrack.fClMatching; | |
85 | fSigX = PMDTrack.fSigX; | |
86 | fSigY = PMDTrack.fSigY; | |
561b7b31 | 87 | return *this; |
88 | } | |
732a24fe | 89 | |
90 | void AliESDPmdTrack::Copy(TObject& obj) const { | |
91 | ||
92 | // this overwrites the virtual TOBject::Copy() | |
93 | // to allow run time copying without casting | |
94 | // in AliESDEvent | |
95 | ||
96 | if(this==&obj)return; | |
97 | AliESDPmdTrack *robj = dynamic_cast<AliESDPmdTrack*>(&obj); | |
98 | if(!robj)return; // not an aliesesdpmdtrack | |
99 | *robj = *this; | |
100 | } |