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