ATLAS Offline Software
MdtDriftCircleOnTrackCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: MdtDriftCircleOnTrackCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
14 
15 #include <iostream>
16 
19  Muon::MdtDriftCircleOnTrack *transObj, MsgStream &log )
20 {
21  Muon::MuonDriftCircleErrorStrategy errorStrategy(0);
30 
32  m_elCnv.persToTrans(&persObj->m_prdLink, &rio, log);
33 
34  *transObj = Muon::MdtDriftCircleOnTrack (rio,
36  Amg::MatrixX(),
37  Identifier(),
38  nullptr, // detEl,
39  persObj->m_driftTime,
40  static_cast<Trk::DriftCircleStatus>( persObj->m_status ),
41  persObj->m_positionAlongWire,
42  persObj->m_localAngle,
43  errorStrategy);
44  fillTransFromPStore( &m_RIOCnv, persObj->m_RIO, transObj, log );
45 }
46 
49  Muon::MdtDriftCircleOnTrack_p1 *, MsgStream & )
50 {
51  throw std::runtime_error("MdtDriftCircleOnTrackCnv_p1::transToPers is deprecated!");
52 }
53 
54 
Trk::LocalParameters
Definition: LocalParameters.h:98
Muon::MuonDriftCircleErrorStrategy
Definition: MuonDriftCircleErrorStrategy.h:15
Muon::MuonDriftCircleErrorStrategy::WireSagTimeCorrection
@ WireSagTimeCorrection
Wire sag correction was applied in calibration.
Definition: MuonDriftCircleErrorStrategy.h:30
MuonDriftCircleErrorStrategy.h
MdtDriftCircleOnTrackCnv_p1::m_elCnv
ElementLinkCnv_p1< ElementLinkToIDC_MDT_Container > m_elCnv
Definition: MdtDriftCircleOnTrackCnv_p1.h:43
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
MdtDriftCircleOnTrackCnv_p1::m_RIOCnv
RIO_OnTrackCnv_p1 * m_RIOCnv
Definition: MdtDriftCircleOnTrackCnv_p1.h:41
Trk::DriftCircleStatus
DriftCircleStatus
Enumerates the 'status' of the wire on which the tracks passed (based on the TRT_Side enum,...
Definition: DriftCircleStatus.h:16
Muon::MdtDriftCircleOnTrack_p1::m_positionAlongWire
float m_positionAlongWire
This is the position of the point of closest approach, in the local z coord (i.e.
Definition: MdtDriftCircleOnTrack_p1.h:47
MdtDriftCircleOnTrackCnv_p1::transToPers
void transToPers(const Muon ::MdtDriftCircleOnTrack *transObj, Muon ::MdtDriftCircleOnTrack_p1 *persObj, MsgStream &log)
Definition: MdtDriftCircleOnTrackCnv_p1.cxx:48
MdtDriftCircleOnTrack.h
Muon::MuonDriftCircleErrorStrategy::PropCorrection
@ PropCorrection
Propagation correction was applied in calibration.
Definition: MuonDriftCircleErrorStrategy.h:27
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
Muon::MdtDriftCircleOnTrack_p1::m_status
unsigned int m_status
Status of Mdt - in transient world this is the Trk::DriftCircleStatus enum.
Definition: MdtDriftCircleOnTrack_p1.h:32
Muon::MdtDriftCircleOnTrack_p1::m_rotCreationParameters
unsigned int m_rotCreationParameters
Records information about the 'strategy' used by Muon::MdtDriftCircleOnTrackCreator to make this obje...
Definition: MdtDriftCircleOnTrack_p1.h:53
Muon::MuonDriftCircleErrorStrategy::WireSagGeomCorrection
@ WireSagGeomCorrection
Wire sag was applied, and so will affect errors.
Definition: MuonDriftCircleErrorStrategy.h:25
Muon::MuonDriftCircleErrorStrategy::UnknownStrategy
@ UnknownStrategy
Definition: MuonDriftCircleErrorStrategy.h:17
Muon::MdtDriftCircleOnTrack_p1
Version 1 of the persistent class representing the transient class Muon::MdtDriftCircleOnTrack.
Definition: MdtDriftCircleOnTrack_p1.h:23
Muon::MuonDriftCircleErrorStrategy::ErrorAtPredictedPosition
@ ErrorAtPredictedPosition
Definition: MuonDriftCircleErrorStrategy.h:23
Muon::MdtDriftCircleOnTrack_p1::m_driftTime
float m_driftTime
This is the drift time that was used to calibrate the hit.
Definition: MdtDriftCircleOnTrack_p1.h:50
Muon::MuonDriftCircleErrorStrategy::MagFieldCorrection
@ MagFieldCorrection
Magnetic field correction was applied in calibration.
Definition: MuonDriftCircleErrorStrategy.h:29
Muon::MdtDriftCircleOnTrack
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
Definition: MdtDriftCircleOnTrack.h:37
Muon::MuonDriftCircleErrorStrategy::setParameter
void setParameter(CreationParameter, bool value)
Definition: MuonDriftCircleErrorStrategy.h:65
Muon::MuonDriftCircleErrorStrategy::setStrategy
void setStrategy(Strategy)
Select the strategy to be used - only one can be set at a time.
Definition: MuonDriftCircleErrorStrategy.h:56
Muon::MdtDriftCircleOnTrack_p1::m_prdLink
ElementLinkInt_p1 m_prdLink
Link to PRD.
Definition: MdtDriftCircleOnTrack_p1.h:41
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MuonDriftCircleErrorStrategy::BroadError
@ BroadError
Definition: MuonDriftCircleErrorStrategy.h:18
Muon::MuonDriftCircleErrorStrategy::ScaledError
@ ScaledError
Definition: MuonDriftCircleErrorStrategy.h:19
MdtDriftCircleOnTrackCnv_p1::persToTrans
void persToTrans(const Muon ::MdtDriftCircleOnTrack_p1 *persObj, Muon ::MdtDriftCircleOnTrack *transObj, MsgStream &log)
Definition: MdtDriftCircleOnTrackCnv_p1.cxx:18
Muon::MdtDriftCircleOnTrack_p1::m_RIO
TPObjRef m_RIO
base RIO_OnTrack_p1
Definition: MdtDriftCircleOnTrack_p1.h:35
Muon::MdtDriftCircleOnTrack_p1::m_localAngle
float m_localAngle
This angle is the position of the point of closest approach in cylindrical coordinates,...
Definition: MdtDriftCircleOnTrack_p1.h:44
MdtDriftCircleOnTrackCnv_p1.h
Identifier
Definition: IdentifierFieldParser.cxx:14