PTGuiApplication Class Reference

#include <PTGuiApplication.h>

List of all members.

Public Member Functions

 PTGuiApplication (const char *name, const char *title)
 PTGuiApplication ()
virtual ~PTGuiApplication ()
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 void Field (const Double_t *x, Double_t *b) const

Static Public Member Functions

static PTGuiApplicationInstance ()

Detailed Description

Definition at line 17 of file PTGuiApplication.h.


Constructor & Destructor Documentation

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

Definition at line 22 of file PTGuiApplication.cxx.

00023   : TVirtualMCApplication(name,title) {
00024   // Normal constructor
00025 
00026 }

PTGuiApplication::PTGuiApplication (  ) 

Definition at line 29 of file PTGuiApplication.cxx.

00030    : TVirtualMCApplication() {
00031   // Default constructor
00032 
00033 }

PTGuiApplication::~PTGuiApplication (  )  [virtual]

Definition at line 36 of file PTGuiApplication.cxx.

00036                                     {
00037   // delete all the owned sub-objects
00038  
00039 }


Member Function Documentation

void PTGuiApplication::BeginEvent (  )  [virtual]

Definition at line 79 of file PTGuiApplication.cxx.

00079                                   {    
00080   //
00081   // User actions at beginning of event
00082 
00083 }

void PTGuiApplication::BeginPrimary (  )  [virtual]

Definition at line 86 of file PTGuiApplication.cxx.

00086                                     {    
00087   //
00088   // User actions at beginning of a primary track
00089 
00090 }

void PTGuiApplication::ConstructGeometry (  )  [virtual]

Definition at line 42 of file PTGuiApplication.cxx.

00042                                          {
00043   // Construct geometry
00044   // Called by TGeant3::Init() 
00045 
00046 
00047   if ( !gMC ) {
00048     cerr << "null ptr to MC implementation" << endl;
00049     abort();
00050   }
00051 
00052   if ( !(gMC -> IsRootGeometrySupported()) ) {
00053     cerr << "MC implementation does not support" 
00054          << "\nuse of TGeo to define geometry" << endl;
00055     abort();  // could instead offer alternative geometry implementation
00056   }
00057 
00058   // Notify VMC about about ROOT geometry
00059   gMC -> SetRootGeometry();
00060 
00061   return;
00062   
00063 }

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

Definition at line 129 of file PTGuiApplication.cxx.

00129                                                                        {
00130   // 
00131   // Magnetic field at global position x[3]
00132 
00133   b[0] = 0; b[1] = 0; b[2] = 0;
00134 
00135 }

void PTGuiApplication::FinishEvent (  )  [virtual]

Definition at line 122 of file PTGuiApplication.cxx.

00122                                    {    
00123   //
00124   // User actions after finishing of an event
00125 
00126 } 

void PTGuiApplication::FinishPrimary (  )  [virtual]

Definition at line 115 of file PTGuiApplication.cxx.

00115                                      {    
00116   //
00117   // User actions after finishing of a primary track
00118 
00119 }

void PTGuiApplication::GeneratePrimaries (  )  [virtual]

Definition at line 72 of file PTGuiApplication.cxx.

00072                                          {
00073   //
00074   // Fill the user stack with primary particles
00075  
00076 }

void PTGuiApplication::InitGeometry (  )  [virtual]

Definition at line 66 of file PTGuiApplication.cxx.

00066                                     {
00067   // Initialize geometry.
00068   
00069 }

PTGuiApplication * PTGuiApplication::Instance ( void   )  [inline, static]

Definition at line 51 of file PTGuiApplication.h.

00052 { return dynamic_cast<PTGuiApplication*>
00053                      (TVirtualMCApplication::Instance()); }

void PTGuiApplication::PostTrack (  )  [virtual]

Definition at line 108 of file PTGuiApplication.cxx.

00108                                  {    
00109   //
00110   // User actions after finishing of each track
00111 
00112 }

void PTGuiApplication::PreTrack (  )  [virtual]

Definition at line 93 of file PTGuiApplication.cxx.

00093                                 {    
00094   //
00095   // User actions at beginning of each track
00096 
00097 }

void PTGuiApplication::Stepping (  )  [virtual]

Definition at line 100 of file PTGuiApplication.cxx.

00100                                 {    
00101   //
00102   // User actions at each step
00103 
00104 }


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1