ATLAS Offline Software
Loading...
Searching...
No Matches
MdtPrepDataCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5//-----------------------------------------------------------------------------
6//
7// file: MdtPrepDataCnv_p1.cxx
8//
9//-----------------------------------------------------------------------------
10
13
15persToTrans( const Muon::MdtPrepData_p1 *persObj, Muon::MdtPrepData *transObj,MsgStream &log )
16{
17 Amg::Vector2D driftRadius;
18 driftRadius.setZero();
19
20 *transObj = Muon::MdtPrepData (transObj->identify(),
21 driftRadius,
22 {}, // errDriftRadius
23 transObj->detectorElement(),
24 persObj->m_tdc,
25 persObj->m_adc,
26 static_cast<Muon::MdtDriftCircleStatus>(persObj->m_status));
27
28 fillTransFromPStore( &m_prdCnv, persObj->m_prd, transObj, log );
29}
30
32transToPers( const Muon::MdtPrepData *transObj, Muon::MdtPrepData_p1 *persObj, MsgStream &log )
33{
34 //log << MSG::DEBUG << "MdtPrepDataCnv_p1::transToPers" << endmsg;
35 persObj->m_prd = baseToPersistent( &m_prdCnv, transObj, log );
36 persObj->m_tdc = transObj->tdc();
37 persObj->m_adc = transObj->adc();
38 persObj->m_status = transObj->status();
39}
40
41
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
void persToTrans(const Muon::MdtPrepData_p1 *persObj, Muon::MdtPrepData *transObj, MsgStream &log)
PrepRawDataCnv_p1 * m_prdCnv
void transToPers(const Muon::MdtPrepData *transObj, Muon::MdtPrepData_p1 *persObj, MsgStream &log)
Class to represent measurements from the Monitored Drift Tubes.
Definition MdtPrepData.h:33
int adc() const
Returns the ADC (typically range is 0 to 250)
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
MdtDriftCircleStatus status() const
Returns the status of the measurement.
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Identifier identify() const
return the identifier
Eigen::Matrix< double, 2, 1 > Vector2D
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.