#include <CCalMagneticField.hh>
Definition at line 38 of file CCalMagneticField.hh.
◆ CCalMagneticField()
CCalMagneticField::CCalMagneticField |
( |
const G4String & |
name | ) |
|
Definition at line 42 of file CCalMagneticField.cc.
52 G4cout <<
" ==> Opening file " << filename <<
" to read magnetic field..." 54 G4String pathName = getenv(
"CCAL_GLOBALPATH");
75 G4cout <<
tab <<
"Position " << i <<
" " <<
pos[i] <<
" Slope " 76 <<
slope[i] <<
" Intercept " << intercept[i] <<
G4endl;
bool openGeomFile(std::ifstream &is, const G4String &pathname, const G4String &filename)
std::ifstream & findDO(std::ifstream &, const G4String &)
G4GLOB_DLL std::ostream G4cout
std::ostream & tab(std::ostream &)
◆ ~CCalMagneticField()
CCalMagneticField::~CCalMagneticField |
( |
| ) |
|
◆ GetConstantFieldvalue()
G4double CCalMagneticField::GetConstantFieldvalue |
( |
| ) |
const |
|
inline |
◆ GetFieldValue()
void CCalMagneticField::GetFieldValue |
( |
const double |
Point[3], |
|
|
double * |
Bfield |
|
) |
| const |
|
virtual |
Definition at line 152 of file CCalMagneticField.cc.
void MagneticField(const double Point[3], double Bfield[3]) const
◆ GetGlobalFieldManager()
◆ MagneticField() [1/2]
void CCalMagneticField::MagneticField |
( |
const double |
Point[3], |
|
|
double |
Bfield[3] |
|
) |
| const |
Definition at line 100 of file CCalMagneticField.cc.
103 for (i=0; i<2; i++) {
111 for (i=0; i<
npts; i++) {
112 if (xnew >
pos[i]*
mm) {
119 if (scor < 0.) scor = 0.;
120 if (scor > 1.) scor = 1.0;
126 G4cout <<
"Field at x: " <<
x[0]/
mm <<
"mm (" << xnew <<
") = " <<
128 <<
"T (m = " << m1 <<
", c = " <<
129 c1 <<
", scale = " << scor <<
")"
G4GLOB_DLL std::ostream G4cout
static const double tesla
static const double kilogauss
◆ MagneticField() [2/2]
Definition at line 136 of file CCalMagneticField.cc.
void MagneticField(const double Point[3], double Bfield[3]) const
◆ fval
◆ fVerbosity
G4int CCalMagneticField::fVerbosity |
|
private |
◆ intercept
◆ npts
G4int CCalMagneticField::npts |
|
private |
◆ pos
◆ slope
◆ xoff
The documentation for this class was generated from the following files: