All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TG3Application.cxx
Go to the documentation of this file.
1 //
2 // Class TG3Application
3 // -----------------------
4 // Implementation of the TVirtualMCApplication
5 //
6 // by Rene Brun 30/12/2002
7 
10 //#include "TG3Stack.h"
11 
12 #include <TROOT.h>
13 #include <TInterpreter.h>
14 #include <TVirtualMC.h>
15 #include <TLorentzVector.h>
16 
17 #include <Riostream.h>
18 
20 
21 //_____________________________________________________________________________
23  : TVirtualMCApplication(name,title),
24  fStack(0)
25 {
26 //
27 // Standard constructor
28 //
29 
30  new TGeant3f77("g",0);
31 
32  // create a user stack
33  //fStack = new TG3Stack(100);
34 }
35 
36 //_____________________________________________________________________________
38  : TVirtualMCApplication(),
39  fStack(0)
40 {
41  //
42  // Default constructor
43  //
44 }
45 
46 //_____________________________________________________________________________
48 {
49  //
50  // Destructor
51  //
52 
53  //delete fStack;
54 }
55 
56 //
57 // private
58 //
59 
60 //_____________________________________________________________________________
62 {
63  //
64  // Materials
65  //
66 
67 }
68 
69 
70 //_____________________________________________________________________________
72 {
73 
74 }
75 
76 //
77 // public
78 //
79 
80 //_____________________________________________________________________________
81 void TG3Application::InitMC(const char* /*setup*/)
82 {
83  //
84  // Initialize MC.
85  //
86 
87  gMC->Init();
88  gMC->BuildPhysics();
89 }
90 
91 //_____________________________________________________________________________
92 void TG3Application::RunMC(Int_t /*nofEvents*/)
93 {
94  //
95  // MC run.
96  //
97 
98 
99  //gMC->ProcessRun(nofEvents);
100  //FinishRun();
101 }
102 
103 //_____________________________________________________________________________
105 {
106  //
107  // Finish MC run.
108  //
109 
110  // UGLAST
111 }
112 
113 //_____________________________________________________________________________
115 {
116  //
117  // Construct geometry using TVirtualMC functions.
118  //
119 
120  //ConstructMaterials();
121  //ConstructVolumes();
122 }
123 
124 //_____________________________________________________________________________
126 {
127  //
128  // Initialize geometry
129  //
130 
131  // Nothing needed in this example
132 }
133 
134 //_____________________________________________________________________________
136 {
137  //
138  // Fill the user stack (derived from TVirtualMCStack) with primary particles.
139  //
140 
141 }
142 
143 //_____________________________________________________________________________
145 {
146  //
147  // User actions at beginning of event
148  //
149 
150  // nothing to be done this example
151 }
152 
153 //_____________________________________________________________________________
155 {
156  //
157  // User actions at beginning of a primary track
158  //
159 
160  // nothing to be done this example
161 }
162 
163 //_____________________________________________________________________________
165 {
166  //
167  // User actions at beginning of each track
168  //
169 }
170 
171 //_____________________________________________________________________________
173 {
174  //
175  // User actions at each step
176  //
177 
178 }
179 
180 //_____________________________________________________________________________
182 {
183  //
184  // User actions after finishing of each track
185  //
186 
187  // nothing to be done this example
188 }
189 
190 //_____________________________________________________________________________
192 {
193  //
194  // User actions after finishing of a primary track
195  //
196 
197  // nothing to be done this example
198 }
199 
200 //_____________________________________________________________________________
202 {
203  //
204  // User actions after finishing of an event
205  //
206 
207  // nothing to be done this example
208 }
209 
210 //_____________________________________________________________________________
212 {
213  //
214  // No limit
215  //
216 
217  return DBL_MAX;
218 }
219 
220 //_____________________________________________________________________________
222 {
223  //
224  // No limit
225  //
226 
227  return DBL_MAX;
228 }
229 
230 //_____________________________________________________________________________
231 void TG3Application::Field(const Double_t* /* x */, Double_t* b) const
232 {
233  //
234  // No magnetic field.
235  //
236 
237  b[0] = 0.;
238  b[1] = 0.;
239  b[2] = 0.;
240 }
void RunMC(Int_t nofEvents)
void ConstructMaterials()
virtual void InitGeometry()
virtual void GeneratePrimaries()
virtual void BeginPrimary()
virtual void FinishPrimary()
void InitMC(const char *setup)
virtual void Stepping()
virtual void PostTrack()
virtual void ConstructGeometry()
virtual Double_t TrackingZmax() const
virtual ~TG3Application()
virtual void Field(const Double_t *x, Double_t *b) const
virtual void BeginEvent()
ClassImp(TG3Application) TG3Application
virtual Double_t TrackingRmax() const
virtual void FinishEvent()
virtual void PreTrack()