ATLAS Offline Software
MdtPrepData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // MdtPrepData.cxx
7 // Implementation file for class MdtPrepData
9 // (c) ATLAS Detector software
11 // Version 1.0 03/30/2005 Ketevi A. Assamagan
13 
15 #include "GaudiKernel/MsgStream.h"
16 
17 namespace Muon
18 {
19 
20  // Constructor with parameters:
23  const Amg::MatrixX& errDriftRadius,
24  const MuonGM::MdtReadoutElement* detEl,
25  const int tdc,
26  const int adc,
28  PrepRawData(id, driftRadius, errDriftRadius), //call base class constructor
29  m_detEl(detEl),
30  m_tdc(tdc),
31  m_adc(adc),
32  m_status(status)
33 
34 {
35 // assert(rdoList.size()==1);
36 // assert( rdoList[0]==id);
37 }
38 
39 MdtPrepData::~MdtPrepData() = default;
40 MdtPrepData::MdtPrepData() = default;
41 
42 
43 //Copy constructor:
45  PrepRawData( RIO ),
46  m_detEl(RIO.m_detEl),
47  m_tdc(RIO.m_tdc),
48  m_adc(RIO.m_adc),
49  m_status(RIO.m_status) {}
50 
51 //Move constructor:
53  PrepRawData( std::move(RIO) ),
54  m_detEl(RIO.m_detEl),
55  m_tdc(RIO.m_tdc),
56  m_adc(RIO.m_adc),
57  m_status(RIO.m_status) {}
58 
59 //assignment operator
61  if (&RIO !=this) {
63  m_detEl = RIO.m_detEl;
64  m_tdc = RIO.m_tdc;
65  m_adc = RIO.m_adc;
66  m_status = RIO.m_status;
67  if (m_globalPosition) m_globalPosition.release();
68  }
69  return *this;
70 }
71 
72 //assignment operator
74  if (&RIO !=this) {
75  m_detEl = RIO.m_detEl;
76  m_tdc = RIO.m_tdc;
77  m_adc = RIO.m_adc;
78  m_status = RIO.m_status;
79  Trk::PrepRawData::operator=(std::move(RIO));
80  if (m_globalPosition) {
81  m_globalPosition.release();
82  }
83  }
84  return *this;
85 }
86 
87 MsgStream& MdtPrepData::dump( MsgStream& stream) const
88  {
89  stream << MSG::INFO<<"MdtPrepData {"<<std::endl;
90 
92 
93  //MdtPrepData methods
94  stream <<"TDC = "<<tdc()<<", ";
95  stream <<"ADC = "<<adc()<<", ";
96  stream <<"status = "<<status()<<", ";
97  stream<<"} End MdtPrepData"<<endmsg;
98 
99  return stream;
100  }
101 
102  std::ostream& MdtPrepData::dump( std::ostream& stream) const
103  {
104  stream << "MdtPrepData {"<<std::endl;
105 
107 
108  //MdtPrepData methods
109  stream <<"TDC = "<<tdc()<<", ";
110  stream <<"ADC = "<<adc()<<", ";
111  stream <<"status = "<<status()<<", ";
112  stream<<"} End MdtPrepData"<<std::endl;
113  return stream;
114  }
115 
116 
117 
118 }//end of ns
119 
120 
Muon::MdtPrepData::m_adc
int m_adc
ADC value - typical ADC spectra can go from 0 up to 250.
Definition: MdtPrepData.h:115
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
Trk::PrepRawData::dump
virtual MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
Definition: PrepRawData.cxx:79
Muon::MdtDriftCircleStatus
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.
Definition: MdtDriftCircleStatus.h:25
Muon::MdtPrepData::m_detEl
const MuonGM::MdtReadoutElement * m_detEl
Cached pointer to detector element (not deleted in destructor, not written to disk)
Definition: MdtPrepData.h:109
MdtPrepData.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250)
Definition: MdtPrepData.h:146
Muon::MdtPrepData::m_tdc
int m_tdc
TDC value - typical TDC spectra can go from 0 up to 2500.
Definition: MdtPrepData.h:112
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
Muon::MdtPrepData::operator=
MdtPrepData & operator=(const MdtPrepData &)
Definition: MdtPrepData.cxx:60
Muon::MdtPrepData::MdtPrepData
MdtPrepData()
Muon::MdtPrepData::~MdtPrepData
virtual ~MdtPrepData()
Destructor.
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:51
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::MdtPrepData::m_status
MdtDriftCircleStatus m_status
enum to hold 'status' of measurement
Definition: MdtPrepData.h:118
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:53
Trk::PrepRawData::operator=
PrepRawData & operator=(const PrepRawData &)=default
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition: MdtPrepData.h:145
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
Muon::MdtPrepData
Class to represent measurements from the Monitored Drift Tubes.
Definition: MdtPrepData.h:33
Muon::MdtPrepData::m_globalPosition
CxxUtils::CachedUniquePtr< const Amg::Vector3D > m_globalPosition
Global position of measurement.
Definition: MdtPrepData.h:124
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
Muon::MdtPrepData::dump
virtual MsgStream & dump(MsgStream &stream) const override
Dumps information about the PRD.
Definition: MdtPrepData.cxx:87
merge.status
status
Definition: merge.py:17
Muon::MdtPrepData::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
Definition: MdtPrepData.h:147
Identifier
Definition: IdentifierFieldParser.cxx:14