ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecEvent
InDetRIO_OnTrack
src
SiClusterOnTrack.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SiClusterOnTrack.cxx, (c) ATLAS Detector software
8
9
#include "
InDetRIO_OnTrack/SiClusterOnTrack.h
"
10
#include "
TrkRIO_OnTrack/RIO_OnTrack.h
"
11
#include "
TrkEventPrimitives/LocalParameters.h
"
12
#include "
TrkSurfaces/Surface.h
"
13
#include "
InDetPrepRawData/SiCluster.h
"
14
#include "GaudiKernel/MsgStream.h"
15
#include <memory>
16
#include <new>
17
#include <ostream>
18
#include <typeinfo>
19
20
21
// Constructor with parameters - global position not specified here
22
InDet::SiClusterOnTrack::SiClusterOnTrack
(
Trk::LocalParameters
&& locpars,
23
Amg::MatrixX
&& locerr,
24
const
IdentifierHash
&
idDE
,
25
const
Identifier
&
id
,
26
bool
isbroad) :
27
RIO_OnTrack
(
std
::move(locpars),
std
::move(locerr), id),
//call base class constructor
28
m_idDE
(
idDE
),
29
m_globalPosition
(),
// should be set in constructor of derived class
30
m_isbroad
(isbroad)
31
{}
32
33
// Constructor with parameters - global position specified
34
InDet::SiClusterOnTrack::SiClusterOnTrack
(
Trk::LocalParameters
&& locpars,
35
Amg::MatrixX
&& locerr,
36
const
IdentifierHash
&
idDE
,
37
const
Identifier
&
id
,
38
const
Amg::Vector3D
&
globalPosition
,
39
bool
isbroad)
40
:
41
RIO_OnTrack
(
std
::move(locpars),
std
::move(locerr), id),
//call base class constructor
42
m_idDE
(
idDE
),
43
m_globalPosition
(
globalPosition
),
44
m_isbroad
(isbroad)
45
{}
46
47
48
// Default constructor:
49
InDet::SiClusterOnTrack::SiClusterOnTrack
():
50
Trk
::
RIO_OnTrack
(),
51
m_idDE
(),
52
m_globalPosition
(),
// should be set in constructor of derived class
53
m_isbroad
(false)
54
{}
55
56
57
MsgStream&
InDet::SiClusterOnTrack::dump
( MsgStream& sl )
const
58
{
59
60
sl <<
"SiClusterOnTrack {"
<<
endmsg
;
61
Trk::RIO_OnTrack::dump
(sl);
62
63
sl <<
"Global position (x,y,z) = ("
;
64
sl <<this->
globalPosition
().x()<<
", "
65
<<this->
globalPosition
().y()<<
", "
66
<<this->
globalPosition
().z()<<
")"
<<endmsg;
67
sl<<
"}"
<<
endmsg
;
68
return
sl;
69
}
70
71
std::ostream&
InDet::SiClusterOnTrack::dump
( std::ostream& sl )
const
72
{
73
sl <<
"SiClusterOnTrack {"
<<std::endl;
74
75
Trk::RIO_OnTrack::dump
(sl);
76
77
sl <<
"Global position (x,y,z) = ("
;
78
sl <<this->
globalPosition
().x()<<
", "
79
<<this->
globalPosition
().y()<<
", "
80
<<this->
globalPosition
().z()<<
")"
<<std::endl;
81
sl<<
"}"
<<std::endl;
82
return
sl;
83
}
84
85
86
87
88
89
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
LocalParameters.h
RIO_OnTrack.h
SiClusterOnTrack.h
SiCluster.h
Surface.h
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
InDet::SiClusterOnTrack::m_idDE
IdentifierHash m_idDE
The IdentifierHash - probably not used.
Definition
SiClusterOnTrack.h:109
InDet::SiClusterOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override
returns global position (gathered through Surface constraint)
Definition
SiClusterOnTrack.h:115
InDet::SiClusterOnTrack::SiClusterOnTrack
SiClusterOnTrack()
Default Constructor - needed for POOL.
Definition
SiClusterOnTrack.cxx:49
InDet::SiClusterOnTrack::idDE
virtual IdentifierHash idDE() const override
returns the DE hashID*
Definition
SiClusterOnTrack.h:119
InDet::SiClusterOnTrack::m_globalPosition
Amg::Vector3D m_globalPosition
The global position.
Definition
SiClusterOnTrack.h:111
InDet::SiClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns some information about this RIO_OnTrack.
Definition
SiClusterOnTrack.cxx:57
InDet::SiClusterOnTrack::m_isbroad
bool m_isbroad
Definition
SiClusterOnTrack.h:112
Trk::LocalParameters
Definition
LocalParameters.h:100
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
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
Identifier
Definition
IdentifierFieldParser.cxx:14
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0