Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/SpacePointFormation/SpacePointBuilder.hpp>
Public Member Functions | |
SpacePointBuilder (const SpacePointBuilderConfig &cfg, std::function< spacepoint_t(Acts::Vector3, Acts::Vector2, boost::container::static_vector< SourceLink, 2 >)> func, std::unique_ptr< const Logger > logger=getDefaultLogger("SpamcePointBuilder", Logging::INFO)) | |
SpacePointBuilder ()=default | |
template<template< typename...> typename container_t> | |
void | buildSpacePoint (const GeometryContext &gctx, const std::vector< SourceLink > &sourceLinks, const SpacePointBuilderOptions &opt, std::back_insert_iterator< container_t< spacepoint_t >> spacePointIt) const |
Calculates the space points out of a given collection of SourceLinks and stores the results. | |
void | makeSourceLinkPairs (const GeometryContext &gctx, const std::vector< SourceLink > &slinksFront, const std::vector< SourceLink > &slinksBack, std::vector< std::pair< SourceLink, SourceLink >> &slinkPairs, const StripPairOptions &pairOpt) const |
Searches possible combinations of two SourceLinks on different surfaces that may come from the same particles. | |
Protected Member Functions | |
const Logger & | logger () const |
Protected Attributes | |
SpacePointBuilderConfig | m_config |
std::function< spacepoint_t(Acts::Vector3, Acts::Vector2, boost::container::static_vector < SourceLink, 2 >)> | m_spConstructor |
Function to create external space point The constructor of spacepoint_t with Vector3 global pos, Vector2 global cov, and vector of source link pointers. | |
std::unique_ptr< const Acts::Logger > | m_logger |
the logging instance | |
std::shared_ptr< const SpacePointUtility > | m_spUtility |
After the particle interaction with surfaces are recorded and digitized measurements on the pixel or strip detectors need further treatment. This class takes the SouceLinks and provides the corresponding space points.
Definition at line 35 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 35 of file SpacePointBuilder.hpp
Acts::SpacePointBuilder< spacepoint_t >::SpacePointBuilder | ( | const SpacePointBuilderConfig & | cfg, |
std::function< spacepoint_t(Acts::Vector3, Acts::Vector2, boost::container::static_vector< SourceLink, 2 >)> | func, | ||
std::unique_ptr< const Logger > | logger = getDefaultLogger("SpamcePointBuilder", Logging::INFO) |
||
) |
cfg | The configuration for the space point builder |
func | The function that provides user's SP constructor with global pos, global cov, and sourceLinks. |
logger | The logging instance |
Definition at line 11 of file SpacePointBuilder.ipp.
View newest version in sPHENIX GitHub at line 11 of file SpacePointBuilder.ipp
References cfg, and Acts::SpacePointBuilder< spacepoint_t >::m_spUtility.
|
default |
void Acts::SpacePointBuilder< spacepoint_t >::buildSpacePoint | ( | const GeometryContext & | gctx, |
const std::vector< SourceLink > & | sourceLinks, | ||
const SpacePointBuilderOptions & | opt, | ||
std::back_insert_iterator< container_t< spacepoint_t >> | spacePointIt | ||
) | const |
Calculates the space points out of a given collection of SourceLinks and stores the results.
gctx | The current geometry context object, e.g. alignment |
sourceLinks | vector of Sourcelink |
opt | option for the space point building. It contains the ends of the strips for strip SP building |
spacePointIt | Output iterator for the space point |
Definition at line 23 of file SpacePointBuilder.ipp.
View newest version in sPHENIX GitHub at line 23 of file SpacePointBuilder.ipp
References ACTS_ERROR, Acts::Test::cov, Acts::SpacePointParameters::firstBtmToTop, Acts::SpacePointParameters::m, testing::internal::move(), Acts::SpacePointBuilderOptions::paramCovAccessor, Acts::SpacePointParameters::secondBtmToTop, Acts::SpacePointBuilderOptions::stripEndsPair, Acts::SpacePointBuilderOptions::stripLengthGapTolerance, Acts::SpacePointBuilderOptions::stripLengthTolerance, ActsTests::PropagationDatasets::theta, and Acts::SpacePointBuilderOptions::vertex.
|
inlineprotected |
Definition at line 95 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 95 of file SpacePointBuilder.hpp
void Acts::SpacePointBuilder< spacepoint_t >::makeSourceLinkPairs | ( | const GeometryContext & | gctx, |
const std::vector< SourceLink > & | slinksFront, | ||
const std::vector< SourceLink > & | slinksBack, | ||
std::vector< std::pair< SourceLink, SourceLink >> & | slinkPairs, | ||
const StripPairOptions & | pairOpt | ||
) | const |
Searches possible combinations of two SourceLinks on different surfaces that may come from the same particles.
gctx | The current geometry context object, e.g. alignment |
slinksFront | vector of Sourcelinks on a surface |
slinksBack | vector of SoruceLinks on another surface |
slinkPairs | storage of the SouceLink pairs |
pairOpt | pair maker option with paramCovAccessor |
Definition at line 92 of file SpacePointBuilder.ipp.
View newest version in sPHENIX GitHub at line 92 of file SpacePointBuilder.ipp
References Acts::StripPairOptions::diffDist, Acts::StripPairOptions::diffPhi2, Acts::StripPairOptions::diffTheta2, distance(), i, j, Acts::StripPairOptions::paramCovAccessor, and Acts::StripPairOptions::vertex.
|
protected |
Definition at line 81 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 81 of file SpacePointBuilder.hpp
|
protected |
the logging instance
Definition at line 91 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 91 of file SpacePointBuilder.hpp
Referenced by Acts::SpacePointBuilder< SimSpacePoint >::logger().
|
protected |
Function to create external space point The constructor of spacepoint_t with Vector3 global pos, Vector2 global cov, and vector of source link pointers.
Definition at line 88 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 88 of file SpacePointBuilder.hpp
|
protected |
Definition at line 93 of file SpacePointBuilder.hpp.
View newest version in sPHENIX GitHub at line 93 of file SpacePointBuilder.hpp
Referenced by Acts::SpacePointBuilder< spacepoint_t >::SpacePointBuilder().