]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/html/src/AliPHOSv2.cxx.html
new html documentatin
[u/mrichter/AliRoot.git] / PHOS / html / src / AliPHOSv2.cxx.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: Mon Mar 26 12:10:34 2001            -->
7 <!--                                             -->
8 <head>
9 <title>AliPHOSv2 - 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>// Version of <a href=".././AliPHOSv1.html">AliPHOSv1</a> which keeps all hits in TreeH</b>
36 <b>// AddHit, StepManager,and FinishEvent are redefined </b>
37 <b>//                  </b>
38 <b>//*-- Author: Gines MARTINEZ (SUBATECH)</b>
39 <b>//*-- Modified Nov. 22 2000 by Dmitri Peressounko</b>
40 <b>// All hits are stored.</b>
41 <b>// Note, that primaries will not be assigned to digits:</b>
42 <b>// because of tiny energy deposition at each step.</b>
43 <b>//  </b>
44
45 <b>// --- ROOT system ---</b>
46 #include "TClonesArray.h"
47
48 <b>// --- Standard library ---</b>
49
50
51 <b>// --- AliRoot header files ---</b>
52
53 #include "<a href="../AliPHOSv2.h">AliPHOSv2.h</a>"
54 #include "AliPHOSHit.h"
55
56 ClassImp(AliPHOSv2)
57
58 <b>//____________________________________________________________________________</b>
59 <a name="AliPHOSv2:AliPHOSv2"> </a><a href=".././AliPHOSv2.html#AliPHOSv2:AliPHOSv2">AliPHOSv2::AliPHOSv2</a>()
60 {
61 <b>  // default ctor</b>
62
63 }
64
65 <b>//____________________________________________________________________________</b>
66 <a name="AliPHOSv2:AliPHOSv2"> </a><a href=".././AliPHOSv2.html#AliPHOSv2:AliPHOSv2">AliPHOSv2::AliPHOSv2</a>(const <a href="../ListOfTypes.html#char">char</a> *name, const <a href="../ListOfTypes.html#char">char</a> *title):
67 <a href=".././AliPHOSv1.html">AliPHOSv1</a>(name,title)
68 {
69 <b>  // ctor</b>
70 }
71 <b>//__________________________________________________________________________</b>
72 <a name="AliPHOSv2:~AliPHOSv2"> </a><a href=".././AliPHOSv2.html">AliPHOSv2</a>::~<a href=".././AliPHOSv2.html">AliPHOSv2</a>()
73 {
74 <b>  // dtor</b>
75 }
76
77 <b>//____________________________________________________________________________</b>
78 <a name="AliPHOSv2:AddHit"> </a><a href="../ListOfTypes.html#void">void</a> <a href=".././AliPHOSv2.html#AliPHOSv2:AddHit">AliPHOSv2::AddHit</a>(<a href="../ListOfTypes.html#Int_t">Int_t</a> shunt, <a href="../ListOfTypes.html#Int_t">Int_t</a> primary, <a href="../ListOfTypes.html#Int_t">Int_t</a> tracknumber, <a href="../ListOfTypes.html#Int_t">Int_t</a> Id, <a href="../ListOfTypes.html#Float_t">Float_t</a> * hits)
79 {
80 <b>  // Add a hit to the hit list.</b>
81
82   <a href=".././AliPHOSHit.html">AliPHOSHit</a> *newHit ;
83
84   newHit = new <a href=".././AliPHOSHit.html">AliPHOSHit</a>(shunt, primary, tracknumber, Id, hits) ;
85
86   new((*fHits)[fNhits]) <a href=".././AliPHOSHit.html">AliPHOSHit</a>(*newHit) ;    
87   fNhits++ ;
88
89   delete newHit;
90
91 }
92
93
94 </pre>
95
96 <!--SIGNATURE-->
97 <br>
98 <address>
99 <hr>
100 <center>
101 <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>
102 </center>
103 <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.
104 </address>
105 </body>
106 </html>