ATLAS Offline Software
TrigInDetTrackCnv_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 
8 
9 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  TrigInDetTrack *transObj,
14  MsgStream &log )
15 {
16 
17  log << MSG::DEBUG << "TrigInDetTrackCnv_p1::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->param (createTransFromPStore( &m_fpCnv, persObj->m_param, log ));
27  transObj->endParam (createTransFromPStore( &m_fpCnv, persObj->m_endParam, log ));
28 
29 }
30 
31 //-----------------------------------------------------------------------------
32 // Transient to persistent
33 //-----------------------------------------------------------------------------
35  TrigInDetTrack_p1 *persObj,
36  MsgStream &log )
37 {
38  log << MSG::DEBUG << "TrigInDetTrackCnv_p1::transToPers called " << endmsg;
39 
40  persObj->m_algId = transObj->algorithmId() ;
41  persObj->m_chi2 = transObj->chi2() ;
42  persObj->m_NStrawHits = transObj->NStrawHits() ;
43  persObj->m_NStraw = transObj->NStraw() ;
44  persObj->m_NStrawTime = transObj->NStrawTime() ;
45  persObj->m_NTRHits = transObj->NTRHits() ;
46 
47  persObj->m_param = toPersistent( &m_fpCnv, transObj->param(), log );
48  persObj->m_endParam = toPersistent( &m_fpCnv, transObj->endParam(), log );
49 }
TrigInDetTrack::StrawTime
void StrawTime(const int NSTime)
Definition: TrigInDetTrack.h:131
TrigInDetTrack_p1::m_algId
int m_algId
Definition: TrigInDetTrack_p1.h:40
TrigInDetTrack_p1::m_NStrawTime
int m_NStrawTime
Definition: TrigInDetTrack_p1.h:46
TrigInDetTrack::param
void param(const TrigInDetTrackFitPar *param)
Definition: TrigInDetTrack.h:126
TrigInDetTrack_p1::m_chi2
double m_chi2
Definition: TrigInDetTrack_p1.h:43
TrigInDetTrack::NStrawTime
int NStrawTime() const
Number of TRT straws with valid drift time intersected by track.
Definition: TrigInDetTrack.h:173
TrigInDetTrack_p1::m_NStrawHits
int m_NStrawHits
Definition: TrigInDetTrack_p1.h:44
TrigInDetTrack_p1::m_NStraw
int m_NStraw
Definition: TrigInDetTrack_p1.h:45
TrigInDetTrackCnv_p1::m_fpCnv
ITPConverterFor< TrigInDetTrackFitPar > * m_fpCnv
Definition: TrigInDetTrackCnv_p1.h:45
TrigInDetTrackCnv_p1::transToPers
virtual void transToPers(const TrigInDetTrack *, TrigInDetTrack_p1 *, MsgStream &)
Definition: TrigInDetTrackCnv_p1.cxx:34
TrigInDetTrack_p1::m_endParam
TPObjRef m_endParam
Definition: TrigInDetTrack_p1.h:42
TrigInDetTrack::chi2
void chi2(const double chi2)
Definition: TrigInDetTrack.h:128
TrigInDetTrack::TRHits
void TRHits(const int NTR)
Definition: TrigInDetTrack.h:132
TrigInDetTrack::AlgoId
AlgoId
Definition: TrigInDetTrack.h:37
TrigInDetTrack::NStraw
int NStraw() const
Number of TRT straws intersected by track.
Definition: TrigInDetTrack.h:171
TrigInDetTrackCnv_p1.h
TrigInDetTrack
Definition: TrigInDetTrack.h:34
TrigInDetTrack_p1::m_param
TPObjRef m_param
Definition: TrigInDetTrack_p1.h:41
TrigInDetTrack.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigInDetTrack_p1.h
TrigInDetTrack::Straw
void Straw(const int NS)
Definition: TrigInDetTrack.h:130
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::StrawHits
void StrawHits(const int NSHits)
Definition: TrigInDetTrack.h:129
TrigInDetTrack_p1::m_NTRHits
int m_NTRHits
Definition: TrigInDetTrack_p1.h:47
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_p1
Definition: TrigInDetTrack_p1.h:23
TrigInDetTrackCnv_p1::persToTrans
virtual void persToTrans(const TrigInDetTrack_p1 *, TrigInDetTrack *, MsgStream &)
Definition: TrigInDetTrackCnv_p1.cxx:12
TrigInDetTrack::algorithmId
void algorithmId(const AlgoId id)
Definition: TrigInDetTrack.h:125
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