LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
genf::GeaneMCApplication Class Reference

#include "GeaneMCApplication.h"

Inheritance diagram for genf::GeaneMCApplication:

Public Member Functions

 GeaneMCApplication ()
 
virtual ~GeaneMCApplication ()
 
void InitMC ()
 
virtual void Field (const Double_t *x, Double_t *b) const
 
virtual void ConstructGeometry ()
 
virtual void FinishEvent ()
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void GeneratePrimaries ()
 
virtual void InitGeometry ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual void BeginPrimary ()
 
virtual void Stepping ()
 

Detailed Description

Definition at line 14 of file GeaneMCApplication.h.

Constructor & Destructor Documentation

genf::GeaneMCApplication::GeaneMCApplication ( )

Definition at line 8 of file GeaneMCApplication.cxx.

9 {
10 }
virtual genf::GeaneMCApplication::~GeaneMCApplication ( )
inlinevirtual

Definition at line 19 of file GeaneMCApplication.h.

References ConstructGeometry(), Field(), InitMC(), and x.

19 {;}

Member Function Documentation

virtual void genf::GeaneMCApplication::BeginEvent ( )
inlinevirtual

Definition at line 35 of file GeaneMCApplication.h.

35 {;}
virtual void genf::GeaneMCApplication::BeginPrimary ( )
inlinevirtual

Definition at line 36 of file GeaneMCApplication.h.

36 {;}
void genf::GeaneMCApplication::ConstructGeometry ( )
virtual

Definition at line 12 of file GeaneMCApplication.cxx.

Referenced by ~GeaneMCApplication().

12  {
13  gGeoManager->CloseGeometry();
14  gMC->SetRootGeometry();
15 }
void genf::GeaneMCApplication::Field ( const Double_t *  x,
Double_t *  b 
) const
virtual

Construct user geometry

Definition at line 22 of file GeaneMCApplication.cxx.

References B, and genf::GFFieldManager::getFieldVal().

Referenced by ~GeaneMCApplication().

23 {
24  //assert(field!=NULL);
25  TVector3 pos(x[0],x[1],x[2]);
26  // TVector3 B = FieldManager::getInstance()->getField()->get(pos);
27  TVector3 B = GFFieldManager::getFieldVal(pos);
28  // std::cout << "GeaneMCApplication::Field()" << std::endl;
29  //B.Print();
30  b[0]=B.X();
31  b[1]=B.Y();
32  b[2]=B.Z();
33 }
Float_t x
Definition: compare.C:6
Int_t B
Definition: plot.C:25
static TVector3 getFieldVal(const TVector3 &x)
virtual void genf::GeaneMCApplication::FinishEvent ( )
inlinevirtual

Definition at line 28 of file GeaneMCApplication.h.

28 {;}
virtual void genf::GeaneMCApplication::FinishPrimary ( )
inlinevirtual

Definition at line 29 of file GeaneMCApplication.h.

29 {;}
virtual void genf::GeaneMCApplication::FinishRun ( )
inlinevirtual

Definition at line 30 of file GeaneMCApplication.h.

30 {;}
virtual void genf::GeaneMCApplication::GeneratePrimaries ( )
inlinevirtual

Definition at line 31 of file GeaneMCApplication.h.

31 {;}
virtual void genf::GeaneMCApplication::InitGeometry ( )
inlinevirtual

Definition at line 32 of file GeaneMCApplication.h.

32 {;}
void genf::GeaneMCApplication::InitMC ( )

Definition at line 17 of file GeaneMCApplication.cxx.

Referenced by ~GeaneMCApplication().

17  {
18  gMC->Init();
19  gMC->BuildPhysics();
20 }
virtual void genf::GeaneMCApplication::PostTrack ( )
inlinevirtual

Definition at line 33 of file GeaneMCApplication.h.

33 {;}
virtual void genf::GeaneMCApplication::PreTrack ( )
inlinevirtual

Definition at line 34 of file GeaneMCApplication.h.

34 {;}
virtual void genf::GeaneMCApplication::Stepping ( )
inlinevirtual

Definition at line 37 of file GeaneMCApplication.h.

37 {;}

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