ATLAS Offline Software
TrigInDetTrackCnv_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 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
12 void TrigInDetTrackCnv_p3::persToTrans( const TrigInDetTrack_p3 *persObj, TrigInDetTrack *transObj, MsgStream &log )
13 {
14 
15  // log << MSG::DEBUG << "TrigInDetTrackCnv_p3::persToTrans called " << endmsg;
16 
17  transObj->algorithmId ((TrigInDetTrack::AlgoId) persObj->m_allIntegers[0]);
18  transObj->StrawHits (persObj->m_allIntegers[1]);
19  transObj->Straw (persObj->m_allIntegers[2]);
20  transObj->StrawTime (persObj->m_allIntegers[3]);
21  transObj->TRHits (persObj->m_allIntegers[4]);
22  transObj->NPixelSpacePoints (persObj->m_allIntegers[5]);
23  transObj->NSCT_SpacePoints (persObj->m_allIntegers[6]);
24  transObj->HitPattern (persObj->m_allIntegers[7]);
25 
26  transObj->chi2 (persObj->m_chi2) ;
27 
28  transObj->param (createTransFromPStore( &m_fpCnv, persObj->m_param, log ));
29  transObj->endParam (createTransFromPStore( &m_fpCnv, persObj->m_endParam, log ));
30 }
31 
32 //-----------------------------------------------------------------------------
33 // Transient to persistent
34 //-----------------------------------------------------------------------------
35 void TrigInDetTrackCnv_p3::transToPers( const TrigInDetTrack *transObj, TrigInDetTrack_p3 *persObj, MsgStream &log )
36 {
37  // log << MSG::DEBUG << "TrigInDetTrackCnv_p3::transToPers called " << endmsg;
38  persObj->m_allIntegers[0]= transObj->algorithmId() ;
39  persObj->m_allIntegers[1]= transObj->NStrawHits() ;
40  persObj->m_allIntegers[2]= transObj->NStraw() ;
41  persObj->m_allIntegers[3]= transObj->NStrawTime() ;
42  persObj->m_allIntegers[4]= transObj->NTRHits() ;
43  persObj->m_allIntegers[5]= transObj->NPixelSpacePoints();
44  persObj->m_allIntegers[6]= transObj->NSCT_SpacePoints();
45  persObj->m_allIntegers[7]= transObj->HitPattern();
46 
47  persObj->m_chi2 = transObj->chi2() ;
48 
49  persObj->m_param = toPersistent( &m_fpCnv, transObj->param(), log );
50  persObj->m_endParam = toPersistent( &m_fpCnv, transObj->endParam(), log );
51 }
TrigInDetTrack::StrawTime
void StrawTime(const int NSTime)
Definition: TrigInDetTrack.h:131
TrigInDetTrackCnv_p3.h
TrigInDetTrack::param
void param(const TrigInDetTrackFitPar *param)
Definition: TrigInDetTrack.h:126
TrigInDetTrack::NStrawTime
int NStrawTime() const
Number of TRT straws with valid drift time intersected by track.
Definition: TrigInDetTrack.h:173
TrigInDetTrack_p3
Definition: TrigInDetTrack_p3.h:23
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
TrigInDetTrack
Definition: TrigInDetTrack.h:34
TrigInDetTrack_p3::m_param
TPObjRef m_param
Definition: TrigInDetTrack_p3.h:40
TrigInDetTrackCnv_p3::persToTrans
virtual void persToTrans(const TrigInDetTrack_p3 *, TrigInDetTrack *, MsgStream &)
Definition: TrigInDetTrackCnv_p3.cxx:12
TrigInDetTrack_p3.h
TrigInDetTrack_p3::m_allIntegers
int m_allIntegers[8]
Definition: TrigInDetTrack_p3.h:52
TrigInDetTrack.h
TrigInDetTrackCnv_p3::m_fpCnv
ITPConverterFor< TrigInDetTrackFitPar > * m_fpCnv
Definition: TrigInDetTrackCnv_p3.h:45
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::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::NTRHits
int NTRHits() const
Number of high-threshold TRT hits associated with track.
Definition: TrigInDetTrack.h:175
TrigInDetTrack_p3::m_endParam
TPObjRef m_endParam
Definition: TrigInDetTrack_p3.h:41
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigInDetTrack::endParam
void endParam(const TrigInDetTrackFitPar *param)
Definition: TrigInDetTrack.h:127
TrigInDetTrack_p3::m_chi2
double m_chi2
Definition: TrigInDetTrack_p3.h:42
TrigInDetTrackCnv_p3::transToPers
virtual void transToPers(const TrigInDetTrack *, TrigInDetTrack_p3 *, MsgStream &)
Definition: TrigInDetTrackCnv_p3.cxx:35
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
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