CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
DstConvert.h File Reference

Go to the source code of this file.

Functions

void cvtMdcDst2MdcRec (TRecMdcTrack *dist, const TMdcTrack *src)
 
void cvtTofDst2TofRec (TRecTofTrack *dist, const TTofTrack *src)
 
void cvtEmcDst2EmcRec (TRecEmcShower *dist, const TEmcTrack *src)
 
void cvtMucDst2MucRec (TRecMucTrack *dist, const TMucTrack *src)
 

Function Documentation

◆ cvtEmcDst2EmcRec()

void cvtEmcDst2EmcRec ( TRecEmcShower * dist,
const TEmcTrack * src )

Definition at line 70 of file DstConvert.h.

71{
72 dist->setTrackId(src->trackId());
73 dist->setNumHits(src->numHits());
74 dist->setStatus(src->status());
75 dist->setCellId(src->cellId());
76 dist->setModule(src->module());
77 dist->setX(src->x());
78 dist->setY(src->y());
79 dist->setZ(src->z());
80 dist->setTheta(src->theta());
81 dist->setPhi(src->phi());
82 dist->setDtheta(src->dtheta());
83 dist->setDphi(src->dphi());
84 dist->setEnergy(src->energy());
85 dist->setDE(src->dE());
86 dist->setESeed(src->eSeed());
87 dist->setE3x3(src->e3x3());
88 dist->setE5x5(src->e5x5());
89 dist->setTime(src->time());
90 dist->setSecondMoment(src->secondMoment());
91 dist->setLatMoment(src->latMoment());
92 dist->setA20Moment(src->a20Moment());
93 dist->setA42Moment(src->a42Moment());
94
95 Double_t tmpErr[6];
96 for (int i = 0; i < 6; ++i) tmpErr[i] = src->err(i);
97 dist->setErr(tmpErr);
98}
Double_t time() const
Definition TEmcTrack.h:42
Double_t a42Moment() const
Definition TEmcTrack.h:46
Int_t trackId() const
Definition TEmcTrack.h:19
Double_t eSeed() const
Definition TEmcTrack.h:39
Double_t err(Int_t i) const
Definition TEmcTrack.h:47
Int_t status() const
Definition TEmcTrack.h:21
Double_t energy() const
Definition TEmcTrack.h:37
Double_t y() const
Definition TEmcTrack.h:25
Double_t dtheta() const
Definition TEmcTrack.h:35
Double_t e3x3() const
Definition TEmcTrack.h:40
Double_t theta() const
Definition TEmcTrack.h:27
Double_t secondMoment() const
Definition TEmcTrack.h:43
Int_t module() const
Definition TEmcTrack.h:23
Double_t phi() const
Definition TEmcTrack.h:30
Double_t x() const
Definition TEmcTrack.h:24
Double_t a20Moment() const
Definition TEmcTrack.h:45
Double_t z() const
Definition TEmcTrack.h:26
Double_t dE() const
Definition TEmcTrack.h:38
Int_t cellId() const
Definition TEmcTrack.h:22
Int_t numHits() const
Definition TEmcTrack.h:20
Double_t e5x5() const
Definition TEmcTrack.h:41
Double_t dphi() const
Definition TEmcTrack.h:36
Double_t latMoment() const
Definition TEmcTrack.h:44
void setDphi(const Double_t dpi)
void setTime(const Double_t time)
void setY(const Double_t y)
void setX(const Double_t x)
void setDtheta(const Double_t dt)
void setA20Moment(const Double_t a20Moment)
void setStatus(const Int_t st)
void setModule(const Int_t mod)
void setTheta(const Double_t theta)
void setEnergy(const Double_t e)
void setSecondMoment(const Double_t secondMoment)
void setE3x3(const Double_t e3x3)
void setZ(const Double_t z)
void setE5x5(const Double_t e5x5)
void setCellId(const Int_t id)
void setESeed(const Double_t eSeed)
void setNumHits(const Int_t hit)
void setErr(const Double_t err[6])
void setDE(const Double_t de)
void setA42Moment(const Double_t a42Moment)
void setPhi(const Double_t pi)
void setTrackId(const Int_t trackId)
void setLatMoment(const Double_t latMoment)

Referenced by BesClient::GetEvent().

◆ cvtMdcDst2MdcRec()

void cvtMdcDst2MdcRec ( TRecMdcTrack * dist,
const TMdcTrack * src )

Definition at line 19 of file DstConvert.h.

20{
21 dist->setTrackId(src->trackId());
22 dist->setStat(src->stat());
23 dist->setChi2(src->chi2());
24 dist->setNdof(src->ndof());
25 dist->setNster(src->nster());
26 dist->setNlayer(src->nlayer());
27
28 Double_t tmpHelix[5];
29 for (int i = 0; i < 5; ++i) tmpHelix[i] = src->helix(i);
30 dist->setHelix(tmpHelix);
31 Double_t tmpErr[15];
32 for (int i = 0; i < 15; ++i) tmpErr[i] = src->err(i);
33 dist->setErr(tmpErr);
34}
const Double_t helix(Int_t i) const
Definition TMdcTrack.h:14
const Double_t chi2() const
Definition TMdcTrack.h:16
const Int_t stat() const
Definition TMdcTrack.h:15
const Int_t nster() const
Definition TMdcTrack.h:19
const Double_t err(Int_t i) const
Definition TMdcTrack.h:18
const Int_t trackId() const
Definition TMdcTrack.h:13
const Int_t ndof() const
Definition TMdcTrack.h:17
const Int_t nlayer() const
Definition TMdcTrack.h:20
void setStat(const Int_t stat)
void setNdof(const Int_t ndof)
void setErr(const Double_t er[15])
void setHelix(const Double_t helix[5])
void setNster(const Int_t ns)
void setNlayer(const Int_t nlayer)
void setChi2(const Double_t chi)
void setTrackId(const Int_t trackId)

Referenced by BesClient::GetEvent().

◆ cvtMucDst2MucRec()

void cvtMucDst2MucRec ( TRecMucTrack * dist,
const TMucTrack * src )

Definition at line 101 of file DstConvert.h.

102{
103 dist->setTrackId(src->trackId());
104 dist->setId(src->id());
105 dist->setStatus(src->status());
106 dist->setType(src->type());
107 dist->setStartPart(src->startPart());
108 dist->setEndPart(src->endPart());
109 dist->setBrLastLayer(src->brLastLayer());
110 dist->setEcLastLayer(src->ecLastLayer());
111 dist->setNumHits(src->numHits());
112 dist->setNumLayers(src->numLayers());
113 dist->setMaxHitsInLayer(src->maxHitsInLayer());
114 dist->setDepth(src->depth());
115 dist->setChi2(src->chi2());
116 dist->setDof(src->dof());
117 dist->setRms(src->rms());
118 dist->setDistance(src->distance());
119 dist->setDeltaPhi(src->deltaPhi());
120 dist->setXPos(src->xPos());
121 dist->setYPos(src->yPos());
122 dist->setZPos(src->zPos());
123 dist->setXPosSigma(src->xPosSigma());
124 dist->setYPosSigma(src->yPosSigma());
125 dist->setZPosSigma(src->zPosSigma());
126 dist->setPx(src->px());
127 dist->setPy(src->py());
128 dist->setPz(src->pz());
129 dist->setkalRechi2(src->kalRechi2());
130 dist->setkalDof(src->kaldof());
131 dist->setkalDepth(src->kaldepth());
132 dist->setkalbrLastLayer(src->kalbrLastLayer());
133 dist->setkalecLastLayer(src->kalecLastLayer());
134}
Double_t zPos() const
Definition TMucTrack.h:43
Int_t numHits() const
Definition TMucTrack.h:32
Int_t kalbrLastLayer() const
Definition TMucTrack.h:61
Int_t brLastLayer() const
Definition TMucTrack.h:30
Double_t pz() const
Definition TMucTrack.h:51
Double_t deltaPhi() const
Definition TMucTrack.h:54
Int_t dof() const
Definition TMucTrack.h:38
Int_t trackId() const
Definition TMucTrack.h:23
Double_t zPosSigma() const
Definition TMucTrack.h:47
Int_t kaldof() const
Definition TMucTrack.h:59
Int_t kalecLastLayer() const
Definition TMucTrack.h:62
Double_t px() const
Definition TMucTrack.h:49
Double_t depth() const
Definition TMucTrack.h:36
Double_t xPos() const
Definition TMucTrack.h:41
Int_t numLayers() const
Definition TMucTrack.h:33
Int_t status() const
Definition TMucTrack.h:25
Double_t kalRechi2() const
Definition TMucTrack.h:58
Double_t yPosSigma() const
Definition TMucTrack.h:46
Int_t id() const
Definition TMucTrack.h:24
Double_t yPos() const
Definition TMucTrack.h:42
Double_t xPosSigma() const
Definition TMucTrack.h:45
Int_t type() const
Definition TMucTrack.h:26
Double_t distance() const
Definition TMucTrack.h:53
Int_t maxHitsInLayer() const
Definition TMucTrack.h:34
Double_t rms() const
Definition TMucTrack.h:39
Int_t startPart() const
Definition TMucTrack.h:28
Int_t endPart() const
Definition TMucTrack.h:29
Double_t py() const
Definition TMucTrack.h:50
Int_t ecLastLayer() const
Definition TMucTrack.h:31
Double_t chi2() const
Definition TMucTrack.h:37
Double_t kaldepth() const
Definition TMucTrack.h:60
void setRms(Double_t rms)
void setMaxHitsInLayer(Int_t maxHits)
void setkalbrLastLayer(Int_t br)
void setZPos(Double_t z)
void setXPos(Double_t x)
void setEcLastLayer(Int_t layer)
void setYPosSigma(Double_t y)
void setkalDof(Int_t f)
void setPz(Double_t pz)
void setkalecLastLayer(Int_t ec)
void setStartPart(Int_t part)
void setNumHits(Int_t numHits)
void setBrLastLayer(Int_t layer)
void setPy(Double_t py)
void setStatus(Int_t st)
void setDeltaPhi(Double_t dphi)
void setEndPart(Int_t part)
void setTrackId(Int_t trackId)
void setkalRechi2(Double_t ch)
void setYPos(Double_t y)
void setNumLayers(Int_t numLayers)
void setId(Int_t id)
void setDepth(Double_t depth)
void setXPosSigma(Double_t x)
void setPx(Double_t px)
void setChi2(Double_t chi2)
void setDof(Int_t dof)
void setZPosSigma(Double_t z)
void setkalDepth(Double_t de)
void setType(Int_t type)
void setDistance(Double_t dist)

Referenced by BesClient::GetEvent().

◆ cvtTofDst2TofRec()

void cvtTofDst2TofRec ( TRecTofTrack * dist,
const TTofTrack * src )

Definition at line 37 of file DstConvert.h.

38{
39 dist->setTofTrackID(src->tofTrackID());
40 dist->setTrackID(src->trackID());
41 dist->setTofID(src->tofID());
42 dist->setStatus(src->status());
43 dist->setPath(src->path());
44 dist->setZrHit(src->zrhit());
45 dist->setPh(src->ph());
46 dist->setTof(src->tof());
47 dist->setErrTof(src->errtof());
48 dist->setBeta(src->beta());
49 dist->setQuality(src->quality());
50 dist->setT0(src->t0());
51 dist->setErrT0(src->errt0());
52 dist->setErrZ(src->errz());
53 dist->setPhi(src->phi());
54 dist->setErrPhi(src->errphi());
55 dist->setEnergy(src->energy());
56 dist->setErrEnergy(src->errenergy());
57
58 Double_t tmpTexp[5];
59 for (int i = 0; i < 5; ++i) tmpTexp[i] = src->texp(i);
60 dist->setTexp(tmpTexp);
61 Double_t tmpToffset[6];
62 for (int i = 0; i < 6; ++i) tmpToffset[i] = src->toffset(i);
63 dist->setTexp(tmpToffset);
64 Double_t tmpSigma[6];
65 for (int i = 0; i < 6; ++i) tmpSigma[i] = src->sigma(i);
66 dist->setTexp(tmpSigma);
67}
void setTof(Double_t tof)
void setTrackID(Int_t trackID)
void setEnergy(Double_t energy)
void setTexp(Double_t texp[5])
void setStatus(UInt_t status)
void setT0(Double_t t0)
void setQuality(Int_t quality)
void setErrZ(Double_t errz)
void setErrTof(Double_t etof)
void setTofID(Int_t tofID)
void setBeta(Double_t beta)
void setPhi(Double_t phi)
void setErrPhi(Double_t errphi)
void setTofTrackID(Int_t tofTrackID)
void setPath(Double_t path)
void setPh(Double_t ph)
void setErrEnergy(Double_t errenergy)
void setZrHit(Double_t zrhit)
void setErrT0(Double_t errt0)
Double_t errt0() const
Definition TTofTrack.h:98
Double_t ph() const
Definition TTofTrack.h:67
Double_t energy() const
Definition TTofTrack.h:103
Double_t phi() const
Definition TTofTrack.h:101
Int_t tofID() const
Definition TTofTrack.h:61
Double_t errenergy() const
Definition TTofTrack.h:104
Double_t path() const
Definition TTofTrack.h:65
Double_t beta() const
Definition TTofTrack.h:70
Double_t texp(Int_t i) const
Definition TTofTrack.h:72
Double_t errphi() const
Definition TTofTrack.h:102
Double_t zrhit() const
Definition TTofTrack.h:66
Double_t toffset(Int_t i) const
Definition TTofTrack.h:79
Int_t quality() const
Definition TTofTrack.h:95
Int_t tofTrackID() const
Definition TTofTrack.h:59
Double_t t0() const
Definition TTofTrack.h:97
Double_t tof() const
Definition TTofTrack.h:68
Double_t errz() const
Definition TTofTrack.h:100
UInt_t status() const
Definition TTofTrack.h:63
Double_t sigma(Int_t i) const
Definition TTofTrack.h:87
Double_t errtof() const
Definition TTofTrack.h:69
Int_t trackID() const
Definition TTofTrack.h:60

Referenced by BesClient::GetEvent().