|
ATLAS Offline Software
|
Go to the documentation of this file.
23 auto trkSummary = std::unique_ptr<Trk::TrackSummary>
27 std::vector<const Trk::TrackParameters*>
parameters;
37 auto fq = std::make_unique<Trk::FitQuality>
46 std::bitset<Trk::TrackInfo::NumberOfTrackRecoInfo> patternRecognition(persObj->
bitsAndPieces[4]);
49 unsigned int mask = (1<<(
i-32));
59 const std::vector<const Trk::TrackParameters*>& parms =
61 if (!parms.empty() && parms.back()) {
67 fmom.
setE (std::sqrt ((
long double)
mom.mag2() + (
long double)
mpi*
mpi));
73 std::move(trkSummary),
99 if (!
m_parameterCnv) std::cout<<
"TrackParticleCnv_p3::transToPers WARNING! No m_parameterCnv"<<std::endl;
118 persObj->
bitsAndPieces[2] =
static_cast<unsigned int>(
info.particleHypothesis());
120 if (
info.patternRecognition().size()<32) {
125 unsigned int size=
info.patternRecognition().size();
@ NumberOfTrackRecoInfo
Maximum number of enums.
const ShapeFitter * fitter
TrackParticleOrigin particleOriginType() const
Get the particle origin type.
ITPConverter * converterForType(const std::type_info &info) const
Find and return a TP converter for a given C++ type info.
Contains information about the 'fitter' of this track.
const ElementLink< VxContainer > & reconstructedVertexLink() const
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
float m_fitQuality_m_chiSquared
void setAthenaBarCode(AthenaBarCode_t)
New convertor which handles all track parameters in one go - i.e.
const TrackSummary * trackSummary() const
accessor function for TrackSummary.
unsigned int bitsAndPieces[6]
bitsAndPieces contains the following: unsigned int m_trackParticleOrigin; Data properties related to ...
TrackSummaryCnv_p2 * m_trackSummaryCnv
AthenaBarCode_t getAthenaBarCode() const
void setAthenaBarCode(AthenaBarCode_t id)
@ pz
global momentum (cartesian)
virtual TopLevelTPCnvBase * topConverter()
return the top-level converter for this elemental TP converter
virtual void transToPers(const AthenaBarCodeImpl *transObj, AthenaBarCode_p1 *persObj, MsgStream &) const override
float m_fitQuality_m_numberDoF
std::vector< TPObjRef > m_trackParameters
virtual void persToTrans(const AthenaBarCode_p1 *persObj, AthenaBarCodeImpl *transObj, MsgStream &) const override
ElementLinkCnv_p3< ElementLink< TrackCollection > > m_elementLinkTrackCollectionConverter
TrackParticle_v1 TrackParticle
Reference the current persistent version:
virtual void setE(double theE)
set energy data member
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrackFitter
enums to identify who created this track and what propertis does it have.
TrackParametersCnv_p2 * m_parameterCnv
virtual void setPx(double thePx)
set Px data member
const ElementLink< TrackCollection > * trackElementLink() const
Return the ElementLink to the Track.
virtual void persToTrans(const Rec ::TrackParticle_p3 *persObj, Rec ::TrackParticle *transObj, MsgStream &log)
virtual void transToPers(const Rec ::TrackParticle *transObj, Rec ::TrackParticle_p3 *persObj, MsgStream &log)
const FitQuality * fitQuality() const
accessor function for FitQuality.
ElementLinkInt_p3 m_elVxCandidate
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...
constexpr double mass[PARTICLEHYPOTHESES]
the array of masses
ElementLinkCnv_p3< ElementLink< VxContainer > > m_elementLinkVxContainerConverter
const std::vector< const TrackParameters * > & trackParameters() const
Returns the track parameters.
AthenaBarCode_t getAthenaBarCode() const
Eigen::Matrix< double, 3, 1 > Vector3D
virtual void setPz(double thePz)
set Pz data member
int mpi(const GenEvent &e)
double chiSquared() const
returns the of the overall track fit
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
virtual void setPy(double thePy)
set Py data member
ElementLinkInt_p3 m_originalTrack
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
const TrackInfo & info() const
returns the info of the track.
AthenaBarCodeCnv_p1 m_AthenaBarCodeCnv