ATLAS Offline Software
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 
12 #include "TrkSurfaces/Surface.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
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
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:
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;
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 
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 
Trk::LocalParameters
Definition: LocalParameters.h:98
Trk::RIO_OnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
Definition: RIO_OnTrack.cxx:32
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Surface.h
SiClusterOnTrack.h
InDet::SiClusterOnTrack::SiClusterOnTrack
SiClusterOnTrack()
Default Constructor - needed for POOL.
Definition: SiClusterOnTrack.cxx:49
InDet::SiClusterOnTrack::globalPosition
virtual const Amg::Vector3D & globalPosition() const override
returns global position (gathered through Surface constraint)
Definition: SiClusterOnTrack.h:115
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
RIO_OnTrack.h
SiCluster.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
LocalParameters.h
Trk::MeasurementBaseType::RIO_OnTrack
@ RIO_OnTrack
Definition: MeasurementBase.h:49
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDet::SiClusterOnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns some information about this RIO_OnTrack.
Definition: SiClusterOnTrack.cxx:57
Identifier
Definition: IdentifierFieldParser.cxx:14