Line data Source code
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 :
18 : #include "AliESDPmdTrack.h"
19 :
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 :
26 172 : ClassImp(AliESDPmdTrack)
27 :
28 : //--------------------------------------------------------------------------//
29 : AliESDPmdTrack::AliESDPmdTrack () :
30 396 : TObject(),
31 396 : fX(0),
32 396 : fY(0),
33 396 : fZ(0),
34 396 : fCluADC(0),
35 396 : fCluPID(0),
36 396 : fDet(0),
37 396 : fNcell(0),
38 396 : fSmn(-1),
39 396 : fTrackNo(-1),
40 396 : fTrackPid(-1),
41 396 : fClMatching(0),
42 396 : fSigX(9999),
43 396 : fSigY(9999)
44 1980 : {
45 : // Default Constructor
46 792 : }
47 :
48 : //--------------------------------------------------------------------------//
49 : AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack) :
50 172 : TObject(PMDTrack),
51 172 : fX(PMDTrack.fX),
52 172 : fY(PMDTrack.fY),
53 172 : fZ(PMDTrack.fZ),
54 172 : fCluADC(PMDTrack.fCluADC),
55 172 : fCluPID(PMDTrack.fCluPID),
56 172 : fDet(PMDTrack.fDet),
57 172 : fNcell(PMDTrack.fNcell),
58 172 : fSmn(PMDTrack.fSmn),
59 172 : fTrackNo(PMDTrack.fTrackNo),
60 172 : fTrackPid(PMDTrack.fTrackPid),
61 172 : fClMatching(PMDTrack.fClMatching),
62 172 : fSigX(PMDTrack.fSigX),
63 172 : fSigY(PMDTrack.fSigY)
64 860 : {
65 : // Copy Constructor
66 344 : }
67 :
68 : //--------------------------------------------------------------------------//
69 : AliESDPmdTrack &AliESDPmdTrack::operator=(const AliESDPmdTrack& PMDTrack)
70 : {
71 : // Copy constructor
72 0 : if(&PMDTrack == this) return *this;
73 0 : TObject::operator=(PMDTrack);
74 0 : fX = PMDTrack.fX;
75 0 : fY = PMDTrack.fY;
76 0 : fZ = PMDTrack.fZ;
77 0 : fCluADC = PMDTrack.fCluADC;
78 0 : fCluPID = PMDTrack.fCluPID;
79 0 : fDet = PMDTrack.fDet;
80 0 : fNcell = PMDTrack.fNcell;
81 0 : fSmn = PMDTrack.fSmn;
82 0 : fTrackNo= PMDTrack.fTrackNo;
83 0 : fTrackPid = PMDTrack.fTrackPid;
84 0 : fClMatching = PMDTrack.fClMatching;
85 0 : fSigX = PMDTrack.fSigX;
86 0 : fSigY = PMDTrack.fSigY;
87 0 : return *this;
88 0 : }
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 0 : if(this==&obj)return;
97 0 : AliESDPmdTrack *robj = dynamic_cast<AliESDPmdTrack*>(&obj);
98 0 : if(!robj)return; // not an aliesesdpmdtrack
99 0 : *robj = *this;
100 0 : }
|