ATLAS Offline Software
Loading...
Searching...
No Matches
HGTDCluster_v1.h
Go to the documentation of this file.
1
9
10#ifndef XAODINDETMEASUREMENT_HGTDCLUSTER_V1_H
11#define XAODINDETMEASUREMENT_HGTDCLUSTER_V1_H
12
14#include "Identifier/Identifier.h"
17
18namespace xAOD {
19
22
23
25
26 public:
27
29 HGTDCluster_v1() = default;
31 virtual ~HGTDCluster_v1() = default;
32
33
38 unsigned int numDimensions() const override final { return 3; }
39
40
43 rdoList() const;
44
45
46
49 totList() const;
50
52 float time() const;
53
55 float timeCovariance() const;
56
59
61 void setRDOlist(std::vector<Identifier::value_type>&& rdoList);
65 void setRDOlist(const std::vector<Identifier>& rdolist);
66
68 void setToTlist(const std::vector<int>& tots);
69
70 static const SG::AuxElement::Accessor<SG::JaggedVecElt<Identifier::value_type> > rdoListAcc() { return s_rdoListAcc; }
71 static const SG::AuxElement::Accessor<SG::JaggedVecElt<int> > totListAcc() { return s_totListAcc; }
72
74
76 static float time(ConstVectorMap<3> local_position);
77 static float time(VectorMap<3> local_position);
79 static float timeCovariance(ConstMatrixMap<3> local_covariance);
80 static float timeCovariance(MatrixMap<3> local_covariance);
81protected:
82 static const SG::AuxElement::Accessor<SG::JaggedVecElt<Identifier::value_type> > s_rdoListAcc;
83 static const SG::AuxElement::Accessor<SG::JaggedVecElt<int> > s_totListAcc;
84public:
85
86};
87
88inline
91 return s_rdoListAcc(*this);
92}
93
94inline
97 return s_totListAcc(*this);
98}
99
100inline float HGTDCluster_v1::time(VectorMap<3> local_position) {
101 return local_position[2];
102}
103inline float HGTDCluster_v1::timeCovariance(MatrixMap<3> local_covariance) {
104 return local_covariance(2,2);
105}
106inline float HGTDCluster_v1::time(ConstVectorMap<3> local_position) {
107 return local_position[2];
108}
109inline float HGTDCluster_v1::timeCovariance(ConstMatrixMap<3> local_covariance) {
110 return local_covariance(2,2);
111}
112inline float HGTDCluster_v1::time() const {
114}
118
119} // namespace xAOD
122#endif // XAODHGTDCluster_v1_H
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Definition DataVector.h:649
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
Helper class to provide constant type-safe access to aux data.
void setRDOlist(std::vector< Identifier::value_type > &&rdoList)
Sets the list of identifiers of the channels building the cluster.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > rdoListAcc()
float timeCovariance() const
Return the covariance of the measured time in ns squared.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > totListAcc()
unsigned int numDimensions() const override final
Returns the number of dimensions of the measurement.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc
SG::ConstAccessor< SG::JaggedVecElt< int > >::element_type totList() const
Returns the list of Time Over Threshold of the channels building the cluster.
xAOD::UncalibMeasType type() const override final
Returns the type of the HGTD cluster as a simple enumeration.
float time() const
Return the measured time in ns.
virtual ~HGTDCluster_v1()=default
Virtual destructor.
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList() const
Returns the list of identifiers of the channels building the cluster.
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
HGTDCluster_v1()=default
Default constructor.
UncalibratedMeasurement_v1()=default
Default constructor.
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Eigen::Map< const MeasMatrix< N > > ConstMatrixMap
Eigen::Map< MeasVector< N > > VectorMap
UncalibMeasType
Define the type of the uncalibrated measurement.
Eigen::Map< MeasMatrix< N > > MatrixMap
Eigen::Map< const MeasVector< N > > ConstVectorMap