Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SpacePointBuilder< spacepoint_t > Class Template Reference

#include <acts/blob/sPHENIX/Core/include/Acts/SpacePointFormation/SpacePointBuilder.hpp>

+ Collaboration diagram for Acts::SpacePointBuilder< spacepoint_t >:

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 Loggerlogger () 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
 

Detailed Description

template<typename spacepoint_t>
class Acts::SpacePointBuilder< spacepoint_t >

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

Constructor & Destructor Documentation

template<typename spacepoint_t>
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) 
)
Parameters
cfgThe configuration for the space point builder
funcThe function that provides user's SP constructor with global pos, global cov, and sourceLinks.
loggerThe 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.

template<typename spacepoint_t>
Acts::SpacePointBuilder< spacepoint_t >::SpacePointBuilder ( )
default

Member Function Documentation

template<typename spacepoint_t>
template<template< typename...> typename container_t>
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.

Parameters
gctxThe current geometry context object, e.g. alignment
sourceLinksvector of Sourcelink
optoption for the space point building. It contains the ends of the strips for strip SP building
spacePointItOutput 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.

+ Here is the call graph for this function:

template<typename spacepoint_t>
const Logger& Acts::SpacePointBuilder< spacepoint_t >::logger ( ) const
inlineprotected

Definition at line 95 of file SpacePointBuilder.hpp.

View newest version in sPHENIX GitHub at line 95 of file SpacePointBuilder.hpp

template<typename spacepoint_t >
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.

Parameters
gctxThe current geometry context object, e.g. alignment
slinksFrontvector of Sourcelinks on a surface
slinksBackvector of SoruceLinks on another surface
slinkPairsstorage of the SouceLink pairs
pairOptpair 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.

+ Here is the call graph for this function:

Member Data Documentation

template<typename spacepoint_t>
SpacePointBuilderConfig Acts::SpacePointBuilder< spacepoint_t >::m_config
protected

Definition at line 81 of file SpacePointBuilder.hpp.

View newest version in sPHENIX GitHub at line 81 of file SpacePointBuilder.hpp

template<typename spacepoint_t>
std::unique_ptr<const Acts::Logger> Acts::SpacePointBuilder< spacepoint_t >::m_logger
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().

template<typename spacepoint_t>
std::function<spacepoint_t(Acts::Vector3, Acts::Vector2, boost::container::static_vector<SourceLink, 2>)> Acts::SpacePointBuilder< spacepoint_t >::m_spConstructor
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

template<typename spacepoint_t>
std::shared_ptr<const SpacePointUtility> Acts::SpacePointBuilder< spacepoint_t >::m_spUtility
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().


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