EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHField3DCylindrical Class Reference

#include <fun4all_coresoftware/blob/master/offline/packages/PHField/PHField3DCylindrical.h>

+ Inheritance diagram for PHField3DCylindrical:
+ Collaboration diagram for PHField3DCylindrical:

Public Member Functions

 PHField3DCylindrical (const std::string &filename, int verb=0, const float magfield_rescale=1.0)
 
 ~PHField3DCylindrical () override
 
void GetFieldValue (const double Point[4], double *Bfield) const override
 
void GetFieldCyl (const double CylPoint[4], double *Bfield) const
 
- Public Member Functions inherited from PHField
 PHField (const int verb=0)
 constructor
 
virtual ~PHField ()
 
void Verbosity (const int i)
 
int Verbosity () const
 

Protected Attributes

std::vector< std::vector
< std::vector< float > > > 
BFieldZ_
 
std::vector< std::vector
< std::vector< float > > > 
BFieldR_
 
std::vector< std::vector
< std::vector< float > > > 
BFieldPHI_
 
std::vector< float > z_map_
 
std::vector< float > r_map_
 
std::vector< float > phi_map_
 
float maxz_
 
float minz_
 
- Protected Attributes inherited from PHField
int m_Verbosity
 

Private Types

typedef boost::tuple< float,
float, float > 
trio
 

Private Member Functions

bool bin_search (const std::vector< float > &vec, unsigned start, unsigned end, const float &key, unsigned &index) const
 
void print_map (std::map< trio, trio >::iterator &it) const
 

Detailed Description

Definition at line 31 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 31 of file PHField3DCylindrical.h

Member Typedef Documentation

typedef boost::tuple<float, float, float> PHField3DCylindrical::trio
private

Definition at line 33 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 33 of file PHField3DCylindrical.h

Constructor & Destructor Documentation

PHField3DCylindrical::PHField3DCylindrical ( const std::string &  filename,
int  verb = 0,
const float  magfield_rescale = 1.0 
)

Definition at line 22 of file PHField3DCylindrical.cc.

View newest version in sPHENIX GitHub at line 22 of file PHField3DCylindrical.cc

References BFieldPHI_, BFieldR_, BFieldZ_, Acts::IntegrationTest::Bz, Acts::UnitConstants::cm, exit(), Acts::Test::gauss(), ir(), it, G4MAGNET::magfield_rescale, maxz_, minz_, phi, phi_map_, print_map(), r_map_, vector(), PHField::Verbosity(), z, and z_map_.

+ Here is the call graph for this function:

PHField3DCylindrical::~PHField3DCylindrical ( )
inlineoverride

Definition at line 37 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 37 of file PHField3DCylindrical.h

Member Function Documentation

bool PHField3DCylindrical::bin_search ( const std::vector< float > &  vec,
unsigned  start,
unsigned  end,
const float &  key,
unsigned &  index 
) const
private

Definition at line 431 of file PHField3DCylindrical.cc.

View newest version in sPHENIX GitHub at line 431 of file PHField3DCylindrical.cc

References start().

+ Here is the call graph for this function:

void PHField3DCylindrical::GetFieldCyl ( const double  CylPoint[4],
double *  Bfield 
) const

Definition at line 274 of file PHField3DCylindrical.cc.

View newest version in sPHENIX GitHub at line 274 of file PHField3DCylindrical.cc

References BFieldPHI_, BFieldR_, BFieldZ_, Acts::Test::gauss(), M_PI, phi, phi_map_, r_map_, PHField::Verbosity(), z, and z_map_.

Referenced by GetFieldValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHField3DCylindrical::GetFieldValue ( const double  Point[4],
double *  Bfield 
) const
overridevirtual

access field value Follow the convention of G4ElectroMagneticField

Parameters
[in]Pointspace time coordinate. x, y, z, t in Geant4/CLHEP units
[out]Bfieldfield value. In the case of magnetic field, the order is Bx, By, Bz in in Geant4/CLHEP units

Implements PHField.

Definition at line 217 of file PHField3DCylindrical.cc.

View newest version in sPHENIX GitHub at line 217 of file PHField3DCylindrical.cc

References cos(), GetFieldCyl(), M_PI, maxz_, minz_, phi, PHField::Verbosity(), x, y, and z.

+ Here is the call graph for this function:

void PHField3DCylindrical::print_map ( std::map< trio, trio >::iterator &  it) const
private

Definition at line 457 of file PHField3DCylindrical.cc.

View newest version in sPHENIX GitHub at line 457 of file PHField3DCylindrical.cc

References Acts::UnitConstants::cm, and Acts::Test::gauss().

Referenced by PHField3DCylindrical().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<std::vector<std::vector<float> > > PHField3DCylindrical::BFieldPHI_
protected

Definition at line 45 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 45 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().

std::vector<std::vector<std::vector<float> > > PHField3DCylindrical::BFieldR_
protected

Definition at line 44 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 44 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().

std::vector<std::vector<std::vector<float> > > PHField3DCylindrical::BFieldZ_
protected

Definition at line 43 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 43 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().

float PHField3DCylindrical::maxz_
protected

Definition at line 52 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 52 of file PHField3DCylindrical.h

Referenced by GetFieldValue(), and PHField3DCylindrical().

float PHField3DCylindrical::minz_
protected

Definition at line 52 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 52 of file PHField3DCylindrical.h

Referenced by GetFieldValue(), and PHField3DCylindrical().

std::vector<float> PHField3DCylindrical::phi_map_
protected

Definition at line 50 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 50 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().

std::vector<float> PHField3DCylindrical::r_map_
protected

Definition at line 49 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 49 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().

std::vector<float> PHField3DCylindrical::z_map_
protected

Definition at line 48 of file PHField3DCylindrical.h.

View newest version in sPHENIX GitHub at line 48 of file PHField3DCylindrical.h

Referenced by GetFieldCyl(), and PHField3DCylindrical().


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