ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigParticleTPCnv
src
TrigL2BphysCnv_p2.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigParticleTPCnv/TrigL2Bphys_p2.h
"
6
#include "
TrigParticle/TrigL2Bphys.h
"
7
#include "
TrigParticleTPCnv/TrigL2BphysCnv_p2.h
"
8
9
static
const
ElementLinkVectorCnv_p1<ElementLinkVector<TrigInDetTrackCollection>
>
trackELVCnv
;
10
11
//-----------------------------------------------------------------------------
12
// Persistent to transient
13
//-----------------------------------------------------------------------------
14
void
TrigL2BphysCnv_p2::persToTrans
(
const
TrigL2Bphys_p2
*persObj,
15
TrigL2Bphys
*transObj,
16
MsgStream &log )
17
{
18
log << MSG::DEBUG <<
"TrigL2BphysCnv_p2::persToTrans called "
<<
endmsg
;
19
20
21
ElementLink<TrigL2BphysContainer>
secondaryDecay;
22
m_elementLinkL2BphysCnv
.persToTrans(&persObj->
m_secondaryDecay
, &secondaryDecay, log);
23
24
*transObj =
TrigL2Bphys
(persObj->
m_roiID
,
25
persObj->
m_eta
,
26
persObj->
m_phi
,
27
static_cast<
TrigL2Bphys::pType
>
(persObj->
m_particleType
),
28
persObj->
m_mass
,
29
secondaryDecay);
30
31
transObj->
fitmass
(persObj->
m_fitmass
) ;
32
transObj->
fitchi2
(persObj->
m_fitchi2
) ;
33
transObj->
fitndof
(persObj->
m_fitndof
) ;
34
transObj->
fitx
(persObj->
m_fitx
) ;
35
transObj->
fity
(persObj->
m_fity
) ;
36
transObj->
fitz
(persObj->
m_fitz
) ;
37
38
ElementLinkVector<TrigInDetTrackCollection>
trackVector;
39
trackELVCnv
.persToTrans(&persObj->
m_trackVector
, &trackVector, log);
40
for
(
const
ElementLink<TrigInDetTrackCollection>
el : trackVector)
41
transObj->
addTrack
(el);
42
}
43
44
//-----------------------------------------------------------------------------
45
// Transient to persistent
46
//-----------------------------------------------------------------------------
47
void
TrigL2BphysCnv_p2::transToPers
(
const
TrigL2Bphys
*transObj,
48
TrigL2Bphys_p2
*persObj,
49
MsgStream &log )
50
{
51
log << MSG::DEBUG <<
"TrigL2BphysCnv_p2::transToPers called "
<<
endmsg
;
52
53
persObj->
m_roiID
= transObj->
roiId
() ;
54
persObj->
m_eta
= transObj->
eta
() ;
55
persObj->
m_phi
= transObj->
phi
() ;
56
persObj->
m_mass
= transObj->
mass
() ;
57
persObj->
m_fitmass
= transObj->
fitmass
() ;
58
persObj->
m_fitchi2
= transObj->
fitchi2
() ;
59
persObj->
m_fitndof
= transObj->
fitndof
() ;
60
persObj->
m_fitx
= transObj->
fitx
() ;
61
persObj->
m_fity
= transObj->
fity
() ;
62
persObj->
m_fitz
= transObj->
fitz
() ;
63
64
persObj->
m_particleType
=
static_cast<
TrigL2Bphys_p2::pType_p1
>
(transObj->
particleType
());
65
66
67
68
trackELVCnv
.transToPers(&transObj->
trackVector
(), &persObj->
m_trackVector
, log);
69
70
m_elementLinkL2BphysCnv
.transToPers(&transObj->
secondaryDecayLink
(), &persObj->
m_secondaryDecay
, log);
71
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
trackELVCnv
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > trackELVCnv
Definition
TrigEFBphysCnv_p2.cxx:10
TrigL2BphysCnv_p2.h
TrigL2Bphys.h
TrigL2Bphys_p2.h
ElementLinkVectorCnv_p1
Definition
ElementLinkVectorCnv_p1.h:28
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition
AthLinks/ElementLinkVector.h:64
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
TrigL2BphysCnv_p2::m_elementLinkL2BphysCnv
ElementLinkCnv_p1< ElementLink< TrigL2BphysContainer > > m_elementLinkL2BphysCnv
Definition
TrigL2BphysCnv_p2.h:57
TrigL2BphysCnv_p2::persToTrans
virtual void persToTrans(const TrigL2Bphys_p2 *persObj, TrigL2Bphys *transObj, MsgStream &log)
Definition
TrigL2BphysCnv_p2.cxx:14
TrigL2BphysCnv_p2::transToPers
virtual void transToPers(const TrigL2Bphys *transObj, TrigL2Bphys_p2 *persObj, MsgStream &log)
Definition
TrigL2BphysCnv_p2.cxx:47
TrigL2Bphys_p2
Definition
TrigL2Bphys_p2.h:26
TrigL2Bphys_p2::m_secondaryDecay
ElementLinkInt_p1 m_secondaryDecay
Definition
TrigL2Bphys_p2.h:52
TrigL2Bphys_p2::m_phi
float m_phi
Definition
TrigL2Bphys_p2.h:41
TrigL2Bphys_p2::m_eta
float m_eta
Definition
TrigL2Bphys_p2.h:40
TrigL2Bphys_p2::m_fitmass
float m_fitmass
Definition
TrigL2Bphys_p2.h:43
TrigL2Bphys_p2::m_roiID
int m_roiID
Definition
TrigL2Bphys_p2.h:38
TrigL2Bphys_p2::m_mass
float m_mass
Definition
TrigL2Bphys_p2.h:42
TrigL2Bphys_p2::m_fity
float m_fity
Definition
TrigL2Bphys_p2.h:47
TrigL2Bphys_p2::m_particleType
pType_p1 m_particleType
Definition
TrigL2Bphys_p2.h:39
TrigL2Bphys_p2::m_trackVector
ElementLinkIntVector_p1 m_trackVector
Definition
TrigL2Bphys_p2.h:51
TrigL2Bphys_p2::m_fitndof
int m_fitndof
Definition
TrigL2Bphys_p2.h:45
TrigL2Bphys_p2::pType_p1
pType_p1
Definition
TrigL2Bphys_p2.h:34
TrigL2Bphys_p2::m_fitz
float m_fitz
Definition
TrigL2Bphys_p2.h:48
TrigL2Bphys_p2::m_fitx
float m_fitx
Definition
TrigL2Bphys_p2.h:46
TrigL2Bphys_p2::m_fitchi2
float m_fitchi2
Definition
TrigL2Bphys_p2.h:44
TrigL2Bphys
Definition
TrigL2Bphys.h:43
TrigL2Bphys::fity
float fity() const
accessor method: y position of vertex
Definition
TrigL2Bphys.h:84
TrigL2Bphys::secondaryDecayLink
const ElementLink< TrigL2BphysContainer > & secondaryDecayLink() const
Definition
TrigL2Bphys.cxx:68
TrigL2Bphys::trackVector
const ElementLinkVector< TrigInDetTrackCollection > & trackVector() const
accessor method:vector of tracks used to make particle
Definition
TrigL2Bphys.h:93
TrigL2Bphys::fitz
float fitz() const
accessor method: z position of vertex
Definition
TrigL2Bphys.h:86
TrigL2Bphys::addTrack
void addTrack(const ElementLink< TrigInDetTrackCollection > &track)
set method: add track to particle
Definition
TrigL2Bphys.cxx:58
TrigL2Bphys::particleType
pType particleType() const
accessor method: particle Type
Definition
TrigL2Bphys.h:68
TrigL2Bphys::fitx
float fitx() const
accessor method: x position of vertex
Definition
TrigL2Bphys.h:82
TrigL2Bphys::mass
float mass() const
accessor method: mass
Definition
TrigL2Bphys.h:74
TrigL2Bphys::phi
float phi() const
accessor method: phi
Definition
TrigL2Bphys.h:72
TrigL2Bphys::eta
float eta() const
accessor method: eta
Definition
TrigL2Bphys.h:70
TrigL2Bphys::pType
pType
enum for different particle types
Definition
TrigL2Bphys.h:47
TrigL2Bphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition
TrigL2Bphys.h:66
TrigL2Bphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition
TrigL2Bphys.h:80
TrigL2Bphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition
TrigL2Bphys.h:78
TrigL2Bphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition
TrigL2Bphys.h:76
Generated on
for ATLAS Offline Software by
1.17.0