]>
Commit | Line | Data |
---|---|---|
5502f2ea | 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 | /* $Id$ */ | |
16 | //_________________________________________________________________________ | |
17 | // Track segment in EMCAL | |
18 | // Can be : 1 EmcRecPoint | |
19 | // 1 EmcRecPoint + 1 PPSD | |
20 | // 1 EmcRecPoint + 1 PPSD + 1 PPSD | |
21 | // | |
22 | //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH) | |
23 | // Adapted from PHOS by Y. Schutz (SUBATECH) | |
24 | ||
25 | // --- ROOT system --- | |
26 | ||
27 | ||
28 | // --- Standard library --- | |
29 | ||
30 | // --- AliRoot header files --- | |
fdebddeb | 31 | #include "AliEMCALTrackSegment.h" |
5502f2ea | 32 | |
33 | ClassImp(AliEMCALTrackSegment) | |
34 | ||
35 | //____________________________________________________________________________ | |
70a93198 | 36 | AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALRecPoint * eca) |
5502f2ea | 37 | { |
38 | // ctor | |
88cb7938 | 39 | if( eca ) |
40 | fECARecPoint = eca->GetIndexInList() ; | |
5502f2ea | 41 | else |
88cb7938 | 42 | fECARecPoint = -1 ; |
5502f2ea | 43 | fIndexInList = -1 ; |
44 | } | |
45 | ||
46 | //____________________________________________________________________________ | |
47 | AliEMCALTrackSegment::AliEMCALTrackSegment( const AliEMCALTrackSegment & ts) | |
9e5d2067 | 48 | : TObject(ts) |
5502f2ea | 49 | { |
50 | // Copy ctor | |
51 | ||
52 | ( (AliEMCALTrackSegment &)ts ).Copy(*this) ; | |
53 | } | |
54 | ||
55 | ||
56 | //____________________________________________________________________________ | |
57 | void AliEMCALTrackSegment::Copy(TObject & obj) | |
58 | { | |
59 | // Copy of a track segment into another track segment | |
60 | ||
61 | TObject::Copy(obj) ; | |
88cb7938 | 62 | ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ; |
5502f2ea | 63 | ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ; |
64 | } | |
65 | ||
66 | //____________________________________________________________________________ | |
9e5d2067 | 67 | void AliEMCALTrackSegment::Print(Option_t *) const |
5502f2ea | 68 | { |
69 | // Print all information on this track Segment | |
fdebddeb | 70 | printf("Print: TrackSegment information:") ; |
5502f2ea | 71 | printf("--------AliEMCALTrackSegment-------- \n"); |
72 | printf("Stored at position %d\n", fIndexInList) ; | |
88cb7938 | 73 | if (fECARecPoint) |
74 | printf("EC RecPoint # %d\n", fECARecPoint) ; | |
fdebddeb | 75 | printf("------------------------------------ \n") ; |
5502f2ea | 76 | } |