]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALTrackSegment.cxx
Avoid compiler warnings.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrackSegment.cxx
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 ---
31 #include "AliEMCALTrackSegment.h"
32
33 ClassImp(AliEMCALTrackSegment)
34
35 //____________________________________________________________________________
36 AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALRecPoint * eca)
37 {
38   // ctor
39   if( eca )   
40     fECARecPoint =  eca->GetIndexInList() ;
41   else 
42     fECARecPoint = -1 ;
43   fIndexInList = -1 ;
44 }
45
46 //____________________________________________________________________________
47 AliEMCALTrackSegment::AliEMCALTrackSegment( const AliEMCALTrackSegment & ts) 
48   : TObject(ts)
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) ;
62    ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ; 
63    ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ; 
64 }
65
66 //____________________________________________________________________________
67 void AliEMCALTrackSegment::Print(Option_t *) const
68 {
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) ;
73   if (fECARecPoint) 
74     printf("EC RecPoint  #     %d\n", fECARecPoint) ;
75   printf("------------------------------------ \n") ;  
76 }