Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
Genfit
obsolete
GeaneMCApplication.cxx
Go to the documentation of this file.
1
#include "larreco/Genfit/GeaneMCApplication.h"
2
#include "TVirtualMC.h"
3
#include "TGeoManager.h"
4
#include "TVector3.h"
5
#include"
GFFieldManager.h
"
6
7
8
9
genf::GeaneMCApplication::GeaneMCApplication
()
10
{
11
}
12
13
void
genf::GeaneMCApplication::ConstructGeometry
(){
14
gGeoManager->CloseGeometry();
15
gMC->SetRootGeometry();
16
}
17
18
void
genf::GeaneMCApplication::InitMC
(){
19
gMC->Init();
20
gMC->BuildPhysics();
21
}
22
23
void
genf::GeaneMCApplication::Field
(
const
Double_t*
x
, Double_t*
b
)
const
24
{
25
//assert(field!=NULL);
26
TVector3
pos
(x[0],x[1],x[2]);
27
// TVector3 B = FieldManager::getInstance()->getField()->get(pos);
28
TVector3
B
=
GFFieldManager::getFieldVal
(pos);
29
// std::cout << "GeaneMCApplication::Field()" << std::endl;
30
//B.Print();
31
b[0]=B.X();
32
b[1]=B.Y();
33
b[2]=B.Z();
34
}
35
36
37
//ClassImp(GeaneMCApplication)
B
Definition:
pointersEqual_t.cc:9
genf::GeaneMCApplication::GeaneMCApplication
GeaneMCApplication()
Definition:
GeaneMCApplication.cxx:9
genf::GeaneMCApplication::InitMC
void InitMC()
Definition:
GeaneMCApplication.cxx:18
genf::GeaneMCApplication::Field
virtual void Field(const Double_t *x, Double_t *b) const
Definition:
GeaneMCApplication.cxx:23
MakeVectorFile.pos
tuple pos
Definition:
MakeVectorFile.py:68
genf::GFFieldManager::getFieldVal
static TVector3 getFieldVal(const TVector3 &x)
Definition:
GFFieldManager.h:53
b
static bool * b
Definition:
config.cpp:1043
train.x
list x
Definition:
train.py:276
GFFieldManager.h
genf::GeaneMCApplication::ConstructGeometry
virtual void ConstructGeometry()
Definition:
GeaneMCApplication.cxx:13
Generated by
1.8.11