]>
Commit | Line | Data |
---|---|---|
aa7c9120 | 1 | <!DOCTYPE HTML PUBLIC "-// IETF/DTD HTML 2.0// EN"> |
2 | <html> | |
3 | <!-- --> | |
4 | <!-- Author: ROOT team (rootdev@hpsalo.cern.ch) --> | |
5 | <!-- --> | |
6 | <!-- Date: Tue Apr 3 16:13:23 2001 --> | |
7 | <!-- --> | |
8 | <head> | |
9 | <title>AliPHOSRecParticle - source file</title> | |
10 | <link rev=made href="mailto:rootdev@root.cern.ch"> | |
11 | <meta name="rating" content="General"> | |
12 | <meta name="objecttype" content="Manual"> | |
13 | <meta name="keywords" content="software development, oo, object oriented, unix, x11, windows, c++, html, rene brun, fons rademakers"> | |
14 | <meta name="description" content="ROOT - An Object Oriented Framework For Large Scale Data Analysis."> | |
15 | </head> | |
16 | <body BGCOLOR="#ffffff" LINK="#0000ff" VLINK="#551a8b" ALINK="#ff0000" TEXT="#000000"> | |
17 | <a name="TopOfPage"></a> | |
18 | <pre> | |
19 | /************************************************************************** | |
20 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
21 | * * | |
22 | * Author: The ALICE Off-line Project. * | |
23 | * Contributors are mentioned in the code where appropriate. * | |
24 | * * | |
25 | * Permission to use, copy, modify and distribute this software and its * | |
26 | * documentation strictly for non-commercial purposes is hereby granted * | |
27 | * without fee, provided that the above copyright notice appears in all * | |
28 | * copies and that both the copyright notice and this permission notice * | |
29 | * appear in the supporting documentation. The authors make no claims * | |
30 | * about the suitability of this software for any purpose. It is * | |
31 | * provided "as is" without express or implied warranty. * | |
32 | **************************************************************************/ | |
33 | /* $Id$ */ | |
34 | <b>//_________________________________________________________________________</b> | |
35 | <b>// A Reconstructed Particle in PHOS </b> | |
36 | <b>// To become a general class of AliRoot ? </b> | |
37 | <b>// Why should I put meaningless comments</b> | |
38 | <b>// just to satisfy</b> | |
39 | <b>// the code checker </b> | |
40 | <b>// </b> | |
41 | <b>//*-- Author: Yves Schutz (SUBATECH)</b> | |
42 | ||
43 | ||
44 | <b>// --- ROOT system ---</b> | |
45 | ||
46 | <b>// --- Standard library ---</b> | |
47 | ||
48 | #include <assert.h> | |
49 | ||
50 | <b>// --- AliRoot header files ---</b> | |
51 | ||
52 | #include "AliPHOSRecParticle.h" | |
53 | #include "TPad.h" | |
54 | ||
55 | ClassImp(AliPHOSRecParticle) | |
56 | ||
57 | ||
58 | <b>//____________________________________________________________________________</b> | |
59 | <a name="AliPHOSRecParticle:AliPHOSRecParticle"> </a> <a href=".././AliPHOSRecParticle.html#AliPHOSRecParticle:AliPHOSRecParticle">AliPHOSRecParticle::AliPHOSRecParticle</a>(const <a href=".././AliPHOSRecParticle.html">AliPHOSRecParticle</a> & rp) | |
60 | { | |
61 | <b> // copy ctor</b> | |
62 | ||
63 | <a href=".././AliPHOSRecParticle.html#AliPHOSRecParticle:fPHOSTrackSegment">fPHOSTrackSegment</a> = rp.<a href=".././AliPHOSRecParticle.html#AliPHOSRecParticle:fPHOSTrackSegment">fPHOSTrackSegment</a> ; | |
64 | <a href=".././AliPHOSFastRecParticle.html#AliPHOSFastRecParticle:fType">fType</a> = rp.<a href=".././AliPHOSFastRecParticle.html#AliPHOSFastRecParticle:fType">fType</a> ; | |
65 | <a href=".././AliPHOSFastRecParticle.html#AliPHOSFastRecParticle:fIndexInList">fIndexInList</a> = rp.<a href=".././AliPHOSFastRecParticle.html#AliPHOSFastRecParticle:fIndexInList">fIndexInList</a> ; | |
66 | ||
67 | fPdgCode = rp.fPdgCode; | |
68 | fStatusCode = rp.fStatusCode; | |
69 | fMother[0] = rp.fMother[0]; | |
70 | fMother[1] = rp.fMother[1]; | |
71 | fDaughter[0] = rp.fDaughter[0]; | |
72 | fDaughter[1] = rp.fDaughter[1]; | |
73 | fWeight = rp.fWeight; | |
74 | fCalcMass = rp.fCalcMass; | |
75 | fPx = rp.fPx; | |
76 | fPy = rp.fPy; | |
77 | fPz = rp.fPz; | |
78 | fE = rp.fE; | |
79 | fVx = rp.fVx; | |
80 | fVy = rp.fVy; | |
81 | fVz = rp.fVz; | |
82 | fVt = rp.fVt; | |
83 | fPolarTheta = rp.fPolarTheta; | |
84 | fPolarPhi = rp.fPolarPhi; | |
85 | fParticlePDG = rp.fParticlePDG; | |
86 | } | |
87 | ||
88 | <b>//____________________________________________________________________________</b> | |
89 | <a name="AliPHOSRecParticle:GetPrimaries"> </a><a href="../ListOfTypes.html#Int_t">Int_t</a> * <a href=".././AliPHOSRecParticle.html#AliPHOSRecParticle:GetPrimaries">AliPHOSRecParticle::GetPrimaries</a>(<a href="../ListOfTypes.html#Int_t">Int_t</a> & <a href="../ListOfTypes.html#number">number</a>) | |
90 | { | |
91 | <b> // Retrieves all the primary particles at the origine of this reconstructed particle</b> | |
92 | ||
93 | <b>// <a href=".././AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> * ts = GetPHOSTrackSegment() ;</b> | |
94 | ||
95 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> emcnumber = 0 ; </b> | |
96 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> * emclist = ts->GetPrimariesEmc(emcnumber) ;</b> | |
97 | ||
98 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> ppsdlnumber = 0 ;</b> | |
99 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> * ppsdllist = ts->GetPrimariesPpsdLow(ppsdlnumber) ;</b> | |
100 | ||
101 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> ppsdunumber = 0 ; </b> | |
102 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> * ppsdulist = ts->GetPrimariesPpsdUp(ppsdunumber) ;</b> | |
103 | ||
104 | <b>// <a href="../ListOfTypes.html#number">number</a> = emcnumber + ppsdlnumber + ppsdunumber ;</b> | |
105 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> * list = new <a href="../ListOfTypes.html#Int_t">Int_t</a>[<a href="../ListOfTypes.html#number">number</a>] ;</b> | |
106 | ||
107 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> index ; </b> | |
108 | <b>// for ( index = 0 ; index < emcnumber ; index++)</b> | |
109 | <b>// list[index] = emclist[index] ;</b> | |
110 | ||
111 | <b>// <a href="../ListOfTypes.html#Int_t">Int_t</a> jndex ; </b> | |
112 | <b>// for ( jndex = 0 ; jndex < ppsdlnumber ; jndex++) {</b> | |
113 | <b>// assert(index < <a href="../ListOfTypes.html#number">number</a>) ;</b> | |
114 | <b>// list[index] = ppsdllist[jndex] ;</b> | |
115 | <b>// index++ ; </b> | |
116 | <b>// }</b> | |
117 | ||
118 | <b>// for ( jndex = 0 ; jndex < ppsdunumber ; jndex++) {</b> | |
119 | <b>// assert(index < <a href="../ListOfTypes.html#number">number</a>) ;</b> | |
120 | <b>// list[index] = ppsdulist[jndex] ;</b> | |
121 | <b>// index++ ; </b> | |
122 | <b>// }</b> | |
123 | ||
124 | <b>// delete emclist ;</b> | |
125 | <b>// delete ppsdllist ;</b> | |
126 | <b>// delete ppsdulist ;</b> | |
127 | ||
128 | return 0 ; //<--- list ; | |
129 | } | |
130 | ||
131 | ||
132 | ||
133 | ||
134 | </pre> | |
135 | ||
136 | <!--SIGNATURE--> | |
137 | <br> | |
138 | <address> | |
139 | <hr> | |
140 | <center> | |
141 | <a href="http://root.cern.ch/root/Welcome.html">ROOT page</a> - <a href="../ClassIndex.html">Class index</a> - <a href="#TopOfPage">Top of the page</a><br> | |
142 | </center> | |
143 | <hr>This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to <a href="mailto:rootdev@root.cern.ch">ROOT support</a>, or contact <a href="mailto:rootdev@root.cern.ch">the developers</a> with any questions or problems regarding ROOT. | |
144 | </address> | |
145 | </body> | |
146 | </html> |