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 //_________________________________________________________________________
17 // Track segment in EMCAL
18 // Can be : 1 EmcRecPoint
19 // 1 EmcRecPoint + 1 PPSD
20 // 1 EmcRecPoint + 1 PPSD + 1 PPSD
22 //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
23 // Adapted from PHOS by Y. Schutz (SUBATECH)
25 // --- ROOT system ---
28 // --- Standard library ---
30 // --- AliRoot header files ---
32 #include "AliEMCALTrackSegment.h"
34 ClassImp(AliEMCALTrackSegment)
36 //____________________________________________________________________________
37 AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALTowerRecPoint * eca, AliEMCALTowerRecPoint * pre, AliEMCALTowerRecPoint * hca)
42 fPRERecPoint = pre->GetIndexInList() ;
47 fECARecPoint = eca->GetIndexInList() ;
52 fHCARecPoint = hca->GetIndexInList() ;
59 //____________________________________________________________________________
60 AliEMCALTrackSegment::AliEMCALTrackSegment( const AliEMCALTrackSegment & ts)
65 ( (AliEMCALTrackSegment &)ts ).Copy(*this) ;
69 //____________________________________________________________________________
70 void AliEMCALTrackSegment::Copy(TObject & obj)
72 // Copy of a track segment into another track segment
75 ( (AliEMCALTrackSegment &)obj ).fPRERecPoint = fPRERecPoint ;
76 ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ;
77 ( (AliEMCALTrackSegment &)obj ).fHCARecPoint = fHCARecPoint ;
78 ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ;
81 //____________________________________________________________________________
82 void AliEMCALTrackSegment::Print(Option_t *) const
84 // Print all information on this track Segment
87 Info("Print", "TrackSegment information:") ;
88 printf("--------AliEMCALTrackSegment-------- \n");
89 printf("Stored at position %d\n", fIndexInList) ;
91 printf("PRE RecPoint # %d\n", fPRERecPoint) ;
93 printf("EC RecPoint # %d\n", fECARecPoint) ;
95 printf("HC RecPoint # %d\n", fHCARecPoint) ;
97 printf("------------------------------------ \n") ;
101 //____________________________________________________________________________
102 void AliEMCALTrackSegment::SetPRERecPoint(AliEMCALRecPoint * pre)
104 // gives an id from its position in the list
106 fPRERecPoint = pre->GetIndexInList() ;
111 //____________________________________________________________________________
112 void AliEMCALTrackSegment::SetHCARecPoint(AliEMCALRecPoint * hca)
114 // gives an id from its position in the list
116 fHCARecPoint = hca->GetIndexInList() ;