ATLAS Offline Software
TrigEFBjetCnv_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 void TrigEFBjetCnv_p2::persToTrans(const TrigEFBjet_p2 *persObj, TrigEFBjet *transObj, MsgStream &log) {
12 
13  log << MSG::DEBUG << "TrigEFBjetCnv_p2::persToTrans called " << endmsg;
14 
15  *transObj = TrigEFBjet (persObj->m_roiID,
16  0, // eta
17  0, // phi
18  nullptr, // track
19  nullptr, // prmvertex
20  nullptr, // secvertex
21  persObj->m_prmVtx,
22  0, // ptjet
23  persObj->m_xcomb,
24  persObj->m_xIP1d,
25  persObj->m_xIP2d,
26  persObj->m_xIP3d,
27  persObj->m_xChi2,
28  persObj->m_xSv,
29  persObj->m_xmvtx,
30  persObj->m_xevtx,
31  persObj->m_xnvtx);
32  transObj->validate (persObj->m_valid);
33 
35 
36 }
37 
38 //* Transient to persistent *//
39 void TrigEFBjetCnv_p2::transToPers(const TrigEFBjet *transObj, TrigEFBjet_p2 *persObj, MsgStream &log) {
40 
41  log << MSG::DEBUG << "TrigEFBjetCnv_p2::transToPers called " << endmsg;
42 
43  persObj->m_valid = transObj->isValid();
44  persObj->m_roiID = transObj->roiId();
45  persObj->m_prmVtx = transObj->prmVtx();
46  persObj->m_xcomb = transObj->xComb();
47  persObj->m_xIP1d = transObj->xIP1D();
48  persObj->m_xIP2d = transObj->xIP2D();
49  persObj->m_xIP3d = transObj->xIP3D();
50  persObj->m_xChi2 = transObj->xCHI2();
51  persObj->m_xSv = transObj->xSV();
52  persObj->m_xmvtx = transObj->xMVtx();
53  persObj->m_xevtx = transObj->xEVtx();
54  persObj->m_xnvtx = transObj->xNVtx();
55 
56  persObj->m_p4PtEtaPhiM = baseToPersistent(&m_p4PtEtaPhiMCnv, transObj, log);
57 
58 }
TrigEFBjetCnv_p2::transToPers
virtual void transToPers(const TrigEFBjet *transObj, TrigEFBjet_p2 *persObj, MsgStream &log)
Definition: TrigEFBjetCnv_p2.cxx:39
TrigEFBjet::xEVtx
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
Definition: TrigEFBjet.cxx:81
TrigEFBjet_p2.h
TrigEFBjet_p2::m_xnvtx
float m_xnvtx
Definition: TrigEFBjet_p2.h:62
TrigEFBjet_p2::m_xSv
float m_xSv
Definition: TrigEFBjet_p2.h:59
TrigEFBjet::xNVtx
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
Definition: TrigEFBjet.cxx:82
TrigEFBjetCnv_p2::persToTrans
virtual void persToTrans(const TrigEFBjet_p2 *persObj, TrigEFBjet *transObj, MsgStream &log)
Definition: TrigEFBjetCnv_p2.cxx:11
TrigEFBjet_p2::m_xmvtx
float m_xmvtx
Definition: TrigEFBjet_p2.h:60
TrigEFBjet.h
TrigEFBjet_p2::m_roiID
int m_roiID
Definition: TrigEFBjet_p2.h:51
TrigEFBjet::xCHI2
float xCHI2() const
To retrieve probability weight based on chi2 of track fit.
Definition: TrigEFBjet.cxx:78
TrigEFBjet::isValid
bool isValid() const
To know if TrigEFBjet object is valid.
Definition: TrigEFBjet.cxx:64
ITPConverterFor::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
TrigEFBjet_p2::m_valid
bool m_valid
Definition: TrigEFBjet_p2.h:49
TrigEFBjet
Class representing a b-jet candidate created at EF.
Definition: TrigEFBjet.h:38
TrigEFBjet_p2::m_xevtx
float m_xevtx
Definition: TrigEFBjet_p2.h:61
TrigEFBjet_p2::m_xIP2d
float m_xIP2d
Definition: TrigEFBjet_p2.h:56
TrigEFBjet::roiId
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
Definition: TrigEFBjet.cxx:66
TrigEFBjet::prmVtx
float prmVtx() const
To retrieve reconstructed z of primary vertex.
Definition: TrigEFBjet.cxx:68
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigEFBjet_p2::m_prmVtx
float m_prmVtx
Definition: TrigEFBjet_p2.h:52
TrigEFBjet_p2::m_xIP3d
float m_xIP3d
Definition: TrigEFBjet_p2.h:57
TrigEFBjet_p2::m_xcomb
float m_xcomb
Definition: TrigEFBjet_p2.h:54
ITPConverterFor::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
TrigEFBjet_p2::m_xChi2
float m_xChi2
Definition: TrigEFBjet_p2.h:58
TrigEFBjet::validate
void validate(bool v)
To validate TrigEFBjet object.
Definition: TrigEFBjet.cxx:62
TrigEFBjet::xSV
float xSV() const
To retrieve likelihood weight based on secondary vertex.
Definition: TrigEFBjet.cxx:79
TrigEFBjet::xComb
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
Definition: TrigEFBjet.cxx:74
TrigEFBjet::xIP1D
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
Definition: TrigEFBjet.cxx:75
TrigEFBjetCnv_p2::m_p4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_p4PtEtaPhiMCnv
Definition: TrigEFBjetCnv_p2.h:42
TrigEFBjet_p2::m_xIP1d
float m_xIP1d
Definition: TrigEFBjet_p2.h:55
TrigEFBjet::xIP3D
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
Definition: TrigEFBjet.cxx:77
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigEFBjet_p2
Definition: TrigEFBjet_p2.h:22
TrigEFBjetCnv_p2.h
TrigEFBjet_p2::m_p4PtEtaPhiM
TPObjRef m_p4PtEtaPhiM
Definition: TrigEFBjet_p2.h:64
TrigEFBjet::xMVtx
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
Definition: TrigEFBjet.cxx:80
TrigEFBjet::xIP2D
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
Definition: TrigEFBjet.cxx:76