ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_Reconstruction
HGTD_RecEvent
HGTD_RIO_OnTrack
src
HGTD_ClusterOnTrack.cxx
Go to the documentation of this file.
1
9
10
#include "
HGTD_RIO_OnTrack/HGTD_ClusterOnTrack.h
"
11
#include "GaudiKernel/MsgStream.h"
12
#include "
TrkEventPrimitives/LocalParameters.h
"
13
#include <ostream>
14
#include <utility>
15
16
// Default constructor:
17
HGTD_ClusterOnTrack::HGTD_ClusterOnTrack
()
18
:
RIO_OnTrack
(),
19
m_det_el
(nullptr),
20
m_id_hash
(),
21
m_global_position
(),
22
m_calibrated_time
(0),
23
m_calibrated_time_resolution
(0) {}
24
25
// Constructor with parameters - no global position specified
26
HGTD_ClusterOnTrack::HGTD_ClusterOnTrack
(
const
HGTD_Cluster
* rio,
27
Trk::LocalParameters
&& locpars,
28
Amg::MatrixX
&& locerr,
29
const
float
calib_time,
30
const
float
calib_time_res,
31
const
IdentifierHash
& id_hash)
32
:
RIO_OnTrack
(
std
::move(locpars),
std
::move(locerr), rio->
identify
()),
33
m_det_el
(rio->
detectorElement
()),
34
m_id_hash
(id_hash),
35
m_calibrated_time
(calib_time),
36
m_calibrated_time_resolution
(calib_time_res) {
37
m_rio
.setElement(rio);
38
}
39
40
// Constructor with parameters
41
HGTD_ClusterOnTrack::HGTD_ClusterOnTrack
(
const
HGTD_Cluster
* rio,
42
Trk::LocalParameters
&& locpars,
43
Amg::MatrixX
&& locerr,
44
const
float
calib_time,
45
const
float
calib_time_res,
46
const
IdentifierHash
& id_hash,
47
const
Amg::Vector3D
& global_position)
48
:
RIO_OnTrack
(
std
::move(locpars),
std
::move(locerr), rio->
identify
()),
49
m_det_el
(rio->
detectorElement
()),
50
m_id_hash
(id_hash),
51
m_global_position
(global_position),
52
m_calibrated_time
(calib_time),
53
m_calibrated_time_resolution
(calib_time_res) {
54
m_rio
.setElement(rio);
55
}
56
57
const
Trk::Surface
&
HGTD_ClusterOnTrack::associatedSurface
()
const
{
58
return
(
detectorElement
()->surface());
59
}
60
61
const
Amg::Vector3D
&
HGTD_ClusterOnTrack::globalPosition
()
const
{
62
return
m_global_position
;
63
}
64
65
MsgStream&
HGTD_ClusterOnTrack::dump
(MsgStream& sl)
const
{
66
sl <<
"HGTD_ClusterOnTrack {"
<<
endmsg
;
67
68
Trk::RIO_OnTrack::dump
(sl);
69
70
sl <<
"Global position (x,y,z) = ("
;
71
sl << this->
globalPosition
().x() <<
", "
<< this->
globalPosition
().y()
72
<<
", "
<< this->
globalPosition
().z() <<
")"
<< endmsg;
73
sl <<
"}"
<<
endmsg
;
74
return
sl;
75
}
76
77
std::ostream&
HGTD_ClusterOnTrack::dump
(std::ostream& sl)
const
{
78
sl <<
"HGTD_ClusterOnTrack {"
<< std::endl;
79
80
Trk::RIO_OnTrack::dump
(sl);
81
82
sl <<
"Global position (x,y,z) = ("
;
83
sl << this->
globalPosition
().x() <<
", "
<< this->
globalPosition
().y()
84
<<
", "
<< this->
globalPosition
().z() <<
")"
<< std::endl;
85
sl <<
"}"
<< std::endl;
86
return
sl;
87
}
88
89
void
HGTD_ClusterOnTrack::setValues
(
const
Trk::TrkDetElementBase
* det_el,
90
const
Trk::PrepRawData
*
/*prd*/
) {
91
m_det_el
=
92
dynamic_cast<
const
InDetDD::SolidStateDetectorElementBase
*
>
(det_el);
93
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
HGTD_ClusterOnTrack.h
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration.
LocalParameters.h
HGTD_ClusterOnTrack::m_rio
ElementLink< HGTD_ClusterContainer > m_rio
Definition
HGTD_ClusterOnTrack.h:140
HGTD_ClusterOnTrack::m_id_hash
IdentifierHash m_id_hash
The IdentifierHash - needed to comply with RIO_OnTrack interface, currently not used.
Definition
HGTD_ClusterOnTrack.h:130
HGTD_ClusterOnTrack::m_calibrated_time
float m_calibrated_time
Definition
HGTD_ClusterOnTrack.h:136
HGTD_ClusterOnTrack::m_global_position
Amg::Vector3D m_global_position
The global position, managed by the cluster on track.
Definition
HGTD_ClusterOnTrack.h:133
HGTD_ClusterOnTrack::HGTD_ClusterOnTrack
HGTD_ClusterOnTrack()
Definition
HGTD_ClusterOnTrack.cxx:17
HGTD_ClusterOnTrack::m_det_el
const InDetDD::SolidStateDetectorElementBase * m_det_el
Detector element associated to this cluster on track.
Definition
HGTD_ClusterOnTrack.h:126
HGTD_ClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override final
returns some information about this RIO_OnTrack.
Definition
HGTD_ClusterOnTrack.cxx:65
HGTD_ClusterOnTrack::detectorElement
virtual const InDetDD::SolidStateDetectorElementBase * detectorElement() const override final
returns the detector element, assoicated with the PRD of this class
Definition
HGTD_ClusterOnTrack.h:157
HGTD_ClusterOnTrack::setValues
virtual void setValues(const Trk::TrkDetElementBase *det_el, const Trk::PrepRawData *prd) override final
ONLY for use in custom convertor Allows the custom convertor to reset values when persistying/reading...
Definition
HGTD_ClusterOnTrack.cxx:89
HGTD_ClusterOnTrack::associatedSurface
virtual const Trk::Surface & associatedSurface() const override final
returns the surface for the local to global transformation
Definition
HGTD_ClusterOnTrack.cxx:57
HGTD_ClusterOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override final
returns global position (gathered through Surface constraint)
Definition
HGTD_ClusterOnTrack.cxx:61
HGTD_ClusterOnTrack::m_calibrated_time_resolution
float m_calibrated_time_resolution
Definition
HGTD_ClusterOnTrack.h:138
HGTD_Cluster
Definition
HGTD_Cluster.h:35
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDetDD::SolidStateDetectorElementBase
Class to hold geometrical description of a solid state detector element.
Definition
SolidStateDetectorElementBase.h:132
Trk::LocalParameters
Definition
LocalParameters.h:100
Trk::PrepRawData
Definition
PrepRawData.h:62
Trk::RIO_OnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
Definition
RIO_OnTrack.cxx:32
Trk::RIO_OnTrack::RIO_OnTrack
RIO_OnTrack(LocalParameters &&locpars, Amg::MatrixX &&loccov, const Identifier &id)
Constructor with parameters and without externalPrediction.
Definition
RIO_OnTrack.cxx:22
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition
RIO_OnTrack.h:152
Trk::Surface
Abstract Base Class for tracking surfaces.
Definition
Surface.h:79
Trk::TrkDetElementBase
This is the base class for all tracking detector elements with read-out relevant information.
Definition
TrkDetElementBase.h:52
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0