ATLAS Offline Software
PixelClusterParts.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PixelClusterParts.h
7 // Header file for class PixelClusterParts
9 // (c) ATLAS Detector software
11 
12 #ifndef TRKPREPRAWDATA_PIXELCLUSTERPARTS_H
13 #define TRKPREPRAWDATA_PIXELCLUSTERPARTS_H
14 
17 #include "Identifier/Identifier.h"
18 
19 namespace InDet {
29 {
30 
31 public:
33  PixelClusterParts(const std::vector<Identifier>& group,
34  const std::vector<int>& totgroup,
35  const std::vector<int>& lvl1group)
36  : m_idgroup(group)
37  , m_totgroup(totgroup)
38  , m_lvl1group(lvl1group)
39  , m_localPosition(Amg::Vector2D::Zero())
40  , m_errorMatrix{}
41  {
42  }
43 
45  PixelClusterParts(const std::vector<Identifier>& group,
46  const std::vector<int>& totgroup,
47  const std::vector<int>& lvl1group,
48  const Amg::Vector2D& position)
49  : m_idgroup(group)
50  , m_totgroup(totgroup)
51  , m_lvl1group(lvl1group)
52  , m_localPosition(position)
53  , m_errorMatrix{}
54  {
55  }
56 
58  PixelClusterParts(const std::vector<Identifier>& group,
59  const std::vector<int>& totgroup,
60  const std::vector<int>& lvl1group,
61  const Amg::Vector2D& position,
62  const Amg::MatrixX& error)
63  : m_idgroup(group)
64  , m_totgroup(totgroup)
65  , m_lvl1group(lvl1group)
66  , m_localPosition(position)
68  {
69  }
70 
72  PixelClusterParts(const PixelClusterParts& pcp) = default;
73  PixelClusterParts(PixelClusterParts&& pcp) noexcept = default;
75  PixelClusterParts& operator=(PixelClusterParts&& pcp) noexcept = default;
77  ~PixelClusterParts() = default;
78 
80  const std::vector<Identifier>& identifierGroup() const;
81 
83  const std::vector<int>& totGroup() const;
84 
86  const std::vector<int>& lvl1Group() const;
87 
89  const Amg::Vector2D& localPosition() const;
90 
92  const Amg::MatrixX& errorMatrix() const;
93 
94 private:
95  std::vector<Identifier> m_idgroup;
96  std::vector<int> m_totgroup;
97  std::vector<int> m_lvl1group;
100 };
101 
102 // inline implementation of return methods
103 inline const std::vector<Identifier>&
105 {
106  return m_idgroup;
107 }
108 inline const std::vector<int>&
110 {
111  return m_totgroup;
112 }
113 inline const std::vector<int>&
115 {
116  return m_lvl1group;
117 }
118 inline const Amg::Vector2D&
120 {
121  return m_localPosition;
122 }
123 inline const Amg::MatrixX&
125 {
126  return m_errorMatrix;
127 }
128 
129 }
130 
131 #endif
InDet::PixelClusterParts::PixelClusterParts
PixelClusterParts(const std::vector< Identifier > &group, const std::vector< int > &totgroup, const std::vector< int > &lvl1group, const Amg::Vector2D &position, const Amg::MatrixX &error)
constructor
Definition: PixelClusterParts.h:58
InDet::PixelClusterParts::PixelClusterParts
PixelClusterParts(const PixelClusterParts &pcp)=default
default ctors and move
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::PixelClusterParts::m_idgroup
std::vector< Identifier > m_idgroup
Definition: PixelClusterParts.h:95
InDet::PixelClusterParts::operator=
PixelClusterParts & operator=(const PixelClusterParts &pcp)=default
InDet::PixelClusterParts::errorMatrix
const Amg::MatrixX & errorMatrix() const
return error description
Definition: PixelClusterParts.h:124
InDet::PixelClusterParts::operator=
PixelClusterParts & operator=(PixelClusterParts &&pcp) noexcept=default
InDet::PixelClusterParts::m_errorMatrix
Amg::MatrixX m_errorMatrix
Definition: PixelClusterParts.h:99
InDet::PixelClusterParts
Definition: PixelClusterParts.h:29
InDet::PixelClusterParts::m_localPosition
Amg::Vector2D m_localPosition
Definition: PixelClusterParts.h:98
InDet::PixelClusterParts::localPosition
const Amg::Vector2D & localPosition() const
return lcoal positions
Definition: PixelClusterParts.h:119
GeoPrimitives.h
InDet::PixelClusterParts::PixelClusterParts
PixelClusterParts(const std::vector< Identifier > &group, const std::vector< int > &totgroup, const std::vector< int > &lvl1group, const Amg::Vector2D &position)
constructor
Definition: PixelClusterParts.h:45
InDet::PixelClusterParts::identifierGroup
const std::vector< Identifier > & identifierGroup() const
return method identifiers
Definition: PixelClusterParts.h:104
InDet::PixelClusterParts::PixelClusterParts
PixelClusterParts(PixelClusterParts &&pcp) noexcept=default
InDet::PixelClusterParts::~PixelClusterParts
~PixelClusterParts()=default
destructor
EventPrimitives.h
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition: AmgStringHelpers.h:19
InDet::PixelClusterParts::PixelClusterParts
PixelClusterParts(const std::vector< Identifier > &group, const std::vector< int > &totgroup, const std::vector< int > &lvl1group)
constructor
Definition: PixelClusterParts.h:33
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
InDet::PixelClusterParts::m_lvl1group
std::vector< int > m_lvl1group
Definition: PixelClusterParts.h:97
InDet::PixelClusterParts::lvl1Group
const std::vector< int > & lvl1Group() const
return method lvl1 Group
Definition: PixelClusterParts.h:114
InDet::PixelClusterParts::totGroup
const std::vector< int > & totGroup() const
return method tot
Definition: PixelClusterParts.h:109
error
Definition: IImpactPoint3dEstimator.h:70
InDet::PixelClusterParts::m_totgroup
std::vector< int > m_totgroup
Definition: PixelClusterParts.h:96