ATLAS Offline Software
MdtPrepDataCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: MdtPrepDataCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
13 
15 persToTrans( const Muon::MdtPrepData_p1 *persObj, Muon::MdtPrepData *transObj,MsgStream &log )
16 {
18  driftRadius.setZero();
19 
20  *transObj = Muon::MdtPrepData (transObj->identify(),
21  transObj->collectionHash(),
23  {}, // errDriftRadius
24  transObj->detectorElement(),
25  persObj->m_tdc,
26  persObj->m_adc,
27  static_cast<Muon::MdtDriftCircleStatus>(persObj->m_status));
28 
29  fillTransFromPStore( &m_prdCnv, persObj->m_prd, transObj, log );
30 }
31 
33 transToPers( const Muon::MdtPrepData *transObj, Muon::MdtPrepData_p1 *persObj, MsgStream &log )
34 {
35  //log << MSG::DEBUG << "MdtPrepDataCnv_p1::transToPers" << endmsg;
36  persObj->m_prd = baseToPersistent( &m_prdCnv, transObj, log );
37  persObj->m_tdc = transObj->tdc();
38  persObj->m_adc = transObj->adc();
39  persObj->m_status = transObj->status();
40 }
41 
42 
MdtPrepDataCnv_p1::m_prdCnv
PrepRawDataCnv_p1 * m_prdCnv
Definition: MdtPrepDataCnv_p1.h:35
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
Muon::MdtDriftCircleStatus
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.
Definition: MdtDriftCircleStatus.h:25
MdtPrepData.h
Muon::MdtPrepData_p1
Definition: MdtPrepData_p1.h:19
Muon::MdtPrepData_p1::m_adc
int m_adc
Definition: MdtPrepData_p1.h:26
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250)
Definition: MdtPrepData.h:166
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
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:59
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition: MdtPrepData.h:161
Muon::MdtPrepData_p1::m_prd
TPObjRef m_prd
Definition: MdtPrepData_p1.h:23
Muon::MdtPrepData
Class to represent measurements from the Monitored Drift Tubes.
Definition: MdtPrepData.h:37
Muon::MdtPrepData::collectionHash
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the Mdt tube which was hit.
Definition: MdtPrepData.h:176
MdtPrepDataCnv_p1::persToTrans
void persToTrans(const Muon::MdtPrepData_p1 *persObj, Muon::MdtPrepData *transObj, MsgStream &log)
Definition: MdtPrepDataCnv_p1.cxx:15
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MdtPrepData_p1::m_tdc
int m_tdc
Definition: MdtPrepData_p1.h:25
Muon::MdtPrepData_p1::m_status
int m_status
Definition: MdtPrepData_p1.h:27
Muon::MdtPrepData::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
Definition: MdtPrepData.h:171
MdtPrepDataCnv_p1::transToPers
void transToPers(const Muon::MdtPrepData *transObj, Muon::MdtPrepData_p1 *persObj, MsgStream &log)
Definition: MdtPrepDataCnv_p1.cxx:33
Muon::MdtPrepData::detectorElement
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
Definition: MdtPrepData.h:156
MdtPrepDataCnv_p1.h