ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
AFPLocRecoStationBasicObj Class Reference

Helper class representing an AFP station used in track reconstruction. More...

#include <AFPLocRecoStationBasicObj.h>

Collaboration diagram for AFPLocRecoStationBasicObj:

Public Member Functions

 AFPLocRecoStationBasicObj ()
 Does nothing. More...
 
 AFPLocRecoStationBasicObj (const int numberOfLayers)
 Sets number of layers in the station. More...
 
std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > & layers ()
 Returns vector layers, each layer is a vector of clusters. More...
 
const std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > & layers () const
 Returns vector layers, each layer is a vector of clusters. More...
 
std::vector< const xAOD::AFPSiHitsCluster * > & clustersInLayer (const unsigned int layerID)
 Returns vector of clusters in the layer with given ID. More...
 
void clear ()
 Clear clusters from each layer. More...
 
void setNumberOfLayers (const unsigned int layersN)
 Sets vector containing layers to the specified size. More...
 

Protected Attributes

std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > m_layersClusters
 vector of layers, each layer contains a vector of pointers to clusters More...
 

Detailed Description

Helper class representing an AFP station used in track reconstruction.

Main purpose is to divide clusters into stations and planes. It is just a wrapper for a 2D array of hits clusters.

Definition at line 23 of file AFPLocRecoStationBasicObj.h.

Constructor & Destructor Documentation

◆ AFPLocRecoStationBasicObj() [1/2]

AFPLocRecoStationBasicObj::AFPLocRecoStationBasicObj ( )
inline

Does nothing.

Definition at line 27 of file AFPLocRecoStationBasicObj.h.

27 {}

◆ AFPLocRecoStationBasicObj() [2/2]

AFPLocRecoStationBasicObj::AFPLocRecoStationBasicObj ( const int  numberOfLayers)
inline

Sets number of layers in the station.

Definition at line 30 of file AFPLocRecoStationBasicObj.h.

30 {m_layersClusters.resize(numberOfLayers);}

Member Function Documentation

◆ clear()

void AFPLocRecoStationBasicObj::clear ( )
inline

Clear clusters from each layer.

Definition at line 47 of file AFPLocRecoStationBasicObj.h.

48  { for (std::vector<const xAOD::AFPSiHitsCluster*>& layer : m_layersClusters) layer.clear();}

◆ clustersInLayer()

std::vector<const xAOD::AFPSiHitsCluster*>& AFPLocRecoStationBasicObj::clustersInLayer ( const unsigned int  layerID)
inline

Returns vector of clusters in the layer with given ID.

Throws out_of_range exception if layer ID is larger than size of the vector of layers.

Definition at line 43 of file AFPLocRecoStationBasicObj.h.

44  {return m_layersClusters.at(layerID);}

◆ layers() [1/2]

std::vector< std::vector<const xAOD::AFPSiHitsCluster*> >& AFPLocRecoStationBasicObj::layers ( )
inline

Returns vector layers, each layer is a vector of clusters.

Definition at line 33 of file AFPLocRecoStationBasicObj.h.

34  {return m_layersClusters;}

◆ layers() [2/2]

const std::vector< std::vector<const xAOD::AFPSiHitsCluster*> >& AFPLocRecoStationBasicObj::layers ( ) const
inline

Returns vector layers, each layer is a vector of clusters.

Definition at line 37 of file AFPLocRecoStationBasicObj.h.

38  {return m_layersClusters;}

◆ setNumberOfLayers()

void AFPLocRecoStationBasicObj::setNumberOfLayers ( const unsigned int  layersN)
inline

Sets vector containing layers to the specified size.

Definition at line 51 of file AFPLocRecoStationBasicObj.h.

52  {m_layersClusters.resize(layersN);}

Member Data Documentation

◆ m_layersClusters

std::vector< std::vector<const xAOD::AFPSiHitsCluster*> > AFPLocRecoStationBasicObj::m_layersClusters
protected

vector of layers, each layer contains a vector of pointers to clusters

Definition at line 55 of file AFPLocRecoStationBasicObj.h.


The documentation for this class was generated from the following file:
AFPLocRecoStationBasicObj::m_layersClusters
std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > m_layersClusters
vector of layers, each layer contains a vector of pointers to clusters
Definition: AFPLocRecoStationBasicObj.h:55
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79