ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagInfoTPCnv
src
SecVtxInfoCnv_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
8
9
#include "
JetTagInfo/SecVtxInfo.h
"
10
#include "
JetTagInfoTPCnv/SecVtxInfoCnv_p1.h
"
11
#include "
JetTagInfoTPCnv/BaseTagInfoCnv_p1.h
"
12
13
#include "GaudiKernel/MsgStream.h"
14
15
namespace
Analysis
{
16
17
void
SecVtxInfoCnv_p1::transToPers
(
const
SecVtxInfo
*transObj,
18
SecVtxInfo_p1
*persObj,
19
MsgStream &
msg
)
20
{
22
persObj->
m_BaseTagInfo
=
baseToPersistent
(&
m_baseTagCnv
,
23
transObj,
24
msg
);
25
27
persObj->
m_dist
= transObj->
distance
();
28
persObj->
m_rphidist
= transObj->
rphidistance
();
29
persObj->
m_prob
= transObj->
probability
();
30
persObj->
m_mass
= transObj->
mass
();
31
persObj->
m_energyFraction
= transObj->
energyFraction
();
32
persObj->
m_mult
= transObj->
mult
();
33
persObj->
m_NGood2TrackVertices
= transObj->
NumberOfG2TrackVertices
();
34
persObj->
m_fitType
= transObj->
fitType
();
35
36
persObj->
m_secVtxPos
=
toPersistent
(&
m_recoVertexCnv
,
37
&transObj->
secVertexPos
(),
38
msg
);
39
40
}
41
42
void
SecVtxInfoCnv_p1::persToTrans
(
const
SecVtxInfo_p1
*persObj,
43
SecVtxInfo
*transObj,
44
MsgStream &
msg
)
45
{
47
fillTransFromPStore
(&
m_baseTagCnv
, persObj->
m_BaseTagInfo
, transObj,
msg
);
48
50
transObj->
setDist
(persObj->
m_dist
);
51
transObj->
setRPhiDist
(persObj->
m_rphidist
);
52
transObj->
setMass
(persObj->
m_mass
);
53
transObj->
setEnergyFraction
(persObj->
m_energyFraction
);
54
transObj->
setMult
(persObj->
m_mult
);
55
transObj->
setNumberOfG2TrackVertices
(persObj->
m_NGood2TrackVertices
);
56
transObj->
setFitType
((
SecVtxInfo::FitType
) persObj->
m_fitType
);
57
58
Trk::RecVertex
secVtx;
59
fillTransFromPStore
(&
m_recoVertexCnv
,
60
persObj->
m_secVtxPos
,
61
&secVtx,
62
msg
);
63
transObj->
setSecVtx
(secVtx, persObj->
m_prob
,
TrackVec
());
64
}
65
66
}
BaseTagInfoCnv_p1.h
SecVtxInfoCnv_p1.h
SecVtxInfo.h
Analysis::SecVtxInfoCnv_p1::persToTrans
virtual void persToTrans(const SecVtxInfo_p1 *persObj, SecVtxInfo *transObj, MsgStream &log)
Definition
SecVtxInfoCnv_p1.cxx:42
Analysis::SecVtxInfoCnv_p1::m_recoVertexCnv
ITPConverterFor< Trk::Vertex > * m_recoVertexCnv
Definition
SecVtxInfoCnv_p1.h:43
Analysis::SecVtxInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition
SecVtxInfoCnv_p1.h:42
Analysis::SecVtxInfoCnv_p1::transToPers
virtual void transToPers(const SecVtxInfo *transObj, SecVtxInfo_p1 *persObj, MsgStream &log)
Definition
SecVtxInfoCnv_p1.cxx:17
Analysis::SecVtxInfo_p1
Definition
SecVtxInfo_p1.h:17
Analysis::SecVtxInfo_p1::m_secVtxPos
TPObjRef m_secVtxPos
Translates to a Trk::RecVertex.
Definition
SecVtxInfo_p1.h:40
Analysis::SecVtxInfo_p1::m_NGood2TrackVertices
int m_NGood2TrackVertices
Definition
SecVtxInfo_p1.h:34
Analysis::SecVtxInfo_p1::m_mult
int m_mult
Definition
SecVtxInfo_p1.h:33
Analysis::SecVtxInfo_p1::m_energyFraction
float m_energyFraction
Definition
SecVtxInfo_p1.h:32
Analysis::SecVtxInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Base class info.
Definition
SecVtxInfo_p1.h:22
Analysis::SecVtxInfo_p1::m_mass
float m_mass
Definition
SecVtxInfo_p1.h:31
Analysis::SecVtxInfo_p1::m_prob
float m_prob
Definition
SecVtxInfo_p1.h:30
Analysis::SecVtxInfo_p1::m_fitType
int m_fitType
Translates to enum FitTYpe.
Definition
SecVtxInfo_p1.h:37
Analysis::SecVtxInfo_p1::m_rphidist
float m_rphidist
Definition
SecVtxInfo_p1.h:29
Analysis::SecVtxInfo_p1::m_dist
float m_dist
Definition
SecVtxInfo_p1.h:28
Analysis::SecVtxInfo
The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet.
Definition
SecVtxInfo.h:60
Analysis::SecVtxInfo::rphidistance
double rphidistance() const
Definition
SecVtxInfo.h:146
Analysis::SecVtxInfo::mass
double mass() const
The invariant mass of the tracks fitted to the vertex.
Definition
SecVtxInfo.h:154
Analysis::SecVtxInfo::energyFraction
double energyFraction() const
The energy fraction: Evtx/Ejet of charges tracks.
Definition
SecVtxInfo.h:158
Analysis::SecVtxInfo::setNumberOfG2TrackVertices
void setNumberOfG2TrackVertices(int NSVPair)
Definition
SecVtxInfo.h:210
Analysis::SecVtxInfo::setSecVtx
void setSecVtx(const Trk::RecVertex &secVtx, double fitProb, const TrackVec &fittedTrks)
Definition
SecVtxInfo.h:174
Analysis::SecVtxInfo::setRPhiDist
void setRPhiDist(double dist)
Definition
SecVtxInfo.h:206
Analysis::SecVtxInfo::setMass
void setMass(double mass)
Definition
SecVtxInfo.h:190
Analysis::SecVtxInfo::distance
double distance() const
The distance between the primary and the secondary vertex.
Definition
SecVtxInfo.h:142
Analysis::SecVtxInfo::fitType
FitType fitType() const
Returns an enum to indicate the type of fit.
Definition
SecVtxInfo.h:166
Analysis::SecVtxInfo::FitType
FitType
Definition
SecVtxInfo.h:62
Analysis::SecVtxInfo::setEnergyFraction
void setEnergyFraction(double energyFraction)
Definition
SecVtxInfo.h:194
Analysis::SecVtxInfo::probability
double probability() const
The fit probability of the fit.
Definition
SecVtxInfo.h:150
Analysis::SecVtxInfo::setDist
void setDist(double dist)
Definition
SecVtxInfo.h:202
Analysis::SecVtxInfo::NumberOfG2TrackVertices
int NumberOfG2TrackVertices() const
Returns number of 2 track vertices.
Definition
SecVtxInfo.h:214
Analysis::SecVtxInfo::setMult
void setMult(int mult)
Definition
SecVtxInfo.h:186
Analysis::SecVtxInfo::secVertexPos
const Trk::RecVertex & secVertexPos() const
Returns the reconstructed secondary vertex.
Definition
SecVtxInfo.h:170
Analysis::SecVtxInfo::setFitType
void setFitType(FitType type)
Set-methods for the private data members of the class.
Definition
SecVtxInfo.h:198
Analysis::SecVtxInfo::mult
int mult() const
The number of tracks fitted in the vertex.
Definition
SecVtxInfo.h:162
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition
TPConverter.h:97
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Definition
TPConverter.h:145
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Definition
TPConverter.h:119
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition
RecVertex.h:44
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition
IConstituent.h:25
Analysis::TrackVec
std::vector< const Rec::TrackParticle * > TrackVec
Definition
SecVtxInfo.h:33
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0