EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include "Acts/MagneticField/ConstantBField.hpp"
#include "Acts/MagneticField/InterpolatedBFieldMap.hpp"
#include "Acts/MagneticField/MagneticFieldContext.hpp"
#include "Acts/Utilities/Helpers.hpp"
#include "Acts/Utilities/Units.hpp"
#include "ActsExamples/Framework/Sequencer.hpp"
#include "ActsExamples/Options/CommonOptions.hpp"
#include "ActsExamples/Plugins/BField/BFieldOptions.hpp"
#include "ActsExamples/Utilities/Options.hpp"
#include <random>
#include <string>
#include <boost/program_options.hpp>
#include <boost/progress.hpp>
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 | |
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
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().
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().
int main | ( | int | argc, |
char * | argv[] | ||
) |
main executable
argc | The argument count |
argv | The 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().