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 **************************************************************************/
16 ///////////////////////////////////////////////////////////////////////////////
18 // Tracks from the TRD Global Tracking Unit (GTU, trigger)
19 // The TRD trigger stores the found tracks
20 // as ESDTrdTrack objects in the ESD object
21 // Related classes: AliTRDReconstructor, AliESD
24 ///////////////////////////////////////////////////////////////////////////////
26 #include "AliESDTrdTrack.h"
28 ClassImp(AliESDTrdTrack)
30 //_____________________________________________________________________________
31 AliESDTrdTrack::AliESDTrdTrack():
48 // Default constructor
53 //_____________________________________________________________________________
54 AliESDTrdTrack::AliESDTrdTrack(const AliESDTrdTrack& track):
64 fNtracklets(track.fNtracklets),
65 fNclusters(track.fNclusters),
66 fNplanes(track.fNplanes),
67 fDetector(track.fDetector)
76 //_____________________________________________________________________________
77 AliESDTrdTrack& AliESDTrdTrack::operator=(const AliESDTrdTrack& track)
85 TObject::operator=(track);
86 fYproj = track.fYproj;
87 fZproj = track.fZproj;
88 fSlope = track.fSlope;
93 fLabel = track.fLabel;
94 fNtracklets = track.fNtracklets;
95 fNclusters = track.fNclusters;
96 fDetector = track.fDetector;
97 fNplanes = track.fNplanes;
103 void AliESDTrdTrack::Copy(TObject& obj) const {
105 // this overwrites the virtual TOBject::Copy()
106 // to allow run time copying without casting
109 if(this==&obj)return;
110 AliESDTrdTrack *robj = dynamic_cast<AliESDTrdTrack*>(&obj);
111 if(!robj)return; // not an aliesesdtrdtrack