ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::SpacePointBuilder< SpacePoint< Cluster > > Class Template Reference

#include <acts/blob/master/Plugins/Digitization/include/Acts/Plugins/Digitization/DoubleHitSpacePointBuilder.hpp>

+ Collaboration diagram for Acts::SpacePointBuilder< SpacePoint< Cluster > >:

Public Member Functions

 SpacePointBuilder (DoubleHitSpacePointConfig cfg)
 
void makeClusterPairs (const GeometryContext &gctx, const std::vector< const Cluster * > &clustersFront, const std::vector< const Cluster * > &clustersBack, std::vector< std::pair< const Cluster *, const Cluster * >> &clusterPairs) const
 Searches possible combinations of two clusters on different surfaces that may come from the same particles.
 
void calculateSpacePoints (const GeometryContext &gctx, const std::vector< std::pair< const Cluster *, const Cluster * >> &clusterPairs, std::vector< SpacePoint< Cluster >> &spacePoints) const
 Calculates the space points out of a given collection of clusters on several strip detectors and stores the data.
 
 SpacePointBuilder ()=default
 Default constructor.
 
void calculateSpacePoints (const GeometryContext &gctx, const std::vector< const Cluster * > &clusters, std::vector< SpacePoint< Cluster >> &spacePointStorage) const
 Calculates the space points out of a given collection of clusters and stores the results.
 

Protected Member Functions

Vector2D localCoords (const Cluster &cluster) const
 Getter method for the local coordinates of a cluster on its corresponding surface.
 
Vector3D globalCoords (const GeometryContext &gctx, const Cluster &cluster) const
 Getter method for the global coordinates of a cluster.
 

Private Member Functions

Vector2D localCoords (const Cluster &cluster) const
 Getter method for the local coordinates of a cluster on its corresponding surface.
 
Vector3D globalCoords (const GeometryContext &gctx, const Cluster &cluster) const
 Getter method for the global coordinates of a cluster.
 
std::pair< Vector3D, Vector3DendsOfStrip (const GeometryContext &gctx, const Cluster &cluster) const
 Calculates the top and bottom ends of a SDE that corresponds to a given hit.
 

Private Attributes

DoubleHitSpacePointConfig m_cfg
 Config.
 

Detailed Description

template<typename Cluster>
class Acts::SpacePointBuilder< SpacePoint< Cluster > >

Definition at line 47 of file DoubleHitSpacePointBuilder.hpp.

View newest version in sPHENIX GitHub at line 47 of file DoubleHitSpacePointBuilder.hpp

Constructor & Destructor Documentation

template<typename Cluster >
Acts::SpacePointBuilder< SpacePoint< Cluster > >::SpacePointBuilder ( DoubleHitSpacePointConfig  cfg)

Constructor

Parameters
cfgSpecific config that will be used instead of the default values
template<typename Cluster >
Acts::SpacePointBuilder< SpacePoint< Cluster > >::SpacePointBuilder ( )
default

Default constructor.

Member Function Documentation

template<typename Cluster >
void Acts::SpacePointBuilder< SpacePoint< Cluster > >::calculateSpacePoints ( const GeometryContext gctx,
const std::vector< const Cluster * > &  clusters,
std::vector< SpacePoint< Cluster >> &  spacePointStorage 
) const

Calculates the space points out of a given collection of clusters and stores the results.

Parameters
gctxThe current geometry context object, e.g. alignment
clustervector of clusters
spacePointStoragestorage of the results
template<typename Cluster >
void Acts::SpacePointBuilder< SpacePoint< Cluster > >::calculateSpacePoints ( const GeometryContext gctx,
const std::vector< std::pair< const Cluster *, const Cluster * >> &  clusterPairs,
std::vector< SpacePoint< Cluster >> &  spacePoints 
) const

Calculates the space points out of a given collection of clusters on several strip detectors and stores the data.

Parameters
gctxThe current geometry context object, e.g. alignment
clusterPairspairs of clusters that are space point candidates
spacePointsstorage of the results
Note
If no configuration is set, the default values will be used
template<typename Cluster >
std::pair<Vector3D, Vector3D> Acts::SpacePointBuilder< SpacePoint< Cluster > >::endsOfStrip ( const GeometryContext gctx,
const Cluster &  cluster 
) const
private

Calculates the top and bottom ends of a SDE that corresponds to a given hit.

Parameters
clusterobject that stores the information about the hit
Returns
vectors to the top and bottom end of the SDE
template<typename Cluster >
Vector3D Acts::SpacePointBuilder< SpacePoint< Cluster > >::globalCoords ( const GeometryContext gctx,
const Cluster &  cluster 
) const
protected

Getter method for the global coordinates of a cluster.

Parameters
gctxThe current geometry context object, e.g. alignment
clusterobject related to the cluster that holds the necessary information
Returns
vector of the global coordinates of the cluster
template<typename Cluster >
Vector3D Acts::SpacePointBuilder< SpacePoint< Cluster > >::globalCoords ( const GeometryContext gctx,
const Cluster &  cluster 
) const
private

Getter method for the global coordinates of a cluster.

Parameters
clusterobject related to the cluster that holds the necessary information
Returns
vector of the global coordinates of the cluster
template<typename Cluster >
Vector2D Acts::SpacePointBuilder< SpacePoint< Cluster > >::localCoords ( const Cluster &  cluster) const
protected

Getter method for the local coordinates of a cluster on its corresponding surface.

Parameters
clusterobject related to the cluster that holds the necessary information
Returns
vector of the local coordinates of the cluster on the surface
template<typename Cluster >
Vector2D Acts::SpacePointBuilder< SpacePoint< Cluster > >::localCoords ( const Cluster &  cluster) const
private

Getter method for the local coordinates of a cluster on its corresponding surface.

Parameters
clusterobject related to the cluster that holds the necessary information
Returns
vector of the local coordinates of the cluster on the surface
template<typename Cluster >
void Acts::SpacePointBuilder< SpacePoint< Cluster > >::makeClusterPairs ( const GeometryContext gctx,
const std::vector< const Cluster * > &  clustersFront,
const std::vector< const Cluster * > &  clustersBack,
std::vector< std::pair< const Cluster *, const Cluster * >> &  clusterPairs 
) const

Searches possible combinations of two clusters on different surfaces that may come from the same particles.

Parameters
gctxThe current geometry context object, e.g. alignment
clustersFrontvector of clusters on a surface
clustersBackvector of clusters on another surface
clusterPairsstorage of the cluster pairs
Note
The structure of clustersFront and clustersBack is meant to be clusters[Independent clusters on a single surface]

Member Data Documentation

template<typename Cluster >
DoubleHitSpacePointConfig Acts::SpacePointBuilder< SpacePoint< Cluster > >::m_cfg
private

Config.

Definition at line 83 of file DoubleHitSpacePointBuilder.hpp.

View newest version in sPHENIX GitHub at line 83 of file DoubleHitSpacePointBuilder.hpp


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