CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/BesVisLib/BesVisLib/DstConvert.h File Reference
#include "RootEventData/TMdcTrack.h"
#include "RootEventData/TTofTrack.h"
#include "RootEventData/TEmcTrack.h"
#include "RootEventData/TMucTrack.h"
#include "RootEventData/TRecMdcTrack.h"
#include "RootEventData/TRecTofTrack.h"
#include "RootEventData/TRecEmcShower.h"
#include "RootEventData/TRecMucTrack.h"

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 InstallArea/include/BesVisLib/BesVisLib/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}

◆ cvtMdcDst2MdcRec()

void cvtMdcDst2MdcRec ( TRecMdcTrack dist,
const TMdcTrack src 
)

Definition at line 19 of file InstallArea/include/BesVisLib/BesVisLib/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}

◆ cvtMucDst2MucRec()

void cvtMucDst2MucRec ( TRecMucTrack dist,
const TMucTrack src 
)

Definition at line 101 of file InstallArea/include/BesVisLib/BesVisLib/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}

◆ cvtTofDst2TofRec()

void cvtTofDst2TofRec ( TRecTofTrack dist,
const TTofTrack src 
)

Definition at line 37 of file InstallArea/include/BesVisLib/BesVisLib/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}