ATLAS Offline Software
TrigInDetTrackCnv_p2.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 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  TrigInDetTrack *transObj,
14  MsgStream &log )
15 {
16 
17  log << MSG::DEBUG << "TrigInDetTrackCnv_p2::persToTrans called " << endmsg;
18 
19  transObj->algorithmId( ( TrigInDetTrack::AlgoId)persObj->m_algId );
20  transObj->chi2 (persObj->m_chi2) ;
21  transObj->StrawHits (persObj->m_NStrawHits) ;
22  transObj->Straw (persObj->m_NStraw) ;
23  transObj->StrawTime (persObj->m_NStrawTime) ;
24  transObj->TRHits (persObj->m_NTRHits) ;
25 
26  transObj->NPixelSpacePoints (persObj->m_NPixelSpacePoints);
27  transObj->NSCT_SpacePoints (persObj->m_NSCT_SpacePoints);
28  transObj->HitPattern (persObj->m_HitPattern);
29 
30  transObj->param (createTransFromPStore( &m_fpCnv, persObj->m_param, log ));
31  transObj->endParam (createTransFromPStore( &m_fpCnv, persObj->m_endParam, log ));
32 
33 }
34 
35 //-----------------------------------------------------------------------------
36 // Transient to persistent
37 //-----------------------------------------------------------------------------
39  TrigInDetTrack_p2 *persObj,
40  MsgStream &log )
41 {
42 
43  log << MSG::DEBUG << "TrigInDetTrackCnv_p2::transToPers called " << endmsg;
44 
45  persObj->m_algId = transObj->algorithmId() ;
46  persObj->m_chi2 = transObj->chi2() ;
47  persObj->m_NStrawHits = transObj->NStrawHits() ;
48  persObj->m_NStraw = transObj->NStraw() ;
49  persObj->m_NStrawTime = transObj->NStrawTime() ;
50  persObj->m_NTRHits = transObj->NTRHits() ;
51  persObj->m_NPixelSpacePoints = transObj->NPixelSpacePoints();
52  persObj->m_NSCT_SpacePoints = transObj->NSCT_SpacePoints();
53  persObj->m_HitPattern = transObj->HitPattern();
54 
55  persObj->m_param = toPersistent( &m_fpCnv, transObj->param(), log );
56  persObj->m_endParam = toPersistent( &m_fpCnv, transObj->endParam(), log );
57 }
TrigInDetTrack::StrawTime
void StrawTime(const int NSTime)
Definition: TrigInDetTrack.h:131
TrigInDetTrackCnv_p2.h
TrigInDetTrack::param
void param(const TrigInDetTrackFitPar *param)
Definition: TrigInDetTrack.h:126
TrigInDetTrack_p2::m_NStraw
int m_NStraw
Definition: TrigInDetTrack_p2.h:48
TrigInDetTrack::NStrawTime
int NStrawTime() const
Number of TRT straws with valid drift time intersected by track.
Definition: TrigInDetTrack.h:173
TrigInDetTrack_p2::m_endParam
TPObjRef m_endParam
Definition: TrigInDetTrack_p2.h:45
TrigInDetTrack::chi2
void chi2(const double chi2)
Definition: TrigInDetTrack.h:128
TrigInDetTrack::TRHits
void TRHits(const int NTR)
Definition: TrigInDetTrack.h:132
TrigInDetTrack_p2::m_NTRHits
int m_NTRHits
Definition: TrigInDetTrack_p2.h:50
TrigInDetTrackCnv_p2::persToTrans
virtual void persToTrans(const TrigInDetTrack_p2 *, TrigInDetTrack *, MsgStream &)
Definition: TrigInDetTrackCnv_p2.cxx:12
TrigInDetTrack::AlgoId
AlgoId
Definition: TrigInDetTrack.h:37
TrigInDetTrack_p2::m_param
TPObjRef m_param
Definition: TrigInDetTrack_p2.h:44
TrigInDetTrack::NStraw
int NStraw() const
Number of TRT straws intersected by track.
Definition: TrigInDetTrack.h:171
TrigInDetTrack
Definition: TrigInDetTrack.h:34
TrigInDetTrack_p2::m_NPixelSpacePoints
int m_NPixelSpacePoints
Definition: TrigInDetTrack_p2.h:51
TrigInDetTrackCnv_p2::m_fpCnv
ITPConverterFor< TrigInDetTrackFitPar > * m_fpCnv
Definition: TrigInDetTrackCnv_p2.h:45
TrigInDetTrack.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigInDetTrack_p2::m_NStrawTime
int m_NStrawTime
Definition: TrigInDetTrack_p2.h:49
TrigInDetTrack::NPixelSpacePoints
void NPixelSpacePoints(const int n)
Definition: TrigInDetTrack.h:133
TrigInDetTrack::NSCT_SpacePoints
void NSCT_SpacePoints(const int n)
Definition: TrigInDetTrack.h:134
TrigInDetTrack_p2::m_HitPattern
long m_HitPattern
Definition: TrigInDetTrack_p2.h:53
TrigInDetTrack::Straw
void Straw(const int NS)
Definition: TrigInDetTrack.h:130
TrigInDetTrack_p2.h
TrigInDetTrack_p2
Definition: TrigInDetTrack_p2.h:24
TrigInDetTrack::NStrawHits
int NStrawHits() const
Number of TRT hits associated with track.
Definition: TrigInDetTrack.h:169
ITPConverterFor::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
TrigInDetTrack_p2::m_chi2
double m_chi2
Definition: TrigInDetTrack_p2.h:46
TrigInDetTrack::StrawHits
void StrawHits(const int NSHits)
Definition: TrigInDetTrack.h:129
TrigInDetTrackCnv_p2::transToPers
virtual void transToPers(const TrigInDetTrack *, TrigInDetTrack_p2 *, MsgStream &)
Definition: TrigInDetTrackCnv_p2.cxx:38
TrigInDetTrack::NTRHits
int NTRHits() const
Number of high-threshold TRT hits associated with track.
Definition: TrigInDetTrack.h:175
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigInDetTrack::endParam
void endParam(const TrigInDetTrackFitPar *param)
Definition: TrigInDetTrack.h:127
TrigInDetTrack::algorithmId
void algorithmId(const AlgoId id)
Definition: TrigInDetTrack.h:125
TrigInDetTrack::HitPattern
void HitPattern(const long hp)
Hit pattern setter method.
Definition: TrigInDetTrack.h:144
TrigInDetTrack_p2::m_NSCT_SpacePoints
int m_NSCT_SpacePoints
Definition: TrigInDetTrack_p2.h:52
TrigInDetTrack_p2::m_NStrawHits
int m_NStrawHits
Definition: TrigInDetTrack_p2.h:47
TrigInDetTrack_p2::m_algId
int m_algId
Definition: TrigInDetTrack_p2.h:43
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