ATLAS Offline Software
Loading...
Searching...
No Matches
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,
39 bool isbroad)
40 :
41 RIO_OnTrack(std::move(locpars), std::move(locerr), id), //call base class constructor
42 m_idDE(idDE),
44 m_isbroad(isbroad)
45{}
46
47
48// Default constructor:
51 m_idDE(),
52 m_globalPosition(), // should be set in constructor of derived class
53 m_isbroad(false)
54{}
55
56
57MsgStream& 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
71std::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
#define endmsg
This is a "hash" representation of an Identifier.
IdentifierHash m_idDE
The IdentifierHash - probably not used.
virtual const Amg::Vector3D & globalPosition() const override
returns global position (gathered through Surface constraint)
SiClusterOnTrack()
Default Constructor - needed for POOL.
virtual IdentifierHash idDE() const override
returns the DE hashID*
Amg::Vector3D m_globalPosition
The global position.
virtual MsgStream & dump(MsgStream &out) const override
returns some information about this RIO_OnTrack.
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
RIO_OnTrack(LocalParameters &&locpars, Amg::MatrixX &&loccov, const Identifier &id)
Constructor with parameters and without externalPrediction.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
STL namespace.