]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/PHOS-HTML/AliPHOSTrackSegment.html
initialize pointer data member to zero in the default ctor to avoid problems with...
[u/mrichter/AliRoot.git] / PHOS / PHOS-HTML / AliPHOSTrackSegment.html
1 <!DOCTYPE HTML PUBLIC "-// IETF/DTD HTML 2.0// EN">
2 <html>
3 <!--                                             -->
4 <!-- Author: ROOT team (rootdev@hpsalo.cern.ch)  -->
5 <!--                                             -->
6 <!--   Date: Sun Mar 12 00:45:56 2000            -->
7 <!--                                             -->
8 <head>
9 <title>AliPHOSTrackSegment</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, motif, windows nt, 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 <!--BEGIN-->
19 <center>
20 <h1>AliPHOSTrackSegment</h1>
21 <hr width=300>
22 <!--SDL--><em><a href=#AliPHOSTrackSegment:description>class description</a> - <a href="src/AliPHOSTrackSegment.cxx.html">source file</a> - <a href="AliPHOSTrackSegment_Tree.ps">inheritance tree</a></em>
23 <hr width=300>
24 </center>
25 <h2>class <a name="AliPHOSTrackSegment" href="AliPHOSTrackSegment.h">AliPHOSTrackSegment</a> : public TObject</h2>
26 <pre>
27
28 <!--TAB4-->    <b>public:</b><br>
29 <!--TAB6-->       <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:AliPHOSTrackSegment">AliPHOSTrackSegment</a><!--PLAIN-->()
30 <!--TAB6-->       <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:AliPHOSTrackSegment">AliPHOSTrackSegment</a><!--PLAIN-->(<a href="./AliPHOSEmcRecPoint.html">AliPHOSEmcRecPoint</a>* EmcRecPoint, <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* PpsdUp, <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* PpsdLow)
31 <!--TAB6-->       <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:AliPHOSTrackSegment">AliPHOSTrackSegment</a><!--PLAIN-->(const <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a>&amp; ts)
32 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:~AliPHOSTrackSegment">~AliPHOSTrackSegment</a><!--PLAIN-->()
33 <!--TAB6-->                   TClass* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Class">Class</a><!--PLAIN-->()
34 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Copy">Copy</a><!--PLAIN-->(TObject&amp; obj)
35 <!--TAB6-->             virtual <a href="ListOfTypes.html#Int_t">Int_t</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:DistancetoPrimitive">DistancetoPrimitive</a><!--PLAIN-->(<a href="ListOfTypes.html#Int_t">Int_t</a> px, <a href="ListOfTypes.html#Int_t">Int_t</a> py)
36 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Draw">Draw</a><!--PLAIN-->(<a href="ListOfTypes.html#Option_t">Option_t</a>* option)
37 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:ExecuteEvent">ExecuteEvent</a><!--PLAIN-->(<a href="ListOfTypes.html#Int_t">Int_t</a> event, <a href="ListOfTypes.html#Int_t">Int_t</a> px, <a href="ListOfTypes.html#Int_t">Int_t</a> py)
38 <!--TAB6-->                   <a href="ListOfTypes.html#Float_t">Float_t</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetDistanceInPHOSPlane">GetDistanceInPHOSPlane</a><!--PLAIN-->()
39 <!--TAB6-->       <a href="./AliPHOSEmcRecPoint.html">AliPHOSEmcRecPoint</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetEmcRecPoint">GetEmcRecPoint</a><!--PLAIN-->() const
40 <!--TAB6-->                   <a href="ListOfTypes.html#Float_t">Float_t</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetEnergy">GetEnergy</a><!--PLAIN-->()
41 <!--TAB6-->                  TVector3 <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetMomentumDirection">GetMomentumDirection</a><!--PLAIN-->()
42 <!--TAB6-->             virtual <a href="ListOfTypes.html#Int_t">Int_t</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPHOSMod">GetPHOSMod</a><!--PLAIN-->()
43 <!--TAB6-->                      <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPosition">GetPosition</a><!--PLAIN-->(TVector3&amp; pos)
44 <!--TAB6-->      <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPpsdLow">GetPpsdLow</a><!--PLAIN-->() const
45 <!--TAB6-->      <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPpsdUp">GetPpsdUp</a><!--PLAIN-->() const
46 <!--TAB6-->                    <a href="ListOfTypes.html#Int_t">Int_t</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPrimariesEmc">GetPrimariesEmc</a><!--PLAIN-->(<a href="ListOfTypes.html#Int_t">Int_t</a>&amp; number)
47 <!--TAB6-->                    <a href="ListOfTypes.html#Int_t">Int_t</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPrimariesPpsdLow">GetPrimariesPpsdLow</a><!--PLAIN-->(<a href="ListOfTypes.html#Int_t">Int_t</a>&amp; number)
48 <!--TAB6-->                    <a href="ListOfTypes.html#Int_t">Int_t</a>* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:GetPrimariesPpsdUp">GetPrimariesPpsdUp</a><!--PLAIN-->(<a href="ListOfTypes.html#Int_t">Int_t</a>&amp; number)
49 <!--TAB6-->           virtual TClass* <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:IsA">IsA</a><!--PLAIN-->() const
50 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Paint">Paint</a><!--PLAIN-->(<a href="ListOfTypes.html#Option_t">Option_t</a>* option)
51 <!--TAB6-->                      <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Print">Print</a><!--PLAIN-->()
52 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:ShowMembers">ShowMembers</a><!--PLAIN-->(TMemberInspector&amp; insp, <a href="ListOfTypes.html#char">char</a>* parent)
53 <!--TAB6-->              virtual <a href="ListOfTypes.html#void">void</a> <!--TAB--><!--BOLD--><a href="#AliPHOSTrackSegment:Streamer">Streamer</a><!--PLAIN-->(TBuffer&amp; b)
54
55 <h3><!--TAB2-->  <a name="AliPHOSTrackSegment:Data Members">Data Members</a></h3>
56 <!--TAB4-->    <b>private:</b><br>
57 <!--TAB6-->       <a href="./AliPHOSEmcRecPoint.html">AliPHOSEmcRecPoint</a>* <!--TAB--><!--BOLD--><a name="AliPHOSTrackSegment:fEmcRecPoint">fEmcRecPoint</a><!--PLAIN-->  <!--TAB--><i><a name="Title:fEmcRecPoint">The EMC reconstructed point</a></i>
58 <!--TAB6-->      <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <!--TAB--><!--BOLD--><a name="AliPHOSTrackSegment:fPpsdLow">fPpsdLow</a><!--PLAIN-->      <!--TAB--><i><a name="Title:fPpsdLow">The PPSD reconstructed point from the lower layer</a></i>
59 <!--TAB6-->      <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <!--TAB--><!--BOLD--><a name="AliPHOSTrackSegment:fPpsdUp">fPpsdUp</a><!--PLAIN-->       <!--TAB--><i><a name="Title:fPpsdUp">The PPSD reconstructed point from the upper layer</a></i>
60 </pre>
61 <!--END-->
62 <hr>
63 <!--DESCRIPTION--><h2><a name="AliPHOSTrackSegment:description">Class Description</a></h2>
64 <pre>  Track segment in PHOS
65   Can be : 1 EmcRecPoint
66            1 EmcRecPoint + 1 PPSD
67            1 EmcRecPoint + 1 PPSD + 1 PPSD
68
69 *-- Author:  Dmitri Peressounko (RRC KI &amp; SUBATECH)
70 </pre><hr>
71 <!--FUNCTION--> <a name="AliPHOSTrackSegment:AliPHOSTrackSegment" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:AliPHOSTrackSegment">AliPHOSTrackSegment</a>( <a href="./AliPHOSEmcRecPoint.html">AliPHOSEmcRecPoint</a> * emc , <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a> * ppsdRP1,
72                   <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a> * ppsdRP2  ) 
73 <br>
74 <pre> ctor
75 </pre><hr>
76 <!--FUNCTION--> <a name="AliPHOSTrackSegment:AliPHOSTrackSegment" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:AliPHOSTrackSegment">AliPHOSTrackSegment</a>( const <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> &amp; ts) 
77 <br>
78 <pre> Copy ctor
79 </pre><hr>
80 <!--FUNCTION--><a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:Copy" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:Copy">Copy</a>(TObject &amp; obj) 
81 <br>
82 <pre> Copy of a track segment into another track segment
83 </pre><hr>
84 <!--FUNCTION--><a href="ListOfTypes.html#Int_t">Int_t</a> <a name="AliPHOSTrackSegment:DistancetoPrimitive" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:DistancetoPrimitive">DistancetoPrimitive</a>(<a href="ListOfTypes.html#Int_t">Int_t</a> px, <a href="ListOfTypes.html#Int_t">Int_t</a> py)
85 <br>
86 <pre> Compute distance from point px,py to  a <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> considered as a Tmarker
87  Compute the closest distance of approach from point px,py to this marker.
88  The distance is computed in pixels units.
89 </pre><hr>
90 <!--FUNCTION--> <a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:Draw" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:Draw">Draw</a>(<a href="ListOfTypes.html#Option_t">Option_t</a> *option)
91  <br>
92 <pre> Draw this <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> with its current attribute
93 </pre><hr>
94 <!--FUNCTION--><a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:ExecuteEvent" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:ExecuteEvent">ExecuteEvent</a>(<a href="ListOfTypes.html#Int_t">Int_t</a> event, <a href="ListOfTypes.html#Int_t">Int_t</a> px, <a href="ListOfTypes.html#Int_t">Int_t</a> py)
95 <br>
96 <pre> Execute action corresponding to one event
97   This member function is called when a <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> is clicked with the locator
98
99   If Left button is clicked on <a href="./AliPHOSRecPoint.html">AliPHOSRecPoint</a>, the digits are switched on
100   and switched off when the mouse button is released.
101 </pre><hr>
102 <!--FUNCTION--><a href="ListOfTypes.html#Float_t">Float_t</a> <a name="AliPHOSTrackSegment:GetDistanceInPHOSPlane" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetDistanceInPHOSPlane">GetDistanceInPHOSPlane</a>()
103 <br>
104 <pre> Calculates the distance between the EMC RecPoint and PPSD RecPoint
105 </pre><hr>
106 <!--FUNCTION-->TVector3 <a name="AliPHOSTrackSegment:GetMomentumDirection" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetMomentumDirection">GetMomentumDirection</a>() 
107 <br>
108 <pre> Calculates the momentum direction:
109    1. if only a EMC RecPoint, direction is given by IP and this RecPoint
110    2. if a EMC RecPoint and one PPSD RecPoint, direction is given by the line through the 2 recpoints
111    3. if a EMC RecPoint and two PPSD RecPoints, dirrection is given by the average line through
112       the 2 pairs of recpoints
113  However because of the poor position resolution of PPSD the direction is always taken as if we were
114   in case 1.
115 </pre><hr>
116 <!--FUNCTION--><a href="ListOfTypes.html#Int_t">Int_t</a>* <a name="AliPHOSTrackSegment:GetPrimariesEmc" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetPrimariesEmc">GetPrimariesEmc</a>(<a href="ListOfTypes.html#Int_t">Int_t</a> &amp; number) 
117 <br>
118 <pre> Retrieves the primary particle(s) at the origin of the EMC RecPoint
119 </pre><hr>
120 <!--FUNCTION--><a href="ListOfTypes.html#Int_t">Int_t</a>* <a name="AliPHOSTrackSegment:GetPrimariesPpsdLow" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetPrimariesPpsdLow">GetPrimariesPpsdLow</a>(<a href="ListOfTypes.html#Int_t">Int_t</a> &amp; number) 
121 <br>
122 <pre> Retrieves the primary particle(s) at the origin of the lower PPSD RecPoint
123 </pre><hr>
124 <!--FUNCTION--><a href="ListOfTypes.html#Int_t">Int_t</a>* <a name="AliPHOSTrackSegment:GetPrimariesPpsdUp" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetPrimariesPpsdUp">GetPrimariesPpsdUp</a>(<a href="ListOfTypes.html#Int_t">Int_t</a> &amp; number) 
125 <br>
126 <pre> Retrieves the primary particle(s) at the origin of the upper PPSD  RecPoint
127 </pre><hr>
128 <!--FUNCTION--><a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:GetPosition" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:GetPosition">GetPosition</a>( TVector3 &amp; pos ) 
129 <br>
130 <pre> Returns position of the EMC RecPoint
131 </pre><hr>
132 <!--FUNCTION--><a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:Paint" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:Paint">Paint</a>(<a href="ListOfTypes.html#Option_t">Option_t</a> *)
133 <br>
134 <pre> Paint this ALiPHOSTrackSegment as a TMarker  with its current attributes
135 </pre><hr>
136 <!--FUNCTION--><a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:Print" href="src/AliPHOSTrackSegment.cxx.html#AliPHOSTrackSegment:Print">Print</a>()
137 <br>
138 <pre> Print all information on this track Segment
139 </pre><br><br><br>
140 <h3>Inline Functions</h3>
141 <hr>
142 <pre>
143 <!--INLINE FUNCTION--><!--TAB6-->         <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a> <a name="AliPHOSTrackSegment:AliPHOSTrackSegment" href="AliPHOSTrackSegment.h">AliPHOSTrackSegment</a>(const <a href="./AliPHOSTrackSegment.html">AliPHOSTrackSegment</a>&amp; ts)
144 <!--INLINE FUNCTION--><!--TAB6-->                     <a href="ListOfTypes.html#Float_t">Float_t</a> <a name="AliPHOSTrackSegment:GetEnergy" href="AliPHOSTrackSegment.h">GetEnergy</a>()
145 <!--INLINE FUNCTION--><!--TAB6-->                       <a href="ListOfTypes.html#Int_t">Int_t</a> <a name="AliPHOSTrackSegment:GetPHOSMod" href="AliPHOSTrackSegment.h">GetPHOSMod</a>()
146 <!--INLINE FUNCTION--><!--TAB6-->         <a href="./AliPHOSEmcRecPoint.html">AliPHOSEmcRecPoint</a>* <a name="AliPHOSTrackSegment:GetEmcRecPoint" href="AliPHOSTrackSegment.h">GetEmcRecPoint</a>() const
147 <!--INLINE FUNCTION--><!--TAB6-->        <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <a name="AliPHOSTrackSegment:GetPpsdLow" href="AliPHOSTrackSegment.h">GetPpsdLow</a>() const
148 <!--INLINE FUNCTION--><!--TAB6-->        <a href="./AliPHOSPpsdRecPoint.html">AliPHOSPpsdRecPoint</a>* <a name="AliPHOSTrackSegment:GetPpsdUp" href="AliPHOSTrackSegment.h">GetPpsdUp</a>() const
149 <!--INLINE FUNCTION--><!--TAB6-->                     TClass* <a name="AliPHOSTrackSegment:Class" href="AliPHOSTrackSegment.h">Class</a>()
150 <!--INLINE FUNCTION--><!--TAB6-->                     TClass* <a name="AliPHOSTrackSegment:IsA" href="AliPHOSTrackSegment.h">IsA</a>() const
151 <!--INLINE FUNCTION--><!--TAB6-->                        <a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:ShowMembers" href="AliPHOSTrackSegment.h">ShowMembers</a>(TMemberInspector&amp; insp, <a href="ListOfTypes.html#char">char</a>* parent)
152 <!--INLINE FUNCTION--><!--TAB6-->                        <a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:Streamer" href="AliPHOSTrackSegment.h">Streamer</a>(TBuffer&amp; b)
153 <!--INLINE FUNCTION--><!--TAB6-->                        <a href="ListOfTypes.html#void">void</a> <a name="AliPHOSTrackSegment:~AliPHOSTrackSegment" href="AliPHOSTrackSegment.h">~AliPHOSTrackSegment</a>()
154 </pre>
155
156 <hr><br>
157 <!--SIGNATURE-->
158 <em>Copyright (c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *</em><br>
159 <br>
160 <address>
161 <hr>
162 <center>
163 <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>
164 </center>
165 <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.
166 </address>
167 </body>
168 </html>