ATLAS Offline Software
TBTrackCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "TBEvent/TBTrack.h"
7 #include "Identifier/Identifier.h"
8 #include "TBTPCnv/TBTrack_p1.h"
9 
10 
11 
12 void
14  TBTrack* trans, MsgStream &/*log*/) const
15 {
16  *trans = TBTrack (pers->m_residualu,
17  pers->m_residualv);
18 
19  trans->setChi2 (pers->m_chi2);
20  trans->setChi2_u (pers->m_chi2u);
21  trans->setChi2_v (pers->m_chi2v);
22  trans->setAngle (pers->m_angle);
23  trans->setUslope (pers->m_uslope);
24  trans->setVslope (pers->m_vslope);
25  trans->setUintercept (pers->m_uintercept);
26  trans->setVintercept (pers->m_vintercept);
27  trans->setCryoHitu (pers->m_cryou);
28  trans->setCryoHitv (pers->m_cryov);
29  trans->setCryoHitw (pers->m_cryow);
30 }
31 
32 
33 void
35  TBTrack_p1* pers, MsgStream &/*log*/) const
36 {
37  pers->m_hitNumberU = trans->getHitNumberU();
38  pers->m_hitNumberV = trans->getHitNumberV();
39 
40  pers->m_residualu = trans->getResidualu();
41  pers->m_residualv = trans->getResidualv();
42 
43  pers->m_chi2 = trans->getChi2_global();
44  pers->m_chi2u = trans->getChi2_u();
45  pers->m_chi2v = trans->getChi2_v();
46  pers->m_angle = trans->getAngle();
47  pers->m_uslope = trans->getUslope();
48  pers->m_vslope = trans->getVslope();
49  pers->m_uintercept = trans->getUintercept();
50  pers->m_vintercept = trans->getVintercept();
51  pers->m_cryou = trans->getCryoHitu();
52  pers->m_cryov = trans->getCryoHitv();
53  pers->m_cryow = trans->getCryoHitw();
54 
55 }
56 
TBTrackCnv_p1::transToPers
virtual void transToPers(const TBTrack *trans, TBTrack_p1 *pers, MsgStream &log) const override
Definition: TBTrackCnv_p1.cxx:34
TBTrackCnv_p1.h
TBTrack::setChi2_v
void setChi2_v(double chi2v)
Definition: TBTrack.h:74
TBTrack::getUslope
double getUslope() const
Definition: TBTrack.h:52
TBTrack::setVslope
void setVslope(double vslope)
Definition: TBTrack.h:77
TBTrack_p1::m_cryov
double m_cryov
Definition: TBTrack_p1.h:32
TBTrack
Definition: TBTrack.h:20
TBTrack::getHitNumberU
int getHitNumberU() const
Definition: TBTrack.h:45
TBTrack_p1.h
TBTrack_p1::m_residualv
std::vector< double > m_residualv
Definition: TBTrack_p1.h:23
TBTrack::getUintercept
double getUintercept() const
Definition: TBTrack.h:54
TBTrack::getChi2_global
double getChi2_global() const
Definition: TBTrack.h:48
TBTrack::setVintercept
void setVintercept(double vintercept)
Definition: TBTrack.h:79
TBTrack::getCryoHitv
double getCryoHitv() const
Definition: TBTrack.h:67
TBTrack::setCryoHitv
void setCryoHitv(float cryov)
Definition: TBTrack.h:85
TBTrack::setCryoHitu
void setCryoHitu(float cryou)
Definition: TBTrack.h:84
TBTrack::setUslope
void setUslope(double uslope)
Definition: TBTrack.h:76
TBTrack::getHitNumberV
int getHitNumberV() const
Definition: TBTrack.h:46
TBTrack_p1::m_hitNumberV
int m_hitNumberV
Definition: TBTrack_p1.h:20
TBTrack_p1::m_uslope
double m_uslope
Definition: TBTrack_p1.h:28
TBTrack::getChi2_u
double getChi2_u() const
Definition: TBTrack.h:49
TBTrack::setUintercept
void setUintercept(double uintercept)
Definition: TBTrack.h:78
TBTrack_p1::m_cryow
double m_cryow
Definition: TBTrack_p1.h:32
TBTrack::getVslope
double getVslope() const
Definition: TBTrack.h:53
TBTrack::getCryoHitu
double getCryoHitu() const
Definition: TBTrack.h:66
TBTrack_p1::m_residualu
std::vector< double > m_residualu
Definition: TBTrack_p1.h:23
TBTrack_p1::m_angle
double m_angle
Definition: TBTrack_p1.h:27
TBTrack.h
TBTrack::getChi2_v
double getChi2_v() const
Definition: TBTrack.h:50
TBTrack::setCryoHitw
void setCryoHitw(float cryow)
Definition: TBTrack.h:86
TBTrack_p1::m_hitNumberU
int m_hitNumberU
Definition: TBTrack_p1.h:20
TBTrack::getAngle
double getAngle() const
Definition: TBTrack.h:51
TBTrack::getResidualv
double getResidualv(int ind) const
Definition: TBTrack.h:60
TBTrack_p1::m_vintercept
double m_vintercept
Definition: TBTrack_p1.h:29
TBTrack::getVintercept
double getVintercept() const
Definition: TBTrack.h:55
TBTrack::getCryoHitw
double getCryoHitw() const
Definition: TBTrack.h:68
TBTrack_p1::m_chi2u
double m_chi2u
Definition: TBTrack_p1.h:26
TBTrack::setAngle
void setAngle(double angle)
Definition: TBTrack.h:75
TBTrack::setChi2
void setChi2(double chi2)
Definition: TBTrack.h:72
TBTrack_p1::m_vslope
double m_vslope
Definition: TBTrack_p1.h:28
TBTrack::setChi2_u
void setChi2_u(double chi2u)
Definition: TBTrack.h:73
TBTrack_p1::m_uintercept
double m_uintercept
Definition: TBTrack_p1.h:29
TBTrack_p1
Definition: TBTrack_p1.h:15
TBTrack_p1::m_chi2
double m_chi2
Definition: TBTrack_p1.h:26
TBTrack_p1::m_chi2v
double m_chi2v
Definition: TBTrack_p1.h:26
TBTrack_p1::m_cryou
double m_cryou
Definition: TBTrack_p1.h:32
TBTrackCnv_p1::persToTrans
virtual void persToTrans(const TBTrack_p1 *pers, TBTrack *trans, MsgStream &log) const override
Definition: TBTrackCnv_p1.cxx:13
TBTrack::getResidualu
double getResidualu(int ind) const
Definition: TBTrack.h:57