ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventTPCnv
src
MuonPrepRawData
RpcPrepDataCnv_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: RpcPrepDataCnv_p1.cxx
8
//
9
//-----------------------------------------------------------------------------
10
11
#include "
MuonPrepRawData/RpcPrepData.h
"
12
#include "
MuonEventTPCnv/MuonPrepRawData/RpcPrepDataCnv_p1.h
"
13
14
void
RpcPrepDataCnv_p1::
15
persToTrans
(
const
Muon::RpcPrepData_p1
*persObj,
Muon::RpcPrepData
*transObj,MsgStream &log )
16
{
17
log << MSG::DEBUG <<
"RpcPrepDataCnv_p1::persToTrans"
<<
endmsg
;
18
19
Amg::Vector2D
locpos;
20
locpos.setZero();
21
22
*transObj =
Muon::RpcPrepData
(transObj->
identify
(),
23
transObj->
collectionHash
(),
24
locpos,
25
std::vector<Identifier>(),
26
{},
// locErrMat,
27
transObj->
detectorElement
(),
28
persObj->
m_time
,
29
persObj->
m_triggerInfo
,
30
persObj->
m_ambiguityFlag
);
31
32
fillTransFromPStore
( &
m_prdCnv
, persObj->
m_prd
, transObj, log );
33
}
34
35
void
RpcPrepDataCnv_p1::
36
transToPers
(
const
Muon::RpcPrepData
*transObj,
Muon::RpcPrepData_p1
*persObj, MsgStream &log )
37
{
38
log << MSG::DEBUG <<
"RpcPrepDataCnv_p1::transToPers"
<<
endmsg
;
39
persObj->
m_prd
=
baseToPersistent
( &
m_prdCnv
, transObj, log );
40
persObj->
m_time
= transObj->
time
();
41
persObj->
m_triggerInfo
= transObj->
triggerInfo
();
42
persObj->
m_ambiguityFlag
= transObj->
ambiguityFlag
();
43
}
44
45
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
RpcPrepDataCnv_p1.h
RpcPrepData.h
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition
TPConverter.h:97
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Definition
TPConverter.h:145
Muon::MuonCluster::collectionHash
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Definition
MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:97
Muon::RpcPrepData_p1
Definition
RpcPrepData_p1.h:19
Muon::RpcPrepData_p1::m_time
float m_time
Definition
RpcPrepData_p1.h:28
Muon::RpcPrepData_p1::m_triggerInfo
int m_triggerInfo
Definition
RpcPrepData_p1.h:29
Muon::RpcPrepData_p1::m_ambiguityFlag
int m_ambiguityFlag
Definition
RpcPrepData_p1.h:30
Muon::RpcPrepData_p1::m_prd
TPObjRef m_prd
Definition
RpcPrepData_p1.h:23
Muon::RpcPrepData
Class to represent RPC measurements.
Definition
RpcPrepData.h:35
Muon::RpcPrepData::detectorElement
virtual const MuonGM::RpcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD.
Definition
RpcPrepData.h:201
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition
RpcPrepData.h:206
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition
RpcPrepData.h:211
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition
RpcPrepData.h:196
RpcPrepDataCnv_p1::persToTrans
void persToTrans(const Muon::RpcPrepData_p1 *persObj, Muon::RpcPrepData *transObj, MsgStream &log)
Definition
RpcPrepDataCnv_p1.cxx:15
RpcPrepDataCnv_p1::transToPers
void transToPers(const Muon::RpcPrepData *transObj, Muon::RpcPrepData_p1 *persObj, MsgStream &log)
Definition
RpcPrepDataCnv_p1.cxx:36
RpcPrepDataCnv_p1::m_prdCnv
PrepRawDataCnv_p1 * m_prdCnv
Definition
RpcPrepDataCnv_p1.h:35
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
Generated on
for ATLAS Offline Software by
1.17.0