TG3Application Class Reference

#include <TG3Application.h>

List of all members.

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 15 of file TG3Application.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file TG3Application.cxx.

00024   : TVirtualMCApplication(name,title),
00025     fStack(0)
00026 {
00027 //
00028 // Standard constructor
00029 //
00030 
00031   new TGeant3f77("g",0);
00032   
00033   // create a user stack
00034   //fStack = new TG3Stack(100);  
00035 }

TG3Application::TG3Application (  ) 

Definition at line 38 of file TG3Application.cxx.

00039   : TVirtualMCApplication(),
00040     fStack(0)
00041 {    
00042   //
00043   // Default constructor
00044   //
00045 }

TG3Application::~TG3Application (  )  [virtual]

Definition at line 48 of file TG3Application.cxx.

00049 {
00050   //
00051   // Destructor  
00052   //
00053   
00054   //delete fStack;
00055 }


Member Function Documentation

void TG3Application::BeginEvent (  )  [virtual]

Definition at line 145 of file TG3Application.cxx.

00146 {    
00147   //
00148   // User actions at beginning of event
00149   //
00150 
00151   // nothing to be done this example
00152 }

void TG3Application::BeginPrimary (  )  [virtual]

Definition at line 155 of file TG3Application.cxx.

00156 {    
00157   //
00158   // User actions at beginning of a primary track
00159   //
00160 
00161   // nothing to be done this example
00162 }

void TG3Application::ConstructGeometry (  )  [virtual]

Definition at line 115 of file TG3Application.cxx.

00116 {    
00117   //
00118   // Construct geometry using TVirtualMC functions.
00119   //
00120 
00121   //ConstructMaterials();  
00122   //ConstructVolumes();  
00123 }

void TG3Application::ConstructMaterials (  )  [private]

Definition at line 62 of file TG3Application.cxx.

00063 {
00064   //
00065   // Materials
00066   //
00067 
00068 }

void TG3Application::ConstructVolumes (  )  [private]

Definition at line 72 of file TG3Application.cxx.

00073 {
00074 
00075 }

void TG3Application::Field ( const Double_t *  x,
Double_t *  b 
) const [virtual]

Definition at line 232 of file TG3Application.cxx.

00233 {
00234   // 
00235   // No magnetic field.
00236   //
00237   
00238    b[0] = 0.;
00239    b[1] = 0.;
00240    b[2] = 0.;
00241 }

void TG3Application::FinishEvent (  )  [virtual]

Definition at line 202 of file TG3Application.cxx.

00203 {    
00204   //
00205   // User actions after finishing of an event
00206   //
00207 
00208   // nothing to be done this example
00209 } 

void TG3Application::FinishPrimary (  )  [virtual]

Definition at line 192 of file TG3Application.cxx.

00193 {    
00194   //
00195   // User actions after finishing of a primary track
00196   //
00197 
00198   // nothing to be done this example
00199 }

void TG3Application::FinishRun (  ) 

Definition at line 105 of file TG3Application.cxx.

00106 {    
00107   //
00108   // Finish MC run.
00109   //
00110 
00111  // UGLAST
00112 }

void TG3Application::GeneratePrimaries (  )  [virtual]

Definition at line 136 of file TG3Application.cxx.

00137 {    
00138   //
00139   // Fill the user stack (derived from TVirtualMCStack) with primary particles.
00140   //
00141   
00142 }

void TG3Application::InitGeometry (  )  [virtual]

Definition at line 126 of file TG3Application.cxx.

00127 {    
00128   //
00129   // Initialize geometry
00130   //
00131   
00132   // Nothing needed in this example
00133 }

void TG3Application::InitMC ( const char *  setup  ) 

Definition at line 82 of file TG3Application.cxx.

00083 {    
00084   //
00085   // Initialize MC.
00086   //
00087 
00088   gMC->Init();
00089   gMC->BuildPhysics();  
00090 }

TG3Application * TG3Application::Instance (  )  [inline, static]

Definition at line 58 of file TG3Application.h.

void TG3Application::PostTrack (  )  [virtual]

Definition at line 182 of file TG3Application.cxx.

00183 {    
00184   //
00185   // User actions after finishing of each track
00186   //
00187 
00188   // nothing to be done this example
00189 }

void TG3Application::PreTrack (  )  [virtual]

Definition at line 165 of file TG3Application.cxx.

00166 {    
00167   //
00168   // User actions at beginning of each track
00169   //
00170 }

void TG3Application::RunMC ( Int_t  nofEvents  ) 

Definition at line 93 of file TG3Application.cxx.

00094 {    
00095   //
00096   // MC run.
00097   //
00098 
00099 
00100   //gMC->ProcessRun(nofEvents);
00101   //FinishRun();
00102 }

void TG3Application::Stepping (  )  [virtual]

Definition at line 173 of file TG3Application.cxx.

00174 {    
00175   //
00176   // User actions at each step
00177   //
00178   
00179 }

Double_t TG3Application::TrackingRmax (  )  const [virtual]

Definition at line 212 of file TG3Application.cxx.

00213 { 
00214   //
00215   // No limit
00216   //
00217 
00218   return DBL_MAX; 
00219 }

Double_t TG3Application::TrackingZmax (  )  const [virtual]

Definition at line 222 of file TG3Application.cxx.

00223 { 
00224   //
00225   // No limit
00226   //
00227 
00228   return DBL_MAX; 
00229 }


Member Data Documentation

TVirtualMCStack* TG3Application::fStack [private]

Definition at line 51 of file TG3Application.h.


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1