Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
TG3Application Class Reference

#include <TG3Application.h>

Inheritance diagram for TG3Application:

Public Member Functions

 TG3Application (const char *name, const char *title)
 
 TG3Application ()
 
virtual ~TG3Application ()
 
void InitMC (const char *setup)
 
void RunMC (Int_t nofEvents)
 
void FinishRun ()
 
virtual void ConstructGeometry ()
 
virtual void InitGeometry ()
 
virtual void GeneratePrimaries ()
 
virtual void BeginEvent ()
 
virtual void BeginPrimary ()
 
virtual void PreTrack ()
 
virtual void Stepping ()
 
virtual void PostTrack ()
 
virtual void FinishPrimary ()
 
virtual void FinishEvent ()
 
virtual Double_t TrackingRmax () const
 
virtual Double_t TrackingZmax () const
 
virtual void Field (const Double_t *x, Double_t *b) const
 

Static Public Member Functions

static TG3ApplicationInstance ()
 

Private Member Functions

void ConstructMaterials ()
 
void ConstructVolumes ()
 

Private Attributes

TVirtualMCStack * fStack
 

Detailed Description

Definition at line 14 of file TG3Application.h.

Constructor & Destructor Documentation

TG3Application::TG3Application ( const char *  name,
const char *  title 
)
TG3Application::TG3Application ( )

Definition at line 37 of file TG3Application.cxx.

38  : TVirtualMCApplication(),
39  fStack(0)
40 {
41  //
42  // Default constructor
43  //
44 }
TVirtualMCStack * fStack
TG3Application::~TG3Application ( )
virtual

Definition at line 47 of file TG3Application.cxx.

48 {
49  //
50  // Destructor
51  //
52 
53  //delete fStack;
54 }

Member Function Documentation

void TG3Application::BeginEvent ( )
virtual

Definition at line 144 of file TG3Application.cxx.

145 {
146  //
147  // User actions at beginning of event
148  //
149 
150  // nothing to be done this example
151 }
void TG3Application::BeginPrimary ( )
virtual

Definition at line 154 of file TG3Application.cxx.

155 {
156  //
157  // User actions at beginning of a primary track
158  //
159 
160  // nothing to be done this example
161 }
void TG3Application::ConstructGeometry ( )
virtual

Definition at line 114 of file TG3Application.cxx.

115 {
116  //
117  // Construct geometry using TVirtualMC functions.
118  //
119 
120  //ConstructMaterials();
121  //ConstructVolumes();
122 }
void TG3Application::ConstructMaterials ( )
private

Definition at line 61 of file TG3Application.cxx.

62 {
63  //
64  // Materials
65  //
66 
67 }
void TG3Application::ConstructVolumes ( )
private

Definition at line 71 of file TG3Application.cxx.

72 {
73 
74 }
void TG3Application::Field ( const Double_t *  x,
Double_t *  b 
) const
virtual

Definition at line 231 of file TG3Application.cxx.

232 {
233  //
234  // No magnetic field.
235  //
236 
237  b[0] = 0.;
238  b[1] = 0.;
239  b[2] = 0.;
240 }
void TG3Application::FinishEvent ( )
virtual

Definition at line 201 of file TG3Application.cxx.

202 {
203  //
204  // User actions after finishing of an event
205  //
206 
207  // nothing to be done this example
208 }
void TG3Application::FinishPrimary ( )
virtual

Definition at line 191 of file TG3Application.cxx.

192 {
193  //
194  // User actions after finishing of a primary track
195  //
196 
197  // nothing to be done this example
198 }
void TG3Application::FinishRun ( )

Definition at line 104 of file TG3Application.cxx.

105 {
106  //
107  // Finish MC run.
108  //
109 
110  // UGLAST
111 }
void TG3Application::GeneratePrimaries ( )
virtual

Definition at line 135 of file TG3Application.cxx.

136 {
137  //
138  // Fill the user stack (derived from TVirtualMCStack) with primary particles.
139  //
140 
141 }
void TG3Application::InitGeometry ( )
virtual

Definition at line 125 of file TG3Application.cxx.

126 {
127  //
128  // Initialize geometry
129  //
130 
131  // Nothing needed in this example
132 }
void TG3Application::InitMC ( const char *  setup)

Definition at line 81 of file TG3Application.cxx.

82 {
83  //
84  // Initialize MC.
85  //
86 
87  gMC->Init();
88  gMC->BuildPhysics();
89 }
TG3Application * TG3Application::Instance ( void  )
inlinestatic

Definition at line 57 of file TG3Application.h.

58 { return (TG3Application*)(TVirtualMCApplication::Instance()); }
void TG3Application::PostTrack ( )
virtual

Definition at line 181 of file TG3Application.cxx.

182 {
183  //
184  // User actions after finishing of each track
185  //
186 
187  // nothing to be done this example
188 }
void TG3Application::PreTrack ( )
virtual

Definition at line 164 of file TG3Application.cxx.

165 {
166  //
167  // User actions at beginning of each track
168  //
169 }
void TG3Application::RunMC ( Int_t  nofEvents)

Definition at line 92 of file TG3Application.cxx.

93 {
94  //
95  // MC run.
96  //
97 
98 
99  //gMC->ProcessRun(nofEvents);
100  //FinishRun();
101 }
void TG3Application::Stepping ( )
virtual

Definition at line 172 of file TG3Application.cxx.

173 {
174  //
175  // User actions at each step
176  //
177 
178 }
Double_t TG3Application::TrackingRmax ( ) const
virtual

Definition at line 211 of file TG3Application.cxx.

212 {
213  //
214  // No limit
215  //
216 
217  return DBL_MAX;
218 }
Double_t TG3Application::TrackingZmax ( ) const
virtual

Definition at line 221 of file TG3Application.cxx.

222 {
223  //
224  // No limit
225  //
226 
227  return DBL_MAX;
228 }

Member Data Documentation

TVirtualMCStack* TG3Application::fStack
private

Definition at line 50 of file TG3Application.h.


The documentation for this class was generated from the following files: