EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BFieldAccessExample.cpp File Reference
+ Include dependency graph for BFieldAccessExample.cpp:

Go to the source code of this file.

Typedefs

using UniformDist = std::uniform_real_distribution< double >
 
using RandomEngine = std::mt19937
 

Functions

template<typename field_t , typename field_context_t >
void accessStepWise (field_t &bField, field_context_t &bFieldContext, size_t events, size_t theta_steps, double theta_0, double theta_step, size_t phi_steps, double phi_0, double phi_step, size_t access_steps, double access_step)
 
template<typename field_t , typename field_context_t >
void accessRandom (field_t &bField, field_context_t &bFieldContext, size_t totalSteps, double radius)
 
int main (int argc, char *argv[])
 main executable
 

Typedef Documentation

using RandomEngine = std::mt19937

Definition at line 35 of file BFieldAccessExample.cpp.

View newest version in sPHENIX GitHub at line 35 of file BFieldAccessExample.cpp

using UniformDist = std::uniform_real_distribution<double>

The main executable

Creates an InterpolatedBFieldMap from a txt or csv file It then tests random versus stepwise access with the direct getField access and the cell.getField access with cell caching

Definition at line 34 of file BFieldAccessExample.cpp.

View newest version in sPHENIX GitHub at line 34 of file BFieldAccessExample.cpp

Function Documentation

template<typename field_t , typename field_context_t >
void accessRandom ( field_t &  bField,
field_context_t &  bFieldContext,
size_t  totalSteps,
double  radius 
)

Definition at line 85 of file BFieldAccessExample.cpp.

View newest version in sPHENIX GitHub at line 85 of file BFieldAccessExample.cpp

References Acts::VectorHelpers::position().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename field_t , typename field_context_t >
void accessStepWise ( field_t &  bField,
field_context_t &  bFieldContext,
size_t  events,
size_t  theta_steps,
double  theta_0,
double  theta_step,
size_t  phi_steps,
double  phi_0,
double  phi_step,
size_t  access_steps,
double  access_step 
)

Definition at line 38 of file BFieldAccessExample.cpp.

View newest version in sPHENIX GitHub at line 38 of file BFieldAccessExample.cpp

References cos(), phi, Acts::VectorHelpers::position(), and theta().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

main executable

Parameters
argcThe argument count
argvThe argument list

Definition at line 121 of file BFieldAccessExample.cpp.

View newest version in sPHENIX GitHub at line 121 of file BFieldAccessExample.cpp

References kdfinder::abs(), accessRandom(), accessStepWise(), ActsExamples::Options::addBFieldOptions(), ActsExamples::Options::addSequencerOptions(), Acts::IntegrationTest::bField, ActsExamples::Sequencer::Config::events, M_PI, Acts::Test::magFieldContext, ActsExamples::Options::makeDefaultOptions(), Acts::UnitConstants::mm, nEvents, ActsExamples::Options::parse(), ActsExamples::Options::readBField(), and ActsExamples::Options::readSequencerConfig().

+ Here is the call graph for this function: