ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigParticleTPCnv
src
TrigL2BjetCnv_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/TrigL2Bjet.h
"
6
#include "
TrigParticleTPCnv/TrigL2Bjet_p1.h
"
7
#include "
TrigParticleTPCnv/TrigL2BjetCnv_p1.h
"
8
9
10
//* Persistent to transient *//
11
void
TrigL2BjetCnv_p1::persToTrans
(
const
TrigL2Bjet_p1
*persObj,
TrigL2Bjet
*transObj, MsgStream &log) {
12
13
log << MSG::DEBUG <<
"TrigL2BjetCnv_p1::persToTrans called "
<<
endmsg
;
14
15
*transObj =
TrigL2Bjet
(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
TrigL2BjetCnv_p1::transToPers
(
const
TrigL2Bjet
*transObj,
TrigL2Bjet_p1
*persObj, MsgStream &log) {
37
38
log << MSG::DEBUG <<
"TrigL2BjetCnv_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
55
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigL2BjetCnv_p1.h
TrigL2Bjet.h
TrigL2Bjet_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
TrigL2BjetCnv_p1::persToTrans
virtual void persToTrans(const TrigL2Bjet_p1 *persObj, TrigL2Bjet *transObj, MsgStream &log)
Definition
TrigL2BjetCnv_p1.cxx:11
TrigL2BjetCnv_p1::transToPers
virtual void transToPers(const TrigL2Bjet *transObj, TrigL2Bjet_p1 *persObj, MsgStream &log)
Definition
TrigL2BjetCnv_p1.cxx:36
TrigL2Bjet_p1
Definition
TrigL2Bjet_p1.h:22
TrigL2Bjet_p1::m_xd0
float m_xd0
Definition
TrigL2Bjet_p1.h:41
TrigL2Bjet_p1::m_xz0
float m_xz0
Definition
TrigL2Bjet_p1.h:42
TrigL2Bjet_p1::m_prmVtx
float m_prmVtx
Definition
TrigL2Bjet_p1.h:37
TrigL2Bjet_p1::m_xevtx
float m_xevtx
Definition
TrigL2Bjet_p1.h:45
TrigL2Bjet_p1::m_valid
bool m_valid
Definition
TrigL2Bjet_p1.h:32
TrigL2Bjet_p1::m_phi
float m_phi
Definition
TrigL2Bjet_p1.h:36
TrigL2Bjet_p1::m_eta
float m_eta
Definition
TrigL2Bjet_p1.h:35
TrigL2Bjet_p1::m_x2d
float m_x2d
Definition
TrigL2Bjet_p1.h:40
TrigL2Bjet_p1::m_xcomb
float m_xcomb
Definition
TrigL2Bjet_p1.h:39
TrigL2Bjet_p1::m_xmvtx
float m_xmvtx
Definition
TrigL2Bjet_p1.h:44
TrigL2Bjet_p1::m_x3d
float m_x3d
Definition
TrigL2Bjet_p1.h:43
TrigL2Bjet_p1::m_roiID
int m_roiID
Definition
TrigL2Bjet_p1.h:34
TrigL2Bjet_p1::m_xnvtx
float m_xnvtx
Definition
TrigL2Bjet_p1.h:46
TrigL2Bjet
Class representing a b-jet candidate created at L2.
Definition
TrigL2Bjet.h:38
TrigL2Bjet::isValid
bool isValid() const
To know if TrigL2Bjet object is valid.
Definition
TrigL2Bjet.cxx:65
TrigL2Bjet::xEVtx
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
Definition
TrigL2Bjet.cxx:82
TrigL2Bjet::xComb
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
Definition
TrigL2Bjet.cxx:75
TrigL2Bjet::xIP1D
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
Definition
TrigL2Bjet.cxx:76
TrigL2Bjet::xNVtx
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
Definition
TrigL2Bjet.cxx:83
TrigL2Bjet::xSV
float xSV() const
To retrieve likelihood weight based on secondary vertex.
Definition
TrigL2Bjet.cxx:80
TrigL2Bjet::xIP2D
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
Definition
TrigL2Bjet.cxx:77
TrigL2Bjet::validate
void validate(bool v)
To validate TrigL2Bjet object.
Definition
TrigL2Bjet.cxx:63
TrigL2Bjet::xMVtx
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
Definition
TrigL2Bjet.cxx:81
TrigL2Bjet::prmVtx
float prmVtx() const
To retrieve reconstructed z of primary vertex.
Definition
TrigL2Bjet.cxx:69
TrigL2Bjet::roiId
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
Definition
TrigL2Bjet.cxx:67
TrigL2Bjet::xIP3D
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
Definition
TrigL2Bjet.cxx:78
Generated on
for ATLAS Offline Software by
1.17.0