ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigParticleTPCnv
src
TrigEFBjetCnv_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
5
#include "
TrigParticle/TrigEFBjet.h
"
6
#include "
TrigParticleTPCnv/TrigEFBjet_p1.h
"
7
#include "
TrigParticleTPCnv/TrigEFBjetCnv_p1.h
"
8
9
10
//* Persistent to transient *//
11
void
TrigEFBjetCnv_p1::persToTrans
(
const
TrigEFBjet_p1
*persObj,
TrigEFBjet
*transObj, MsgStream &log) {
12
13
log << MSG::DEBUG <<
"TrigEFBjetCnv_p1::persToTrans called "
<<
endmsg
;
14
15
*transObj =
TrigEFBjet
(persObj->
m_roiID
,
16
persObj->
m_eta
,
17
persObj->
m_phi
,
18
nullptr
,
// track
19
nullptr
,
// prmvertex
20
nullptr
,
// secvertex
21
persObj->
m_prmVtx
,
22
0,
// ptjet
23
persObj->
m_xcomb
,
24
persObj->
m_x2d
,
// xIP1d
25
persObj->
m_xd0
,
// xIP2d
26
persObj->
m_xz0
,
// xIP3d
27
-9.9,
// xChi2
28
persObj->
m_x3d
,
// xSv
29
persObj->
m_xmvtx
,
30
persObj->
m_xevtx
,
31
persObj->
m_xnvtx
);
32
transObj->
validate
(persObj->
m_valid
);
33
}
34
35
//* Transient to persistent *//
36
void
TrigEFBjetCnv_p1::transToPers
(
const
TrigEFBjet
*transObj,
TrigEFBjet_p1
*persObj, MsgStream &log) {
37
38
log << MSG::DEBUG <<
"TrigEFBjetCnv_p1::transToPers called "
<<
endmsg
;
39
40
persObj->
m_valid
= transObj->
isValid
();
41
persObj->
m_roiID
= transObj->
roiId
();
42
persObj->
m_eta
= transObj->
eta
();
43
persObj->
m_phi
= transObj->
phi
();
44
persObj->
m_prmVtx
= transObj->
prmVtx
();
45
persObj->
m_xcomb
= transObj->
xComb
();
46
persObj->
m_xmvtx
= transObj->
xMVtx
();
47
persObj->
m_xevtx
= transObj->
xEVtx
();
48
persObj->
m_xnvtx
= transObj->
xNVtx
();
49
50
persObj->
m_x2d
= transObj->
xIP1D
();
51
persObj->
m_xd0
= transObj->
xIP2D
();
52
persObj->
m_xz0
= transObj->
xIP3D
();
53
persObj->
m_x3d
= transObj->
xSV
();
54
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigEFBjetCnv_p1.h
TrigEFBjet.h
TrigEFBjet_p1.h
P4PtEtaPhiM::eta
virtual double eta() const
get eta data member
Definition
P4PtEtaPhiM.h:106
P4PtEtaPhiM::phi
virtual double phi() const
get phi data member
Definition
P4PtEtaPhiM.h:109
TrigEFBjetCnv_p1::transToPers
virtual void transToPers(const TrigEFBjet *transObj, TrigEFBjet_p1 *persObj, MsgStream &log)
Definition
TrigEFBjetCnv_p1.cxx:36
TrigEFBjetCnv_p1::persToTrans
virtual void persToTrans(const TrigEFBjet_p1 *persObj, TrigEFBjet *transObj, MsgStream &log)
Definition
TrigEFBjetCnv_p1.cxx:11
TrigEFBjet_p1
Definition
TrigEFBjet_p1.h:22
TrigEFBjet_p1::m_roiID
int m_roiID
Definition
TrigEFBjet_p1.h:34
TrigEFBjet_p1::m_xcomb
float m_xcomb
Definition
TrigEFBjet_p1.h:39
TrigEFBjet_p1::m_x3d
float m_x3d
Definition
TrigEFBjet_p1.h:43
TrigEFBjet_p1::m_xd0
float m_xd0
Definition
TrigEFBjet_p1.h:41
TrigEFBjet_p1::m_x2d
float m_x2d
Definition
TrigEFBjet_p1.h:40
TrigEFBjet_p1::m_xnvtx
float m_xnvtx
Definition
TrigEFBjet_p1.h:46
TrigEFBjet_p1::m_phi
float m_phi
Definition
TrigEFBjet_p1.h:36
TrigEFBjet_p1::m_prmVtx
float m_prmVtx
Definition
TrigEFBjet_p1.h:37
TrigEFBjet_p1::m_valid
bool m_valid
Definition
TrigEFBjet_p1.h:32
TrigEFBjet_p1::m_xz0
float m_xz0
Definition
TrigEFBjet_p1.h:42
TrigEFBjet_p1::m_xevtx
float m_xevtx
Definition
TrigEFBjet_p1.h:45
TrigEFBjet_p1::m_eta
float m_eta
Definition
TrigEFBjet_p1.h:35
TrigEFBjet_p1::m_xmvtx
float m_xmvtx
Definition
TrigEFBjet_p1.h:44
TrigEFBjet
Class representing a b-jet candidate created at EF.
Definition
TrigEFBjet.h:38
TrigEFBjet::roiId
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
Definition
TrigEFBjet.cxx:66
TrigEFBjet::xIP3D
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
Definition
TrigEFBjet.cxx:77
TrigEFBjet::xSV
float xSV() const
To retrieve likelihood weight based on secondary vertex.
Definition
TrigEFBjet.cxx:79
TrigEFBjet::validate
void validate(bool v)
To validate TrigEFBjet object.
Definition
TrigEFBjet.cxx:62
TrigEFBjet::xNVtx
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
Definition
TrigEFBjet.cxx:82
TrigEFBjet::xMVtx
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
Definition
TrigEFBjet.cxx:80
TrigEFBjet::xIP1D
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
Definition
TrigEFBjet.cxx:75
TrigEFBjet::prmVtx
float prmVtx() const
To retrieve reconstructed z of primary vertex.
Definition
TrigEFBjet.cxx:68
TrigEFBjet::xIP2D
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
Definition
TrigEFBjet.cxx:76
TrigEFBjet::xComb
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
Definition
TrigEFBjet.cxx:74
TrigEFBjet::xEVtx
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
Definition
TrigEFBjet.cxx:81
TrigEFBjet::isValid
bool isValid() const
To know if TrigEFBjet object is valid.
Definition
TrigEFBjet.cxx:64
Generated on
for ATLAS Offline Software by
1.17.0