ATLAS Offline Software
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 
19 namespace InDet{
20 
21 
23  const Identifier& Id,
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,
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 
56 MsgStream&
57 TRT_DriftCircle::dump(MsgStream& stream) const
58 {
59  std::ostringstream out;
60  dump(out);
61  stream<<out.str();
62  return stream;
63 }
64 
65 std::ostream&
66 TRT_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 
82 MsgStream&
83 operator<<(MsgStream& stream, const TRT_DriftCircle& prd)
84 {
85  return prd.dump(stream);
86 }
87 
88 std::ostream&
89 operator<<(std::ostream& stream, const TRT_DriftCircle& prd)
90 {
91  return prd.dump(stream);
92 }
93 
94 }//end of ns
95 
InDet::operator<<
MsgStream & operator<<(MsgStream &, const GNNTrackReaderTool &)
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::TRT_DriftCircle::timeOverThreshold
double timeOverThreshold() const
returns Time over threshold in ns
InDet::TRT_DriftCircle::TRT_DriftCircle
TRT_DriftCircle()
Definition: TRT_DriftCircle.cxx:48
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
InDet::TRT_DriftCircle
Definition: TRT_DriftCircle.h:32
run_Egamma1_LArStrip_Fex.dump
dump
Definition: run_Egamma1_LArStrip_Fex.py:88
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:53
TRT_DriftCircle.h
InDet::TRT_DriftCircle::highLevel
bool highLevel() const
returns true if the high level threshold was passed
InDet::TRT_DriftCircle::driftTimeValid
bool driftTimeValid() const
return true if the corrected drift time is OK
InDet::TRT_DriftCircle::dump
virtual MsgStream & dump(MsgStream &stream) const override final
dump information about the PRD object.
Definition: TRT_DriftCircle.cxx:57
InDet::TRT_DriftCircle::m_word
unsigned int m_word
Definition: TRT_DriftCircle.h:134
InDet::TRT_DriftCircle::rawDriftTime
double rawDriftTime() const
returns the raw driftTime
InDetDD::TRT_BaseElement
Definition: TRT_BaseElement.h:57
Identifier
Definition: IdentifierFieldParser.cxx:14