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 ---
31 #include "AliEMCALTrackSegment.h"
33 ClassImp(AliEMCALTrackSegment)
35 //____________________________________________________________________________
36 AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALRecPoint * eca)
40 fECARecPoint = eca->GetIndexInList() ;
46 //____________________________________________________________________________
47 AliEMCALTrackSegment::AliEMCALTrackSegment( const AliEMCALTrackSegment & ts)
52 ( (AliEMCALTrackSegment &)ts ).Copy(*this) ;
56 //____________________________________________________________________________
57 void AliEMCALTrackSegment::Copy(TObject & obj)
59 // Copy of a track segment into another track segment
62 ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ;
63 ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ;
66 //____________________________________________________________________________
67 void AliEMCALTrackSegment::Print(Option_t *) const
69 // Print all information on this track Segment
70 printf("Print: TrackSegment information:") ;
71 printf("--------AliEMCALTrackSegment-------- \n");
72 printf("Stored at position %d\n", fIndexInList) ;
74 printf("EC RecPoint # %d\n", fECARecPoint) ;
75 printf("------------------------------------ \n") ;