ATLAS Offline Software
LifetimeInfoCnv_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 
12 
13 #include "GaudiKernel/MsgStream.h"
14 
15 namespace Analysis {
16 
18  LifetimeInfo_p1 *persObj,
19  MsgStream &msg)
20  {
23  transObj,
24  msg);
25 
27  persObj->m_trackSIP.assign (transObj->signedIP().begin(),
28  transObj->signedIP().end());
29  persObj->m_trackSignificance.assign (transObj->significance().begin(),
30  transObj->significance().end());
31  persObj->m_vectorOfTrackProb.assign (transObj->vectorTrackProb().begin(),
32  transObj->vectorTrackProb().end());
33  persObj->m_nTrackProb = transObj->nTrackProb();
34  }
35 
37  LifetimeInfo *transObj,
38  MsgStream &msg)
39  {
41  fillTransFromPStore (&m_baseTagCnv, persObj->m_BaseTagInfo, transObj, msg);
42 
44  std::vector<double> v;
45  v.assign (persObj->m_trackSIP.begin(), persObj->m_trackSIP.end());
46  transObj->setIP(std::move(v));
47  v.assign (persObj->m_trackSignificance.begin(), persObj->m_trackSignificance.end());
48  transObj->setSignificance(std::move(v));
49  v.assign (persObj->m_vectorOfTrackProb.begin(), persObj->m_vectorOfTrackProb.end());
50  transObj->setTrackProb (std::move(v));
51  transObj->setNTrackProb (persObj->m_nTrackProb);
52  }
53 
54 }
Analysis::LifetimeInfoCnv_p1::transToPers
virtual void transToPers(const LifetimeInfo *trans, LifetimeInfo_p1 *pers, MsgStream &log)
Definition: LifetimeInfoCnv_p1.cxx:17
Analysis::LifetimeInfo_p1::m_nTrackProb
float m_nTrackProb
nTrack probability (calculated but not in use)
Definition: LifetimeInfo_p1.h:31
Analysis::LifetimeInfo::signedIP
const FloatVec & signedIP() const
The signed 2D impact parameters.
Definition: LifetimeInfo.h:86
Analysis::LifetimeInfo
Class LifetimeInfo: Class to store information produced by the LifetimeTag.
Definition: LifetimeInfo.h:41
Analysis::LifetimeInfo::setTrackProb
void setTrackProb(const FloatVec &vec)
set Track probability (not ACTIVE)
Definition: LifetimeInfo.h:114
BaseTagInfoCnv_p1.h
LifetimeInfo.h
Analysis::LifetimeInfo_p1::m_vectorOfTrackProb
std::vector< float > m_vectorOfTrackProb
vector of track probabilities (calculated but not in use)
Definition: LifetimeInfo_p1.h:30
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
Analysis::LifetimeInfo::nTrackProb
double nTrackProb(void) const
return nTrack probabilities (not ACTIVE)
Definition: LifetimeInfo.h:130
Analysis::LifetimeInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: LifetimeInfoCnv_p1.h:41
Analysis::LifetimeInfo::setIP
void setIP(const FloatVec &ipVec)
set signed impact parameter
Definition: LifetimeInfo.h:94
LifetimeInfoCnv_p1.h
Analysis::LifetimeInfo::setSignificance
void setSignificance(const FloatVec &ipVec)
set significance
Definition: LifetimeInfo.h:104
Analysis::LifetimeInfo_p1
Definition: LifetimeInfo_p1.h:19
Analysis::LifetimeInfoCnv_p1::persToTrans
virtual void persToTrans(const LifetimeInfo_p1 *persObj, LifetimeInfo *transObj, MsgStream &log)
Definition: LifetimeInfoCnv_p1.cxx:36
Analysis::LifetimeInfo::significance
const FloatVec & significance() const
return significance (= signedIP/sigD0)
Definition: LifetimeInfo.h:90
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
python.PyAthena.v
v
Definition: PyAthena.py:154
Analysis::LifetimeInfo_p1::m_trackSIP
std::vector< float > m_trackSIP
All of this data will be written out.
Definition: LifetimeInfo_p1.h:27
Analysis::LifetimeInfo_p1::m_trackSignificance
std::vector< float > m_trackSignificance
significance (= signedIP/sigD0)
Definition: LifetimeInfo_p1.h:28
Analysis::LifetimeInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Basic info.
Definition: LifetimeInfo_p1.h:24
Analysis::LifetimeInfo::vectorTrackProb
const FloatVec & vectorTrackProb(void) const
return vector of Track probabilities (not ACTIVE)
Definition: LifetimeInfo.h:126
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::LifetimeInfo::setNTrackProb
void setNTrackProb(double nTrackProb)
set nTrack probability (nor ACTIVE)
Definition: LifetimeInfo.h:122