ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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();
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}
virtual void persToTrans(const SecVtxInfo_p1 *persObj, SecVtxInfo *transObj, MsgStream &log)
ITPConverterFor< Trk::Vertex > * m_recoVertexCnv
BaseTagInfoCnv_p1 * m_baseTagCnv
virtual void transToPers(const SecVtxInfo *transObj, SecVtxInfo_p1 *persObj, MsgStream &log)
TPObjRef m_secVtxPos
Translates to a Trk::RecVertex.
TPObjRef m_BaseTagInfo
Base class info.
int m_fitType
Translates to enum FitTYpe.
The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet.
Definition SecVtxInfo.h:60
double rphidistance() const
Definition SecVtxInfo.h:146
double mass() const
The invariant mass of the tracks fitted to the vertex.
Definition SecVtxInfo.h:154
double energyFraction() const
The energy fraction: Evtx/Ejet of charges tracks.
Definition SecVtxInfo.h:158
void setNumberOfG2TrackVertices(int NSVPair)
Definition SecVtxInfo.h:210
void setSecVtx(const Trk::RecVertex &secVtx, double fitProb, const TrackVec &fittedTrks)
Definition SecVtxInfo.h:174
void setRPhiDist(double dist)
Definition SecVtxInfo.h:206
void setMass(double mass)
Definition SecVtxInfo.h:190
double distance() const
The distance between the primary and the secondary vertex.
Definition SecVtxInfo.h:142
FitType fitType() const
Returns an enum to indicate the type of fit.
Definition SecVtxInfo.h:166
void setEnergyFraction(double energyFraction)
Definition SecVtxInfo.h:194
double probability() const
The fit probability of the fit.
Definition SecVtxInfo.h:150
void setDist(double dist)
Definition SecVtxInfo.h:202
int NumberOfG2TrackVertices() const
Returns number of 2 track vertices.
Definition SecVtxInfo.h:214
void setMult(int mult)
Definition SecVtxInfo.h:186
const Trk::RecVertex & secVertexPos() const
Returns the reconstructed secondary vertex.
Definition SecVtxInfo.h:170
void setFitType(FitType type)
Set-methods for the private data members of the class.
Definition SecVtxInfo.h:198
int mult() const
The number of tracks fitted in the vertex.
Definition SecVtxInfo.h:162
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Trk::RecVertex inherits from Trk::Vertex.
Definition RecVertex.h:44
The namespace of all packages in PhysicsAnalysis/JetTagging.
std::vector< const Rec::TrackParticle * > TrackVec
Definition SecVtxInfo.h:33
MsgStream & msg
Definition testRead.cxx:32