ATLAS Offline Software
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 
12 
13 #include "GaudiKernel/MsgStream.h"
14 
15 namespace Analysis {
16 
18  SecVtxInfo_p1 *persObj,
19  MsgStream &msg)
20  {
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 
37  &transObj->secVertexPos(),
38  msg);
39 
40  }
41 
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);
56  transObj->setFitType ((SecVtxInfo::FitType) persObj->m_fitType);
57 
58  Trk::RecVertex secVtx;
60  persObj->m_secVtxPos,
61  &secVtx,
62  msg);
63  transObj->setSecVtx (secVtx, persObj->m_prob, TrackVec());
64  }
65 
66 }
Analysis::SecVtxInfo_p1::m_BaseTagInfo
TPObjRef m_BaseTagInfo
Base class info.
Definition: SecVtxInfo_p1.h:22
Analysis::SecVtxInfo_p1::m_dist
float m_dist
Definition: SecVtxInfo_p1.h:28
Analysis::SecVtxInfo::setMult
void setMult(int mult)
Definition: SecVtxInfo.h:186
Analysis::SecVtxInfoCnv_p1::transToPers
virtual void transToPers(const SecVtxInfo *transObj, SecVtxInfo_p1 *persObj, MsgStream &log)
Definition: SecVtxInfoCnv_p1.cxx:17
Analysis::SecVtxInfo::setNumberOfG2TrackVertices
void setNumberOfG2TrackVertices(int NSVPair)
Definition: SecVtxInfo.h:210
Analysis::SecVtxInfo::setMass
void setMass(double mass)
Definition: SecVtxInfo.h:190
Analysis::SecVtxInfo::setEnergyFraction
void setEnergyFraction(double energyFraction)
Definition: SecVtxInfo.h:194
Analysis::SecVtxInfo_p1::m_NGood2TrackVertices
int m_NGood2TrackVertices
Definition: SecVtxInfo_p1.h:34
Analysis::SecVtxInfo_p1::m_mass
float m_mass
Definition: SecVtxInfo_p1.h:31
Analysis::SecVtxInfo
The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet.
Definition: SecVtxInfo.h:60
Analysis::SecVtxInfo::mass
double mass() const
The invariant mass of the tracks fitted to the vertex.
Definition: SecVtxInfo.h:154
BaseTagInfoCnv_p1.h
Analysis::SecVtxInfoCnv_p1::persToTrans
virtual void persToTrans(const SecVtxInfo_p1 *persObj, SecVtxInfo *transObj, MsgStream &log)
Definition: SecVtxInfoCnv_p1.cxx:42
Analysis::SecVtxInfo::energyFraction
double energyFraction() const
The energy fraction: Evtx/Ejet of charges tracks.
Definition: SecVtxInfo.h:158
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Analysis::SecVtxInfo_p1::m_prob
float m_prob
Definition: SecVtxInfo_p1.h:30
Analysis::SecVtxInfo::secVertexPos
const Trk::RecVertex & secVertexPos() const
Returns the reconstructed secondary vertex.
Definition: SecVtxInfo.h:170
SecVtxInfo.h
Analysis::SecVtxInfoCnv_p1::m_baseTagCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
Definition: SecVtxInfoCnv_p1.h:42
Analysis::SecVtxInfo::setFitType
void setFitType(FitType type)
Set-methods for the private data members of the class.
Definition: SecVtxInfo.h:198
Analysis::SecVtxInfo_p1::m_fitType
int m_fitType
Translates to enum FitTYpe.
Definition: SecVtxInfo_p1.h:37
Analysis::TrackVec
std::vector< const Rec::TrackParticle * > TrackVec
Definition: SecVtxInfo.h:33
Analysis::SecVtxInfo::fitType
FitType fitType() const
Returns an enum to indicate the type of fit.
Definition: SecVtxInfo.h:166
Analysis::SecVtxInfo::distance
double distance() const
The distance between the primary and the secondary vertex.
Definition: SecVtxInfo.h:142
Analysis::SecVtxInfo::mult
int mult() const
The number of tracks fitted in the vertex.
Definition: SecVtxInfo.h:162
Analysis::SecVtxInfo::setDist
void setDist(double dist)
Definition: SecVtxInfo.h:202
Analysis::SecVtxInfo_p1::m_rphidist
float m_rphidist
Definition: SecVtxInfo_p1.h:29
ITPConverterFor< TRANS_BASE >::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::SecVtxInfoCnv_p1::m_recoVertexCnv
ITPConverterFor< Trk::Vertex > * m_recoVertexCnv
Definition: SecVtxInfoCnv_p1.h:43
Analysis::SecVtxInfo::setRPhiDist
void setRPhiDist(double dist)
Definition: SecVtxInfo.h:206
SecVtxInfoCnv_p1.h
Analysis::SecVtxInfo::FitType
FitType
Definition: SecVtxInfo.h:62
Analysis::SecVtxInfo::NumberOfG2TrackVertices
int NumberOfG2TrackVertices() const
Returns number of 2 track vertices.
Definition: SecVtxInfo.h:214
Analysis::SecVtxInfo::setSecVtx
void setSecVtx(const Trk::RecVertex &secVtx, double fitProb, const TrackVec &fittedTrks)
Definition: SecVtxInfo.h:174
Analysis::SecVtxInfo::probability
double probability() const
The fit probability of the fit.
Definition: SecVtxInfo.h:150
Analysis::SecVtxInfo_p1::m_mult
int m_mult
Definition: SecVtxInfo_p1.h:33
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Analysis::SecVtxInfo_p1::m_energyFraction
float m_energyFraction
Definition: SecVtxInfo_p1.h:32
Analysis::SecVtxInfo::rphidistance
double rphidistance() const
Definition: SecVtxInfo.h:146
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