ATLAS Offline Software
AFPLocRecoStationBasicObj.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFP_LOCRECO_AFPLOCRECOSTATIONBASICOBJ_H
6 #define AFP_LOCRECO_AFPLOCRECOSTATIONBASICOBJ_H 1
7 
13 
14 
15 #include<vector>
16 
18 
24 {
25 public:
28 
30  AFPLocRecoStationBasicObj (const int numberOfLayers) {m_layersClusters.resize(numberOfLayers);}
31 
33  std::vector< std::vector<const xAOD::AFPSiHitsCluster*> >& layers ()
34  {return m_layersClusters;}
35 
37  const std::vector< std::vector<const xAOD::AFPSiHitsCluster*> >& layers () const
38  {return m_layersClusters;}
39 
43  std::vector<const xAOD::AFPSiHitsCluster*>& clustersInLayer (const unsigned int layerID)
44  {return m_layersClusters.at(layerID);}
45 
47  void clear()
48  { for (std::vector<const xAOD::AFPSiHitsCluster*>& layer : m_layersClusters) layer.clear();}
49 
51  void setNumberOfLayers(const unsigned int layersN)
52  {m_layersClusters.resize(layersN);}
53 
54 protected:
55  std::vector< std::vector<const xAOD::AFPSiHitsCluster*> > m_layersClusters;
56 };
57 
58 #endif
AFPSiHitsCluster.h
AFPLocRecoStationBasicObj::clear
void clear()
Clear clusters from each layer.
Definition: AFPLocRecoStationBasicObj.h:47
AFPLocRecoStationBasicObj::setNumberOfLayers
void setNumberOfLayers(const unsigned int layersN)
Sets vector containing layers to the specified size.
Definition: AFPLocRecoStationBasicObj.h:51
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
AFPLocRecoStationBasicObj::layers
const std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > & layers() const
Returns vector layers, each layer is a vector of clusters.
Definition: AFPLocRecoStationBasicObj.h:37
AFPLocRecoStationBasicObj::AFPLocRecoStationBasicObj
AFPLocRecoStationBasicObj()
Does nothing.
Definition: AFPLocRecoStationBasicObj.h:27
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
AFPLocRecoStationBasicObj::layers
std::vector< std::vector< const xAOD::AFPSiHitsCluster * > > & layers()
Returns vector layers, each layer is a vector of clusters.
Definition: AFPLocRecoStationBasicObj.h:33
AFPLocRecoStationBasicObj::clustersInLayer
std::vector< const xAOD::AFPSiHitsCluster * > & clustersInLayer(const unsigned int layerID)
Returns vector of clusters in the layer with given ID.
Definition: AFPLocRecoStationBasicObj.h:43
AFPLocRecoStationBasicObj
Helper class representing an AFP station used in track reconstruction.
Definition: AFPLocRecoStationBasicObj.h:24
AFPLocRecoStationBasicObj::AFPLocRecoStationBasicObj
AFPLocRecoStationBasicObj(const int numberOfLayers)
Sets number of layers in the station.
Definition: AFPLocRecoStationBasicObj.h:30