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 // Reconstructed Particle
18 //*-- Y. Schutz: SUBATECH
19 //////////////////////////////////////////////////////////////////////////////
21 // --- ROOT system ---
23 // --- Standard library ---
25 // --- AliRoot header files ---
27 #include "AliPHOSRecParticle.h"
29 ClassImp(AliPHOSRecParticle)
32 //____________________________________________________________________________
33 AliPHOSRecParticle::AliPHOSRecParticle(AliPHOSTrackSegment * ts)
37 fPHOSTrackSegment = new AliPHOSTrackSegment(*ts) ;
38 fE = ts->GetEnergy() ;
39 TVector3 momdir = ts->GetMomentumDirection() ;
40 fPx = fE * momdir.X() ;
41 fPy = fE * momdir.Y() ;
42 fPz = fE * momdir.Z() ;
47 //____________________________________________________________________________
48 TString AliPHOSRecParticle::Name()
62 name = "CHARGED HADRON" ;
65 name = "NEUTRAL HADRON" ;
74 //____________________________________________________________________________
75 void AliPHOSRecParticle::Print()
77 cout << "AliPHOSRecParticle > " << "type is " << Name() << endl
78 << " " << "Energy = " << fE << endl
79 << " " << "Px = " << fPx << endl
80 << " " << "Py = " << fPy << endl
81 << " " << "Pz = " << fPz << endl ;