ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_DriftCircle.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TRT_DriftCircle.cxx
7// Implementation file for class TRT_DriftCircle
9// (c) ATLAS Detector software
11// Version 1.0 15/07/2003 Veronique Boisvert
13
15#include "GaudiKernel/MsgStream.h"
16#include <ostream>
17#include <sstream>
18
19namespace InDet{
20
21
23 const Identifier& Id,
24 const Amg::Vector2D& driftRadius,
25 std::vector<Identifier>&& rdoList,
26 Amg::MatrixX&& errDriftRadius,
27 const InDetDD::TRT_BaseElement* detEl,
28 const unsigned int word)
29 : PrepRawData(Id, driftRadius, std::move(rdoList), std::move(errDriftRadius))
30 , m_detEl(detEl)
31 , m_word(word)
32{
33}
34
36 const Identifier& Id,
37 const Amg::Vector2D& driftRadius,
38 Amg::MatrixX&& errDriftRadius,
39 const InDetDD::TRT_BaseElement* detEl,
40 const unsigned int word)
41 : PrepRawData(Id, driftRadius, std::move(errDriftRadius))
42 , m_detEl(detEl)
43 , m_word(word)
44{
45}
46
47// Default constr
49 : PrepRawData()
50 , m_detEl(nullptr)
51 , m_word(0)
52
53{
54}
55
56MsgStream&
57TRT_DriftCircle::dump(MsgStream& stream) const
58{
59 std::ostringstream out;
60 dump(out);
61 stream<<out.str();
62 return stream;
63}
64
65std::ostream&
66TRT_DriftCircle::dump(std::ostream& stream) const
67{
68 stream << "TRT_DriftCircle object" << std::endl;
69 stream << "Level (true/false) " << highLevel() << std::endl;
70 stream << "Valid (true/false) " << driftTimeValid() << std::endl;
71 stream << "timeOverThreshold: " << timeOverThreshold()
72 << std::endl;
73 stream << "driftTime: " << rawDriftTime() << std::endl;
74 stream << "dataWord: " << m_word << std::endl;
75
76 stream << "Base class (PrepRawData):" << std::endl;
77 this->PrepRawData::dump(stream);
78
79 return stream;
80}
81
82MsgStream&
83operator<<(MsgStream& stream, const TRT_DriftCircle& prd)
84{
85 return prd.dump(stream);
86}
87
88std::ostream&
89operator<<(std::ostream& stream, const TRT_DriftCircle& prd)
90{
91 return prd.dump(stream);
92}
93
94}//end of ns
95
Virtual base class of TRT readout elements.
bool driftTimeValid() const
return true if the corrected drift time is OK
const InDetDD::TRT_BaseElement * m_detEl
virtual MsgStream & dump(MsgStream &stream) const override final
dump information about the PRD object.
bool highLevel() const
returns true if the high level threshold was passed
double rawDriftTime() const
returns the raw driftTime
double timeOverThreshold() const
returns Time over threshold in ns
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
PrepRawData()
public because of DataPool
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Primary Vertex Finder.
MsgStream & operator<<(MsgStream &, const GNNTrackFinderTritonTool &)
-event-from-file
STL namespace.