ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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}
virtual void persToTrans(const LifetimeInfo_p1 *persObj, LifetimeInfo *transObj, MsgStream &log)
virtual void transToPers(const LifetimeInfo *trans, LifetimeInfo_p1 *pers, MsgStream &log)
std::vector< float > m_trackSIP
All of this data will be written out.
float m_nTrackProb
nTrack probability (calculated but not in use)
std::vector< float > m_vectorOfTrackProb
vector of track probabilities (calculated but not in use)
std::vector< float > m_trackSignificance
significance (= signedIP/sigD0)
TPObjRef m_BaseTagInfo
Basic info.
Class LifetimeInfo: Class to store information produced by the LifetimeTag.
const FloatVec & significance() const
return significance (= signedIP/sigD0)
const FloatVec & vectorTrackProb(void) const
return vector of Track probabilities (not ACTIVE)
const FloatVec & signedIP() const
The signed 2D impact parameters.
void setNTrackProb(double nTrackProb)
set nTrack probability (nor ACTIVE)
void setIP(const FloatVec &ipVec)
set signed impact parameter
void setSignificance(const FloatVec &ipVec)
set significance
void setTrackProb(const FloatVec &vec)
set Track probability (not ACTIVE)
double nTrackProb(void) const
return nTrack probabilities (not ACTIVE)
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & msg
Definition testRead.cxx:32