LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
GeaneMCApplication.cxx
Go to the documentation of this file.
1
#include "
larreco/Genfit/GeaneMCApplication.h
"
2
#include "TVirtualMC.h"
3
#include "TSystem.h"
4
#include"
GFFieldManager.h
"
5
6
7
8
genf::GeaneMCApplication::GeaneMCApplication
()
9
{
10
}
11
12
void
genf::GeaneMCApplication::ConstructGeometry
(){
13
gGeoManager->CloseGeometry();
14
gMC->SetRootGeometry();
15
}
16
17
void
genf::GeaneMCApplication::InitMC
(){
18
gMC->Init();
19
gMC->BuildPhysics();
20
}
21
22
void
genf::GeaneMCApplication::Field
(
const
Double_t*
x
, Double_t* b)
const
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
}
34
35
36
//ClassImp(GeaneMCApplication)
37
38
x
Float_t x
Definition:
compare.C:6
B
Int_t B
Definition:
plot.C:25
genf::GeaneMCApplication::GeaneMCApplication
GeaneMCApplication()
Definition:
GeaneMCApplication.cxx:8
genf::GeaneMCApplication::InitMC
void InitMC()
Definition:
GeaneMCApplication.cxx:17
GeaneMCApplication.h
genf::GeaneMCApplication::Field
virtual void Field(const Double_t *x, Double_t *b) const
Definition:
GeaneMCApplication.cxx:22
genf::GFFieldManager::getFieldVal
static TVector3 getFieldVal(const TVector3 &x)
Definition:
GFFieldManager.h:53
GFFieldManager.h
genf::GeaneMCApplication::ConstructGeometry
virtual void ConstructGeometry()
Definition:
GeaneMCApplication.cxx:12
larreco
v07_10_02
source
larreco
Genfit
GeaneMCApplication.cxx
Generated on Wed Dec 12 2018 14:42:55 for LArSoft by
1.8.11