EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InteractionsTests.cpp File Reference
#include <boost/test/data/test_case.hpp>
#include <boost/test/unit_test.hpp>
#include "Acts/Material/Interactions.hpp"
#include "Acts/Tests/CommonHelpers/PredefinedMaterials.hpp"
#include "Acts/Utilities/PdgParticle.hpp"
#include "Acts/Utilities/Units.hpp"
+ Include dependency graph for InteractionsTests.cpp:

Go to the source code of this file.

Functions

 BOOST_DATA_TEST_CASE (energy_loss_consistency, thickness *particle *momentum, x, i, m, q, p)
 
 BOOST_DATA_TEST_CASE (multiple_scattering_consistency, thickness *particle *momentum, x, i, m, q, p)
 
 BOOST_DATA_TEST_CASE (vacuum, thickness *particle *momentum, x, i, m, q, p)
 

Variables

static const Acts::Material material = Acts::Test::makeSilicon()
 
static const double valuesThickness [] = {200_um, 1_mm}
 
static auto thickness = data::make(valuesThickness)
 
static const int pdg []
 
static const double mass [] = {511_keV, 105.7_MeV, 139.6_MeV, 938.3_MeV}
 
static const double charge [] = {-1_e, -1_e, 1_e, 1_e}
 
static const auto particle
 
static const auto momentum_low = data::xrange(100_MeV, 10_GeV, 100_MeV)
 
static const auto momentum_med = data::xrange(10_GeV, 100_GeV, 10_GeV)
 
static const auto momentum_high = data::xrange(100_GeV, 10_TeV, 100_GeV)
 
static const auto momentum = momentum_low + momentum_med + momentum_high
 

Function Documentation

BOOST_DATA_TEST_CASE ( energy_loss_consistency  ,
thickness *particle momentum,
x  ,
,
,
,
p   
)

Definition at line 42 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 42 of file InteractionsTests.cpp

References Acts::computeEnergyLossBethe(), Acts::computeEnergyLossLandau(), Acts::computeEnergyLossLandauSigma(), Acts::computeEnergyLossLandauSigmaQOverP(), Acts::computeEnergyLossMean(), Acts::computeEnergyLossMode(), Acts::computeEnergyLossRadiative(), material, and p.

+ Here is the call graph for this function:

BOOST_DATA_TEST_CASE ( multiple_scattering_consistency  ,
thickness *particle momentum,
x  ,
,
,
,
p   
)

Definition at line 71 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 71 of file InteractionsTests.cpp

References Acts::computeMultipleScatteringTheta0(), Acts::UnitConstants::m, material, p, and x.

+ Here is the call graph for this function:

BOOST_DATA_TEST_CASE ( vacuum  ,
thickness *particle momentum,
x  ,
,
,
,
p   
)

Definition at line 95 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 95 of file InteractionsTests.cpp

References Acts::computeEnergyLossBethe(), Acts::computeEnergyLossLandau(), Acts::computeEnergyLossLandauSigma(), Acts::computeEnergyLossLandauSigmaQOverP(), Acts::computeEnergyLossMean(), Acts::computeEnergyLossMode(), Acts::computeEnergyLossRadiative(), Acts::computeMultipleScatteringTheta0(), Acts::UnitConstants::m, p, and x.

+ Here is the call graph for this function:

Variable Documentation

const double charge[] = {-1_e, -1_e, 1_e, 1_e}
static

Definition at line 30 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 30 of file InteractionsTests.cpp

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_DATA_TEST_CASE(), ActsExamples::HepMC3Particle::charge(), PHActsSiliconSeeding::circleFitSeed(), PHActsSiliconSeeding::createSvtxTrack(), CbmRichTrackExtrapolationIdeal::DoExtrapolation(), CbmRichTrackExtrapolationMirrorIdeal::DoExtrapolation(), genfit::EventDisplay::drawEvent(), EicIdealTrackingCode::Exec(), PHTpcEventExporter::exportEvent(), genfit::RKTrackRep::extrapolateBy(), genfit::RKTrackRep::extrapolateToCone(), genfit::RKTrackRep::extrapolateToCylinder(), genfit::RKTrackRep::extrapolateToLine(), genfit::RKTrackRep::extrapolateToSphere(), genfit::RKTrackRep::extrapToPoint(), SvtxEvaluator::fillOutputNtuples(), erhic::EventMC::FinalStateCharge(), PHGenFit2::Track::get_charge(), PHGenFit::Track::get_charge(), PHTpcTrackFollower::get_projected_coordinate(), PHActsSiliconSeeding::getCharge(), EicHtcTask::GetFairTrackParP(), PndPidCorrelator::GetTrackInfo(), PHActsTrkFitter::loopTracks(), main(), PHActsSiliconSeeding::makeSvtxTracks(), ActsExamples::Pythia8Generator::operator()(), ActsExamples::HepMC3Particle::particle(), PHTpcTracker::Process(), CbmRich::ProcessHits(), genfit::KalmanFitterRefTrack::processTrackWithRep(), genfit::KalmanFitter::processTrackWithRep(), starlightPythia::produceEvent(), pygdir(), Acts::Test::runTest(), genfit::TrackCand::set6DSeed(), GFTrackCand::set6DSeed(), starlightParticle::setCharge(), genfit::FitStatus::setCharge(), Smear::Acceptance::SetCharge(), PndPidCandidate::SetCharge(), genfit::TrackCand::setPosMomSeed(), GFTrackCand::setPosMomSeed(), PndTrackCand::setTrackSeed(), Acts::AtlasStepper< bfield_t >::step(), Acts::AtlasStepper< bfield_t >::update(), and PHG4ZDCSteppingAction::UserSteppingAction().

const Acts::Material material = Acts::Test::makeSilicon()
static

Definition at line 21 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 21 of file InteractionsTests.cpp

Referenced by BOOST_DATA_TEST_CASE().

const auto momentum = momentum_low + momentum_med + momentum_high
static

Definition at line 37 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 37 of file InteractionsTests.cpp

Referenced by TrackEvaluation::add_truth_information(), AddFlowToParent(), PHTpcResiduals::addTrackState(), Acts::Test::BOOST_AUTO_TEST_CASE(), BuildBeAST_0_0(), BuildBeAST_0_1(), BuildePHENIX_0_0(), BuildPerfectDetector(), BuildSTAR_0_0(), BuildWithTof(), BuildZEUS_0_0(), Acts::computeEnergyLossRadiative(), Acts::Test::consistencyCheck(), ConvertStarlightAsciiToTree(), G4Pythia6Decayer::CreateDynamicParticle(), Acts::deriveEnergyLossRadiativeQOverP(), CbmRichTrainAnnElectrons::DiffElandPi(), RKTrackRep::estimateStep(), CbmRichTestHits::Exec(), CbmRichTestSim::Exec(), ActsExamples::DuplicationPlotTool::fill(), ActsExamples::TrackSummaryPlotTool::fill(), ActsExamples::FakeRatePlotTool::fill(), ActsEvaluator::fillProtoTrack(), ActsTransformations::fillSvtxTrackStates(), flowAfterburner(), EicHtcTask::GetFairTrackParP(), G4Pythia6Decayer::GetParticleMomentum(), PndPidCorrelator::GetTrackInfo(), G4Pythia6Decayer::ImportDecayProducts(), EicSmearTask::Init(), PHActsTrkFitter::loopTracks(), main(), PHActsTrackProjection::makeTrackParams(), PHTpcResiduals::makeTrackParams(), MoveDescendantsToParent(), Acts::AtlasStepper< bfield_t >::resetState(), CbmRichGeoTest::RingParameters(), genfit::RKTrackRep::RKutta(), RKTrackRep::RKutta(), NaiveTrackParameterization::SetMoCaMomentum(), EicBoxGenerator::SetMomentum(), erhic::ParticleMCbase::SetP(), erhic::ParticleMCbase::SetPt(), erhic::ParticleMCbase::SetPz(), EicRcParticle::SetRcVtxMomentum(), NaiveTrackParameterization::SetRecoMomentum(), simulation(), Smear::ParticleID::Smear(), Acts::AtlasStepper< bfield_t >::step(), Acts::MaterialInteractor::UpdateResult(), and ActsEvaluator::visitTrackStates().

const auto momentum_high = data::xrange(100_GeV, 10_TeV, 100_GeV)
static

Definition at line 36 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 36 of file InteractionsTests.cpp

const auto momentum_low = data::xrange(100_MeV, 10_GeV, 100_MeV)
static

Definition at line 34 of file InteractionsTests.cpp.

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

const auto momentum_med = data::xrange(10_GeV, 100_GeV, 10_GeV)
static

Definition at line 35 of file InteractionsTests.cpp.

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

const auto particle
static
Initial value:
=
data::make(pdg) ^ data::make(mass) ^ data::make(charge)

Definition at line 31 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 31 of file InteractionsTests.cpp

Referenced by PHG4ParticleGeneratorBase::AddParticle(), KFParticle_Container::addParticle(), erhic::EventFromAsciiFactory< T >::AddParticle(), FairMCApplication::AddParticles(), SvtxHitEval::all_hits_from(), SvtxClusterEval::all_truth_clusters(), JetTruthEval::all_truth_hits(), JetRecoEval::all_truth_jets(), SvtxHitEval::all_truth_particles(), SvtxClusterEval::all_truth_particles(), SvtxVertexEval::all_truth_points(), CaloRawClusterEval::all_truth_primary_particles(), JetTruthEval::all_truth_showers(), PHG4TpcDirectLaser::AppendLaserTrack(), PHSartreParticleTrigger::Apply(), EicEventAssembler::AssignScatteredLepton(), BOOST_AUTO_TEST_CASE(), erhic::Pythia6EventBuilder::BuildEvent(), genfit::Track::checkConsistency(), EicRcEvent::ClearParticles(), EicEventAssembler::ComposeCalorimeterInformation(), KFParticle_Tools::constrainToVertex(), P6DExtDecayerPhysics::ConstructProcess(), ActsFatras::Simulator< charged_selector_t, charged_simulator_t, neutral_selector_t, neutral_simulator_t >::copyOutputs(), erhic::Pythia6ParticleBuilder::Create(), ActsExamples::HepMC3Event::createGenVertex(), PHG4TruthEventAction::EndOfEventAction(), erhic::EventRapgap::ExchangeBoson(), erhic::EventSartre::ExchangeBoson(), EicEventAssembler::Exec(), ActsExamples::PrintParticles::execute(), ActsExamples::TruthTrackFinder::execute(), ActsExamples::ParticleSmearing::execute(), ActsExamples::TruthSeedSelector::execute(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), ActsExamples::HepMC3Event::finalState(), FastJetAlgoSub::get_jets(), FastJetAlgo::get_jets(), SvtxVertexEval::get_ntracks_contribution(), BaseTruthEval::get_particle(), get_particle_by_name(), BaseTruthEval::get_primary_particle(), CbmMCTrack::GetMass(), Poacher::GetNextEvent(), EicBlackHole::GetParentIDs(), genfit::AbsTrackRep::getPDGCharge(), EicRcEvent::GetRcParticleMatchingGenMcTrack(), QAG4SimulationKFParticle::getTruthTrack(), KFParticle_truthAndDetTools::getTruthTrack(), EicRcEvent::HadronicFinalState(), erhic::HandleHepmcParticle(), ParticleIdentifier::IdentifyBeams(), G4Pythia6Decayer::ImportDecayProducts(), PHG4Reco::InitRun(), KFParticle_Container::KFParticle_Container(), main(), SvtxClusterEval::max_truth_particle_by_cluster_energy(), SvtxHitEval::max_truth_particle_by_energy(), SvtxClusterEval::max_truth_particle_by_energy(), ActsExamples::Pythia8Generator::operator()(), ActsExamples::ParametricParticleGenerator::operator()(), KFParticle_Container::operator=(), pepsimainerhic(), EicEventAssembler::PerformPidCalculations(), FairMCApplication::PreTrack(), ActsExamples::PrimaryGeneratorAction::PrimaryGeneratorAction(), CaloEvaluator::printInputInfo(), KFParticle_DST::printNode(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHTruthTrackSeeding::Process(), PHG4ParticleGun::process_event(), MomentumEvaluator::process_event(), PHG4InEventReadBack::process_event(), PHG4IonGun::process_event(), PHG4ParticleGenerator::process_event(), PHG4ParticleGenerator_flat_pT::process_event(), PHG4ParticleGeneratorD0::process_event(), HepMCNodeReader::process_event(), PHSartre::process_event(), PHG4DstCompressReco::process_event(), CreateCZHitContainer::process_event(), PHG4ParticleGeneratorVectorMeson::process_event(), PHG4SimpleEventGenerator::process_event(), PHG4DSTReader::process_event(), TpcRS::process_event(), PHG4TrackFastSim::process_event(), B0TrackFastSim::process_event(), QAG4SimulationCalorimeter::process_event_G4Hit(), QAG4SimulationEicCalorimeter::process_event_G4Hit(), EicDetector::ProcessHits(), PHG4TruthEventAction::ProcessShowers(), starlightPythia::produceEvent(), PHG4TruthEventAction::PruneShowers(), CbmStack::PushTrack(), PndStack::PushTrack(), read(), ActsExamples::CsvParticleReader::read(), ActsExamples::EventGenerator::read(), EicAsciiBoxGenerator::ReadEvent(), EicEventAssembler::ReAssignMomentumValue(), ActsExamples::HepMC3Vertex::removeParticleIn(), ActsExamples::HepMC3Vertex::removeParticleOut(), KFParticle_Container::Reset(), SelectorFcn(), ActsFatras::ParticleSimulator< propagator_t, physics_list_t, hit_surface_selector_t >::simulate(), EicMCApplication::Stepping(), genfit::AbsTrackRep::switchPDGSign(), PHG4EPDSteppingAction::UserSteppingAction(), ActsExamples::TrackFinderPerformanceWriter::Impl::write(), ActsExamples::TrackFitterPerformanceWriter::writeT(), ActsExamples::CsvParticleWriter::writeT(), ActsExamples::RootParticleWriter::writeT(), ActsExamples::RootTrajectoryWriter::writeT(), and ActsExamples::CKFPerformanceWriter::writeT().

auto thickness = data::make(valuesThickness)
static

Definition at line 25 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 25 of file InteractionsTests.cpp

Referenced by AddLayers_MiniTPCDrift(), Acts::CylinderVolumeBuilder::analyzeContent(), Barrel_Hcal(), Acts::Test::Layers::BOOST_AUTO_TEST_CASE(), Acts::Test::BOOST_AUTO_TEST_CASE(), PHG4TpcDigitizer::CalculateCylinderCellADCScale(), PHG4InttDigitizer::CalculateLadderCellADCScale(), InttClusterizer::CalculateLadderThresholds(), PHG4MvtxDigitizer::CalculateMvtxLadderCellADCScale(), Acts::DD4hepLayerBuilder::centralLayers(), Acts::detail::combineSlabs(), Acts::computeEnergyLossBethe(), Acts::computeEnergyLossLandau(), Acts::computeEnergyLossLandauSigma(), Acts::computeEnergyLossLandauSigmaQOverP(), PHG4FullProjTiltedSpacalDetector::Construct_AzimuthalSeg(), PHG4MicromegasDetector::construct_micromegas(), PHG4TpcEndCapDetector::ConstructEndCapAssembly(), GemGeoParData::ConstructGeometry(), PHG4BeamlineMagnetDetector::ConstructMe(), PHG4CylinderDetector::ConstructMe(), PHG4TpcDetector::ConstructTpcCageVolume(), PHG4TpcDetector::ConstructTpcGasVolume(), RawTowerBuilder::CreateNodes(), Acts::TGeoSurfaceConverter::cylinderComponents(), Acts::CylinderVolumeBounds::CylinderVolumeBounds(), Acts::deriveEnergyLossBetheQOverP(), Acts::deriveEnergyLossLandauQOverP(), Acts::TGeoSurfaceConverter::discComponents(), EtmAzimuthalScan::DoIt(), Acts::GeometryView3D::drawSegmentBase(), Acts::GeometryView3D::drawSurfaceArray(), EGEMSetup(), Acts::DD4hepLayerBuilder::endcapLayers(), Acts::CylinderVolumeHelper::estimateAndCheckDimension(), ActsExamples::DigitizationAlgorithm::execute(), ExitWindowV2::ExitWindowV2(), FGEMSetup(), fullMaterial(), get_thickness(), PHG4CylinderGeom_Spacalv3::identify(), PHG4CylinderGeom_Spacalv2::identify(), PHG4CylinderGeom_Spacalv1::identify(), HcalRawTowerBuilder::InitRun(), main(), make_barrel_layer_basic(), make_barrel_layer_LYSO_basic(), make_barrel_pixel_layer(), makeGeom(), Acts::ProtoLayer::measure(), MediaSliceArray::MediaSliceArray(), MuMegasGeoParData::PlaceMaterialLayer(), GemGeoParData::PlaceMaterialLayer(), Acts::TGeoSurfaceConverter::planeComponents(), MicromegasClusterizer::process_event(), rad_length(), PHG4CylinderGeom_Spacalv1::SetDefault(), MediaLayer::SetThickness(), Acts::EventDataView3DTest::testMultiTrajectory(), TrackingServiceCone(), TrackingServiceCylinder(), and VstRadLength().

const double valuesThickness[] = {200_um, 1_mm}
static

Definition at line 24 of file InteractionsTests.cpp.

View newest version in sPHENIX GitHub at line 24 of file InteractionsTests.cpp