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)
64 ( (AliEMCALTrackSegment &)ts ).Copy(*this) ;
68 //____________________________________________________________________________
69 void AliEMCALTrackSegment::Copy(TObject & obj)
71 // Copy of a track segment into another track segment
74 ( (AliEMCALTrackSegment &)obj ).fPRERecPoint = fPRERecPoint ;
75 ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ;
76 ( (AliEMCALTrackSegment &)obj ).fHCARecPoint = fHCARecPoint ;
77 ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ;
80 //____________________________________________________________________________
81 void AliEMCALTrackSegment::Print(Option_t * opt) const
83 // Print all information on this track Segment
86 Info("Print", "TrackSegment information:") ;
87 printf("--------AliEMCALTrackSegment-------- \n");
88 printf("Stored at position %d\n", fIndexInList) ;
90 printf("PRE RecPoint # %d\n", fPRERecPoint) ;
92 printf("EC RecPoint # %d\n", fECARecPoint) ;
94 printf("HC RecPoint # %d\n", fHCARecPoint) ;
96 printf("------------------------------------ \n") ;
100 //____________________________________________________________________________
101 void AliEMCALTrackSegment::SetPRERecPoint(AliEMCALRecPoint * pre)
103 // gives an id from its position in the list
105 fPRERecPoint = pre->GetIndexInList() ;
110 //____________________________________________________________________________
111 void AliEMCALTrackSegment::SetHCARecPoint(AliEMCALRecPoint * hca)
113 // gives an id from its position in the list
115 fHCARecPoint = hca->GetIndexInList() ;