]>
Commit | Line | Data |
---|---|---|
6ad0bfa0 | 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 | **************************************************************************/ | |
b2a60966 | 15 | /* $Id$ */ |
6ad0bfa0 | 16 | //_________________________________________________________________________ |
b2a60966 | 17 | // A Reconstructed Particle in PHOS |
2f04ed65 | 18 | // To become a general class of AliRoot ? |
19 | // Why should I put meaningless comments | |
20 | // just to satisfy | |
21 | // the code checker | |
b2a60966 | 22 | // |
23 | //*-- Author: Yves Schutz (SUBATECH) | |
24 | ||
6ad0bfa0 | 25 | |
26 | // --- ROOT system --- | |
27 | ||
28 | // --- Standard library --- | |
29 | ||
ed4205d8 | 30 | #include <assert.h> |
31 | ||
6ad0bfa0 | 32 | // --- AliRoot header files --- |
33 | ||
34 | #include "AliPHOSRecParticle.h" | |
15605d3c | 35 | #include "TPad.h" |
6ad0bfa0 | 36 | |
37 | ClassImp(AliPHOSRecParticle) | |
38 | ||
39 | ||
a73f33f0 | 40 | //____________________________________________________________________________ |
41 | AliPHOSRecParticle::AliPHOSRecParticle(const AliPHOSRecParticle & rp) | |
42 | { | |
b2a60966 | 43 | // copy ctor |
44 | ||
83974468 | 45 | fPHOSTrackSegment = rp.fPHOSTrackSegment ; |
a73f33f0 | 46 | fType = rp.fType ; |
83974468 | 47 | fIndexInList = rp.fIndexInList ; |
b2a60966 | 48 | |
cafda784 | 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]; | |
55 | fWeight = rp.fWeight; | |
56 | fCalcMass = rp.fCalcMass; | |
57 | fPx = rp.fPx; | |
58 | fPy = rp.fPy; | |
59 | fPz = rp.fPz; | |
60 | fE = rp.fE; | |
61 | fVx = rp.fVx; | |
62 | fVy = rp.fVy; | |
63 | fVz = rp.fVz; | |
64 | fVt = rp.fVt; | |
65 | fPolarTheta = rp.fPolarTheta; | |
66 | fPolarPhi = rp.fPolarPhi; | |
67 | fParticlePDG = rp.fParticlePDG; | |
a73f33f0 | 68 | } |
69 | ||
b2a60966 | 70 | //____________________________________________________________________________ |
71 | Int_t * AliPHOSRecParticle::GetPrimaries(Int_t & number) | |
72 | { | |
73 | // Retrieves all the primary particles at the origine of this reconstructed particle | |
74 | ||
2731cd1e | 75 | // AliPHOSTrackSegment * ts = GetPHOSTrackSegment() ; |
83974468 | 76 | |
2731cd1e | 77 | // Int_t emcnumber = 0 ; |
78 | // Int_t * emclist = ts->GetPrimariesEmc(emcnumber) ; | |
b2a60966 | 79 | |
2731cd1e | 80 | // Int_t ppsdlnumber = 0 ; |
81 | // Int_t * ppsdllist = ts->GetPrimariesPpsdLow(ppsdlnumber) ; | |
b2a60966 | 82 | |
2731cd1e | 83 | // Int_t ppsdunumber = 0 ; |
84 | // Int_t * ppsdulist = ts->GetPrimariesPpsdUp(ppsdunumber) ; | |
b2a60966 | 85 | |
2731cd1e | 86 | // number = emcnumber + ppsdlnumber + ppsdunumber ; |
87 | // Int_t * list = new Int_t[number] ; | |
b2a60966 | 88 | |
2731cd1e | 89 | // Int_t index ; |
90 | // for ( index = 0 ; index < emcnumber ; index++) | |
91 | // list[index] = emclist[index] ; | |
92 | ||
93 | // Int_t jndex ; | |
94 | // for ( jndex = 0 ; jndex < ppsdlnumber ; jndex++) { | |
95 | // assert(index < number) ; | |
96 | // list[index] = ppsdllist[jndex] ; | |
97 | // index++ ; | |
98 | // } | |
99 | ||
100 | // for ( jndex = 0 ; jndex < ppsdunumber ; jndex++) { | |
101 | // assert(index < number) ; | |
102 | // list[index] = ppsdulist[jndex] ; | |
103 | // index++ ; | |
104 | // } | |
105 | ||
106 | // delete emclist ; | |
107 | // delete ppsdllist ; | |
108 | // delete ppsdulist ; | |
109 | ||
110 | return 0 ; //<--- list ; | |
b2a60966 | 111 | } |
83974468 | 112 | |
83974468 | 113 | |
114 | ||
115 |