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 // A Reconstructed Particle in PHOS
18 // To become a general class of AliRoot ?
19 // Why should I put meaningless comments
23 //*-- Author: Yves Schutz (SUBATECH)
26 // --- ROOT system ---
28 // --- Standard library ---
32 // --- AliRoot header files ---
34 #include "AliPHOSRecParticle.h"
37 ClassImp(AliPHOSRecParticle)
40 //____________________________________________________________________________
41 AliPHOSRecParticle::AliPHOSRecParticle(const AliPHOSRecParticle & rp)
45 fPHOSTrackSegment = rp.fPHOSTrackSegment ;
47 fIndexInList = rp.fIndexInList ;
49 fPdgCode = rp.fPdgCode;
50 fStatusCode = rp.fStatusCode;
51 fMother[0] = rp.fMother[0];
52 fMother[1] = rp.fMother[1];
53 fDaughter[0] = rp.fDaughter[0];
54 fDaughter[1] = rp.fDaughter[1];
56 fCalcMass = rp.fCalcMass;
65 fPolarTheta = rp.fPolarTheta;
66 fPolarPhi = rp.fPolarPhi;
67 fParticlePDG = rp.fParticlePDG;
70 //____________________________________________________________________________
71 Int_t * AliPHOSRecParticle::GetPrimaries(Int_t & number)
73 // Retrieves all the primary particles at the origine of this reconstructed particle
75 // AliPHOSTrackSegment * ts = GetPHOSTrackSegment() ;
77 // Int_t emcnumber = 0 ;
78 // Int_t * emclist = ts->GetPrimariesEmc(emcnumber) ;
80 // Int_t ppsdlnumber = 0 ;
81 // Int_t * ppsdllist = ts->GetPrimariesPpsdLow(ppsdlnumber) ;
83 // Int_t ppsdunumber = 0 ;
84 // Int_t * ppsdulist = ts->GetPrimariesPpsdUp(ppsdunumber) ;
86 // number = emcnumber + ppsdlnumber + ppsdunumber ;
87 // Int_t * list = new Int_t[number] ;
90 // for ( index = 0 ; index < emcnumber ; index++)
91 // list[index] = emclist[index] ;
94 // for ( jndex = 0 ; jndex < ppsdlnumber ; jndex++) {
95 // assert(index < number) ;
96 // list[index] = ppsdllist[jndex] ;
100 // for ( jndex = 0 ; jndex < ppsdunumber ; jndex++) {
101 // assert(index < number) ;
102 // list[index] = ppsdulist[jndex] ;
107 // delete ppsdllist ;
108 // delete ppsdulist ;
110 return 0 ; //<--- list ;