ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigParticleTPCnv
src
TrigEFBphysCnv_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 "
TrigParticle/TrigEFBphys.h
"
6
#include "
TrigParticleTPCnv/TrigEFBphys_p2.h
"
7
#include "
TrigParticleTPCnv/TrigEFBphysCnv_p2.h
"
8
9
10
static
const
ElementLinkVectorCnv_p1<ElementLinkVector<Rec::TrackParticleContainer>
>
trackELVCnv
;
11
12
//-----------------------------------------------------------------------------
13
// Persistent to transient
14
//-----------------------------------------------------------------------------
15
void
TrigEFBphysCnv_p2::persToTrans
(
const
TrigEFBphys_p2
*persObj,
16
TrigEFBphys
*transObj,
17
MsgStream &log )
18
{
19
log << MSG::DEBUG <<
"TrigEFBphysCnv_p2::persToTrans called "
<<
endmsg
;
20
21
ElementLink<TrigEFBphysContainer>
secondaryDecay;
22
m_elementLinkEFBphysCnv
.persToTrans(&persObj->
m_secondaryDecay
, &secondaryDecay, log);
23
24
*transObj =
TrigEFBphys
(persObj->
m_roiID
,
25
persObj->
m_eta
,
26
persObj->
m_phi
,
27
static_cast<
TrigEFBphys::pType
>
(persObj->
m_particleType
),
28
persObj->
m_mass
,
29
secondaryDecay);
30
transObj->
fitmass
(persObj->
m_fitmass
) ;
31
transObj->
fitchi2
(persObj->
m_fitchi2
) ;
32
transObj->
fitndof
(persObj->
m_fitndof
) ;
33
transObj->
fitx
(persObj->
m_fitx
) ;
34
transObj->
fity
(persObj->
m_fity
) ;
35
transObj->
fitz
(persObj->
m_fitz
) ;
36
37
ElementLinkVector<Rec::TrackParticleContainer>
trackVector;
38
trackELVCnv
.persToTrans(&persObj->
m_trackVector
, &trackVector, log);
39
for
(
const
ElementLink<Rec::TrackParticleContainer>
el : trackVector)
40
transObj->
addTrack
(el);
41
}
42
43
//-----------------------------------------------------------------------------
44
// Transient to persistent
45
//-----------------------------------------------------------------------------
46
void
TrigEFBphysCnv_p2::transToPers
(
const
TrigEFBphys
*transObj,
47
TrigEFBphys_p2
*persObj,
48
MsgStream &log )
49
{
50
log << MSG::DEBUG <<
"TrigEFBphysCnv_p2::transToPers called "
<<
endmsg
;
51
52
persObj->
m_roiID
= transObj->
roiId
() ;
53
persObj->
m_eta
= transObj->
eta
() ;
54
persObj->
m_phi
= transObj->
phi
() ;
55
persObj->
m_mass
= transObj->
mass
() ;
56
persObj->
m_fitmass
= transObj->
fitmass
() ;
57
persObj->
m_fitchi2
= transObj->
fitchi2
() ;
58
persObj->
m_fitndof
= transObj->
fitndof
() ;
59
persObj->
m_fitx
= transObj->
fitx
() ;
60
persObj->
m_fity
= transObj->
fity
() ;
61
persObj->
m_fitz
= transObj->
fitz
() ;
62
63
persObj->
m_particleType
=
static_cast<
TrigEFBphys_p2::pType_p1
>
(transObj->
particleType
());
64
65
trackELVCnv
.transToPers(&transObj->
trackVector
(), &persObj->
m_trackVector
, log);
66
67
m_elementLinkEFBphysCnv
.transToPers(&transObj->
secondaryDecayLink
(), &persObj->
m_secondaryDecay
, log);
68
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
trackELVCnv
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > trackELVCnv
Definition
TrigEFBphysCnv_p2.cxx:10
TrigEFBphysCnv_p2.h
TrigEFBphys.h
TrigEFBphys_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
TrigEFBphysCnv_p2::transToPers
virtual void transToPers(const TrigEFBphys *transObj, TrigEFBphys_p2 *persObj, MsgStream &log)
Definition
TrigEFBphysCnv_p2.cxx:46
TrigEFBphysCnv_p2::m_elementLinkEFBphysCnv
ElementLinkCnv_p1< ElementLink< TrigEFBphysContainer > > m_elementLinkEFBphysCnv
Definition
TrigEFBphysCnv_p2.h:47
TrigEFBphysCnv_p2::persToTrans
virtual void persToTrans(const TrigEFBphys_p2 *persObj, TrigEFBphys *transObj, MsgStream &log)
Definition
TrigEFBphysCnv_p2.cxx:15
TrigEFBphys_p2
Definition
TrigEFBphys_p2.h:26
TrigEFBphys_p2::m_phi
float m_phi
Definition
TrigEFBphys_p2.h:41
TrigEFBphys_p2::m_fitz
float m_fitz
Definition
TrigEFBphys_p2.h:48
TrigEFBphys_p2::m_eta
float m_eta
Definition
TrigEFBphys_p2.h:40
TrigEFBphys_p2::m_fity
float m_fity
Definition
TrigEFBphys_p2.h:47
TrigEFBphys_p2::m_secondaryDecay
ElementLinkInt_p1 m_secondaryDecay
Definition
TrigEFBphys_p2.h:50
TrigEFBphys_p2::m_mass
float m_mass
Definition
TrigEFBphys_p2.h:42
TrigEFBphys_p2::m_fitx
float m_fitx
Definition
TrigEFBphys_p2.h:46
TrigEFBphys_p2::m_fitchi2
float m_fitchi2
Definition
TrigEFBphys_p2.h:44
TrigEFBphys_p2::m_roiID
int m_roiID
Definition
TrigEFBphys_p2.h:38
TrigEFBphys_p2::pType_p1
pType_p1
Definition
TrigEFBphys_p2.h:34
TrigEFBphys_p2::m_trackVector
ElementLinkIntVector_p1 m_trackVector
Definition
TrigEFBphys_p2.h:51
TrigEFBphys_p2::m_fitmass
float m_fitmass
Definition
TrigEFBphys_p2.h:43
TrigEFBphys_p2::m_fitndof
int m_fitndof
Definition
TrigEFBphys_p2.h:45
TrigEFBphys_p2::m_particleType
pType_p1 m_particleType
Definition
TrigEFBphys_p2.h:39
TrigEFBphys
Definition
TrigEFBphys.h:42
TrigEFBphys::phi
float phi() const
accessor method: phi
Definition
TrigEFBphys.h:69
TrigEFBphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition
TrigEFBphys.h:75
TrigEFBphys::secondaryDecayLink
const ElementLink< TrigEFBphysContainer > & secondaryDecayLink() const
Definition
TrigEFBphys.cxx:175
TrigEFBphys::addTrack
void addTrack(const ElementLink< Rec::TrackParticleContainer > &track)
set method: add track to particle
Definition
TrigEFBphys.cxx:56
TrigEFBphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition
TrigEFBphys.h:73
TrigEFBphys::pType
pType
enum for different particle types
Definition
TrigEFBphys.h:47
TrigEFBphys::fity
float fity() const
accessor method: y position of vertex
Definition
TrigEFBphys.h:81
TrigEFBphys::fitx
float fitx() const
accessor method: x position of vertex
Definition
TrigEFBphys.h:79
TrigEFBphys::particleType
pType particleType() const
accessor method: particle Type
Definition
TrigEFBphys.h:65
TrigEFBphys::mass
float mass() const
accessor method: mass
Definition
TrigEFBphys.h:71
TrigEFBphys::fitz
float fitz() const
accessor method: z position of vertex
Definition
TrigEFBphys.h:83
TrigEFBphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition
TrigEFBphys.h:63
TrigEFBphys::eta
float eta() const
accessor method: eta
Definition
TrigEFBphys.h:67
TrigEFBphys::trackVector
const ElementLinkVector< Rec::TrackParticleContainer > & trackVector() const
accessor method:vector of tracks used to make particle
Definition
TrigEFBphys.h:89
TrigEFBphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition
TrigEFBphys.h:77
Generated on
for ATLAS Offline Software by
1.17.0