]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliESDPmdTrack.cxx
Do not search for external template definitions in the implementation files
[u/mrichter/AliRoot.git] / STEER / AliESDPmdTrack.cxx
... / ...
CommitLineData
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
26ClassImp(AliESDPmdTrack)
27
28//--------------------------------------------------------------------------//
29AliESDPmdTrack::AliESDPmdTrack () :
30 TObject(),
31 fX(0),
32 fY(0),
33 fZ(0),
34 fCluADC(0),
35 fCluPID(0),
36 fDet(0),
37 fNcell(0)
38{
39 // Default Constructor
40}
41
42//--------------------------------------------------------------------------//
43AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack) :
44 TObject(PMDTrack),
45 fX(PMDTrack.fX),
46 fY(PMDTrack.fY),
47 fZ(PMDTrack.fZ),
48 fCluADC(PMDTrack.fCluADC),
49 fCluPID(PMDTrack.fCluPID),
50 fDet(PMDTrack.fDet),
51 fNcell(PMDTrack.fNcell)
52{
53 // Copy Constructor
54}
55
56//--------------------------------------------------------------------------//
57AliESDPmdTrack &AliESDPmdTrack::operator=(const AliESDPmdTrack& PMDTrack)
58{
59 // Copy constructor
60 if(&PMDTrack == this) return *this;
61 TObject::operator=(PMDTrack);
62 fX = PMDTrack.fX;
63 fY = PMDTrack.fY;
64 fZ = PMDTrack.fZ;
65 fCluADC = PMDTrack.fCluADC;
66 fCluPID = PMDTrack.fCluPID;
67 fDet = PMDTrack.fDet;
68 fNcell = PMDTrack.fNcell;
69 return *this;
70}
71
72void AliESDPmdTrack::Copy(TObject& obj) const {
73
74 // this overwrites the virtual TOBject::Copy()
75 // to allow run time copying without casting
76 // in AliESDEvent
77
78 if(this==&obj)return;
79 AliESDPmdTrack *robj = dynamic_cast<AliESDPmdTrack*>(&obj);
80 if(!robj)return; // not an aliesesdpmdtrack
81 *robj = *this;
82}