X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSRecParticle.cxx;h=dfd80005d4bcfc1541b25b5494dfd120e3ddde51;hb=9a773b96816a2933195238e5fbd6f69ca760aa3f;hp=67da3bf4310982e194540d25ede078eeeb7379c4;hpb=c1d256cb5e4da304f0f19226ca9765759c4df88f;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSRecParticle.cxx b/PHOS/AliPHOSRecParticle.cxx index 67da3bf4310..dfd80005d4b 100644 --- a/PHOS/AliPHOSRecParticle.cxx +++ b/PHOS/AliPHOSRecParticle.cxx @@ -12,16 +12,22 @@ * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ - +/* $Id$ */ //_________________________________________________________________________ -// Reconstructed Particle -//*-- Y. Schutz: SUBATECH -////////////////////////////////////////////////////////////////////////////// +// A Reconstructed Particle in PHOS +// To become a general class of AliRoot ? +// Why should I put meaningless comments +// just to satisfy +// the code checker +// +//*-- Author: Yves Schutz (SUBATECH) + // --- ROOT system --- // --- Standard library --- + // --- AliRoot header files --- #include "AliPHOSRecParticle.h" @@ -30,57 +36,36 @@ ClassImp(AliPHOSRecParticle) //____________________________________________________________________________ - AliPHOSRecParticle::AliPHOSRecParticle(AliPHOSTrackSegment * ts) + AliPHOSRecParticle::AliPHOSRecParticle(const AliPHOSRecParticle & rp) { - // ctor - - fPHOSTrackSegment = new AliPHOSTrackSegment(*ts) ; - fE = ts->GetEnergy() ; - TVector3 momdir = ts->GetMomentumDirection() ; - fPx = fE * momdir.X() ; - fPy = fE * momdir.Y() ; - fPz = fE * momdir.Z() ; - fType = kUNDEFINED ; - -} + // copy ctor -//____________________________________________________________________________ -TString AliPHOSRecParticle::Name() -{ - TString name ; - switch (fType) { - case kGAMMA: - name = "PHOTON" ; - break ; - case kELECTRON: - name = "ELECTRON" ; - break ; - case kNEUTRAL: - name = "NEUTRAL" ; - break ; - case kCHARGEDHADRON: - name = "CHARGED HADRON" ; - break ; - case kNEUTRALHADRON: - name = "NEUTRAL HADRON" ; - break ; - case kNEUTRALEM: - name = "NEUTRAL EM" ; - break ; - case kGAMMAHADRON: - name = "PHOTON HADRON" ; - break ; + fPHOSTrackSegment = rp.fPHOSTrackSegment ; + fType = rp.fType ; + fIndexInList = rp.fIndexInList ; - } - return name ; + fPdgCode = rp.fPdgCode; + fStatusCode = rp.fStatusCode; + fMother[0] = rp.fMother[0]; + fMother[1] = rp.fMother[1]; + fDaughter[0] = rp.fDaughter[0]; + fDaughter[1] = rp.fDaughter[1]; + fWeight = rp.fWeight; + fCalcMass = rp.fCalcMass; + fPx = rp.fPx; + fPy = rp.fPy; + fPz = rp.fPz; + fE = rp.fE; + fVx = rp.fVx; + fVy = rp.fVy; + fVz = rp.fVz; + fVt = rp.fVt; + fPolarTheta = rp.fPolarTheta; + fPolarPhi = rp.fPolarPhi; + fParticlePDG = rp.fParticlePDG; + } -//____________________________________________________________________________ -void AliPHOSRecParticle::Print() -{ - cout << "AliPHOSRecParticle > " << "type is " << Name() << endl - << " " << "Energy = " << fE << endl - << " " << "Px = " << fPx << endl - << " " << "Py = " << fPy << endl - << " " << "Pz = " << fPz << endl ; -} + + +