ATLAS Offline Software
TrigMuonEFInfoCnv_p3.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
11  TrigMuonEFInfo* transObj,
12  MsgStream &log)
13 {
14  log << MSG::DEBUG << "TrigMuonEFInfoCnv_p3::persToTrans called " << endmsg;
15 
16  std::unique_ptr<TrigMuonEFInfoTrackContainer> tracks
18  std::unique_ptr<TrigMuonEFTrack> spectrometerTrack
20  std::unique_ptr<TrigMuonEFTrack> extrapolatedTrack
22  std::unique_ptr<TrigMuonEFCbTrack> combinedTrack
24 
25  *transObj = TrigMuonEFInfo (persObj->m_roi,
26  std::move (tracks),
27  std::move (spectrometerTrack),
28  std::move (extrapolatedTrack),
29  std::move (combinedTrack));
30  transObj->setNSegments (persObj->m_nSegments);
31  transObj->setNMdtHits (persObj->m_nMdtHits);
32  transObj->setNRpcHits (persObj->m_nRpcHits);
33  transObj->setNTgcHits (persObj->m_nTgcHits);
34  transObj->setNCscHits (persObj->m_nCscHits);
35 
36  transObj->setEtaPreviousLevel (persObj->m_etaPreviousLevel);
37  transObj->setPhiPreviousLevel (persObj->m_phiPreviousLevel);
38 }
39 
40 
42  TrigMuonEFInfo_p3* /*persObj*/,
43  MsgStream &log)
44 {
45  log << MSG::DEBUG << "TrigMuonEFInfoCnv_p3::transToPers called " << endmsg;
46 
47 // persObj->m_roi = transObj->m_roi;
48 // persObj->m_nSegments = transObj->m_nSegments;
49 // persObj->m_nMdtHits = transObj->m_nMdtHits;
50 // persObj->m_nRpcHits = transObj->m_nRpcHits;
51 // persObj->m_nTgcHits = transObj->m_nTgcHits;
52 // persObj->m_nCscHits = transObj->m_nCscHits;
53 // persObj->m_etaPreviousLevel = transObj->m_etaPreviousLevel;
54 // persObj->m_phiPreviousLevel = transObj->m_phiPreviousLevel;
55 //
56 // // check for legacy
57 // if (transObj->hasLegacyTrack()) {
58 // log << MSG::DEBUG << "TrigMuonEFInfoCnv_p3::transToPers: has legacy track " << endmsg;
59 // // has a legacy track.
60 // // this situation occurs if old BS files are read.
61 // // make a tmp track container to safeguard const correctness of transObj.
62 // TrigMuonEFInfoTrackContainer * tmpTrkCont = new TrigMuonEFInfoTrackContainer();
63 // TrigMuonEFInfoTrack * tmpTrack = new TrigMuonEFInfoTrack();
64 // TrigMuonEFTrack * tmpSpecTrack = new TrigMuonEFTrack( *(transObj->legacySpectrometerTrack() ));
65 // tmpTrack->setSpectrometerTrack( tmpSpecTrack );
66 // TrigMuonEFTrack * tmpExtrTrack = new TrigMuonEFTrack( *(transObj->legacyExtrapolatedTrack() ));
67 // tmpTrack->setExtrapolatedTrack( tmpExtrTrack );
68 // TrigMuonEFCbTrack * tmpCbTrack = new TrigMuonEFCbTrack( *(transObj->legacyCombinedTrack() ));
69 // tmpTrack->setCombinedTrack( tmpCbTrack );
70 // tmpTrkCont->push_back( tmpTrack );
71 //
72 // // persistify the tmp track container
73 // persObj->m_trackContainer = toPersistent( &m_trackContainerCnv, tmpTrkCont, log);
74 //
75 // // clean up
76 // delete tmpTrkCont;
77 // }
78 // else {
79 // persObj->m_trackContainer = toPersistent( &m_trackContainerCnv, transObj->m_trackContainer, log);
80 // }
81 
82 }
TrigMuonEFInfo::setPhiPreviousLevel
void setPhiPreviousLevel(double thePhiPreviousLevel)
Definition: TrigMuonEFInfo.cxx:261
TrigMuonEFInfoCnv_p3::m_cbTrackCnv
ITPConverterFor< TrigMuonEFCbTrack > * m_cbTrackCnv
Definition: TrigMuonEFInfoCnv_p3.h:53
TrigMuonEFInfoCnv_p3::m_trackCnv
ITPConverterFor< TrigMuonEFTrack > * m_trackCnv
Definition: TrigMuonEFInfoCnv_p3.h:52
TrigMuonEFInfo_p3::m_nSegments
unsigned short int m_nSegments
Definition: TrigMuonEFInfo_p3.h:47
TrigMuonEFInfo::setNMdtHits
void setNMdtHits(unsigned short int theNMdtHits)
Definition: TrigMuonEFInfo.cxx:231
TrigMuonEFInfo_p3.h
TrigMuonEFInfoCnv_p3.h
TrigMuonEFInfo_p3::m_nMdtHits
unsigned short int m_nMdtHits
Definition: TrigMuonEFInfo_p3.h:48
TrigMuonEFInfo::setNCscHits
void setNCscHits(unsigned short int theNCscHits)
Definition: TrigMuonEFInfo.cxx:249
TrigMuonEFInfo_p3::m_spectrometerTrack
TPObjRef m_spectrometerTrack
Definition: TrigMuonEFInfo_p3.h:55
TrigMuonEFInfo_p3::m_nRpcHits
unsigned short int m_nRpcHits
Definition: TrigMuonEFInfo_p3.h:49
Trk::combinedTrack
void combinedTrack(long int ICH, double *pv0, double *covi, double BMAG, double *par, double *covo)
Definition: XYZtrp.cxx:113
TrigMuonEFInfo_p3::m_extrapolatedTrack
TPObjRef m_extrapolatedTrack
Definition: TrigMuonEFInfo_p3.h:56
TrigMuonEFInfo.h
TrigMuonEFInfo_p3::m_nCscHits
unsigned short int m_nCscHits
Definition: TrigMuonEFInfo_p3.h:51
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigMuonEFInfoCnv_p3::transToPers
virtual void transToPers(const TrigMuonEFInfo *transObj, TrigMuonEFInfo_p3 *persObj, MsgStream &log)
Definition: TrigMuonEFInfoCnv_p3.cxx:41
TrigMuonEFInfo::setNRpcHits
void setNRpcHits(unsigned short int theNRpcHits)
Definition: TrigMuonEFInfo.cxx:237
TrigMuonEFInfo_p3::m_etaPreviousLevel
double m_etaPreviousLevel
Definition: TrigMuonEFInfo_p3.h:52
TrigMuonEFInfo_p3::m_trackContainer
TPObjRef m_trackContainer
Definition: TrigMuonEFInfo_p3.h:58
TrigMuonEFInfo_p3::m_phiPreviousLevel
double m_phiPreviousLevel
Definition: TrigMuonEFInfo_p3.h:53
TrigMuonEFInfoCnv_p3::m_trackContainerCnv
ITPConverterFor< TrigMuonEFInfoTrackContainer > * m_trackContainerCnv
Definition: TrigMuonEFInfoCnv_p3.h:54
TrigMuonEFInfo_p3::m_nTgcHits
unsigned short int m_nTgcHits
Definition: TrigMuonEFInfo_p3.h:50
TrigMuonEFInfo_p3
Definition: TrigMuonEFInfo_p3.h:26
TrigMuonEFInfo_p3::m_combinedTrack
TPObjRef m_combinedTrack
Definition: TrigMuonEFInfo_p3.h:57
TrigMuonEFInfo_p3::m_roi
unsigned short int m_roi
Definition: TrigMuonEFInfo_p3.h:46
TrigMuonEFInfoCnv_p3::persToTrans
virtual void persToTrans(const TrigMuonEFInfo_p3 *persObj, TrigMuonEFInfo *transObj, MsgStream &log)
Definition: TrigMuonEFInfoCnv_p3.cxx:10
TrigMuonEFInfo::setNTgcHits
void setNTgcHits(unsigned short int theNTgcHits)
Definition: TrigMuonEFInfo.cxx:243
TrigMuonEFInfo::setNSegments
void setNSegments(unsigned short int theNSegments)
Definition: TrigMuonEFInfo.cxx:224
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMuonEFInfo::setEtaPreviousLevel
void setEtaPreviousLevel(double theEtaPreviousLevel)
Definition: TrigMuonEFInfo.cxx:255
TrigMuonEFInfo
Definition: TrigMuonEFInfo.h:24
ITPConverterFor::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172