ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace InDet {
29{
30
31public:
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())
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)
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
94private:
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
103inline const std::vector<Identifier>&
105{
106 return m_idgroup;
107}
108inline const std::vector<int>&
110{
111 return m_totgroup;
112}
113inline const std::vector<int>&
115{
116 return m_lvl1group;
117}
118inline const Amg::Vector2D&
123inline const Amg::MatrixX&
125{
126 return m_errorMatrix;
127}
128
129}
130
131#endif
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
PixelClusterParts(const std::vector< Identifier > &group, const std::vector< int > &totgroup, const std::vector< int > &lvl1group)
constructor
const std::vector< int > & lvl1Group() const
return method lvl1 Group
std::vector< int > m_lvl1group
const Amg::MatrixX & errorMatrix() const
return error description
const std::vector< Identifier > & identifierGroup() const
return method identifiers
std::vector< int > m_totgroup
PixelClusterParts(PixelClusterParts &&pcp) noexcept=default
PixelClusterParts & operator=(PixelClusterParts &&pcp) noexcept=default
PixelClusterParts & operator=(const PixelClusterParts &pcp)=default
std::vector< Identifier > m_idgroup
PixelClusterParts(const PixelClusterParts &pcp)=default
default ctors and move
const Amg::Vector2D & localPosition() const
return lcoal positions
PixelClusterParts(const std::vector< Identifier > &group, const std::vector< int > &totgroup, const std::vector< int > &lvl1group, const Amg::Vector2D &position)
constructor
const std::vector< int > & totGroup() const
return method tot
~PixelClusterParts()=default
destructor
Definition of ATLAS Math & Geometry primitives (Amg)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Primary Vertex Finder.