BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHelixMaker Class Reference

#include <TrkHelixMaker.h>

+ Inheritance diagram for TrkHelixMaker:

Public Member Functions

 TrkHelixMaker ()
 
virtual ~TrkHelixMaker ()
 
void addZValues (TrkRecoTrk &theTrack, double z0, double tanDip, double chi2)
 
 TrkHelixMaker ()
 
virtual ~TrkHelixMaker ()
 
void addZValues (TrkRecoTrk &theTrack, double z0, double tanDip, double chi2)
 
- Public Member Functions inherited from TrkSimpleMaker< TrkHelixRep >
 TrkSimpleMaker ()
 
 TrkSimpleMaker ()
 
virtual ~TrkSimpleMaker ()
 
virtual ~TrkSimpleMaker ()
 
virtual void changeFit (TrkRecoTrk &theTrack) const
 
virtual void changeFit (TrkRecoTrk &theTrack) const
 
TrkRecoTrkmakeTrack (const TrkExchangePar &helix, const double chi2, const TrkContext &, double trackT0) const
 
TrkRecoTrkmakeTrack (const TrkExchangePar &helix, const double chi2, const TrkContext &, double trackT0) const
 
bool setFlipAndDrop (TrkRecoTrk &, bool allowFlips, bool allowDrops) const
 
bool setFlipAndDrop (TrkRecoTrk &, bool allowFlips, bool allowDrops) const
 
void setValidRange (TrkRecoTrk &track, double newLo, double newHi) const
 
void setValidRange (TrkRecoTrk &track, double newLo, double newHi) const
 
void setValues (TrkRecoTrk &theTrack, const TrkExchangePar &newPars, double chi2) const
 
void setValues (TrkRecoTrk &theTrack, const TrkExchangePar &newPars, double chi2) const
 
- Public Member Functions inherited from TrkFitMaker
virtual ~TrkFitMaker ()
 
void changeDefault (TrkRecoTrk &, PdtPid::PidType) const
 
virtual ~TrkFitMaker ()
 
void changeDefault (TrkRecoTrk &, PdtPid::PidType) const
 

Protected Member Functions

TrkRepmakeRep (TrkRecoTrk &theTrack) const
 
TrkRepmakeRep (TrkRecoTrk &theTrack) const
 
- Protected Member Functions inherited from TrkFitMaker
std::pair< TrkRepIter, TrkRepIteruniqueReps (const TrkRecoTrk &t) const
 
void setRep (TrkRecoTrk &, TrkRep *) const
 
void repointHypo (TrkRecoTrk &, PdtPid::PidType hypo, PdtPid::PidType fit) const
 
void setFitNumber (TrkRecoTrk &, PdtPid::PidType, int) const
 
std::pair< TrkRepIter, TrkRepIterallReps (const TrkRecoTrk &t) const
 
TrkRepgetRep (TrkRecoTrk &, PdtPid::PidType) const
 
void addHypoTo (TrkRecoTrk &, TrkRep *, PdtPid::PidType hypo) const
 
TrkRecoTrkcreateTrack (PdtPid::PidType, const TrkContext &, double t0) const
 
TrkRecoTrkcreateTrack (PdtPid::PidType, long idnum, double t0) const
 
void setIdManager (TrkRecoTrk &, TrkIdManager *) const
 
void setBField (TrkRecoTrk &, const BField *) const
 
std::pair< TrkRepIter, TrkRepIteruniqueReps (const TrkRecoTrk &t) const
 
void setRep (TrkRecoTrk &, TrkRep *) const
 
void repointHypo (TrkRecoTrk &, PdtPid::PidType hypo, PdtPid::PidType fit) const
 
void setFitNumber (TrkRecoTrk &, PdtPid::PidType, int) const
 
std::pair< TrkRepIter, TrkRepIterallReps (const TrkRecoTrk &t) const
 
TrkRepgetRep (TrkRecoTrk &, PdtPid::PidType) const
 
void addHypoTo (TrkRecoTrk &, TrkRep *, PdtPid::PidType hypo) const
 
TrkRecoTrkcreateTrack (PdtPid::PidType, const TrkContext &, double t0) const
 
TrkRecoTrkcreateTrack (PdtPid::PidType, long idnum, double t0) const
 
void setIdManager (TrkRecoTrk &, TrkIdManager *) const
 
void setBField (TrkRecoTrk &, const BField *) const
 

Detailed Description

Constructor & Destructor Documentation

◆ TrkHelixMaker() [1/2]

TrkHelixMaker::TrkHelixMaker ( )

Definition at line 24 of file TrkHelixMaker.cxx.

24{}

◆ ~TrkHelixMaker() [1/2]

TrkHelixMaker::~TrkHelixMaker ( )
virtual

Definition at line 20 of file TrkHelixMaker.cxx.

20{}

◆ TrkHelixMaker() [2/2]

TrkHelixMaker::TrkHelixMaker ( )

◆ ~TrkHelixMaker() [2/2]

virtual TrkHelixMaker::~TrkHelixMaker ( )
virtual

Member Function Documentation

◆ addZValues() [1/2]

void TrkHelixMaker::addZValues ( TrkRecoTrk theTrack,
double  z0,
double  tanDip,
double  chi2 
)

Definition at line 29 of file TrkHelixMaker.cxx.

31{
32 PdtPid::PidType hypo = theTrack.defaultType();
33// const TrkRep* defrep = getRep(theTrack,hypo);
34// const TrkHotList *hl = defrep->hotList();//yzhang delete
35 TrkRep* defrep = getRep(theTrack,hypo);
36 TrkHotList *hl = defrep->hotList();//yzhang temp
37 const TrkFit* theFit = theTrack.fitResult();
38 if (theFit == 0) {
39 std::cout<<"ErrMsg(error)"
40 << "TrkSimpleMaker::addZValues() cannot get helix from invalid fit."
41 << std::endl;
42 return;
43 }
44
45 TrkExchangePar oldPar = theFit->helix(0.0);
46 oldPar.setZ0(z0);
47 oldPar.setTanDip(tanDip);
48 /*
49 std::cout << "#########################before newHelix" << std::endl;//yzhang debug
50 std::cout << "track--------- " << std::endl;//yzhang debug
51 theTrack.printAll(std::cout);//track
52 std::cout << "rep of track--------- " << std::endl;//yzhang debug
53 getRep(theTrack,hypo)->printAll(std::cout);//track Rep
54 std::cout << "circle rep's hotlist--------- " << std::endl;//yzhang debug
55 hl->printAll(std::cout);//Circle Rep 's hotList
56 */
57
58 TrkHelixRep* newRep = new TrkHelixRep(oldPar, &theTrack, hypo, hl);
59/*
60 std::cout << "#########################after new helix before setRep" << std::endl;//yzhang debug
61 std::cout << "track--------- " << std::endl;//yzhang debug
62 theTrack.printAll(std::cout);//track
63 std::cout << "rep of track--------- " << std::endl;//yzhang debug
64 std::cout <<newRep->hotList()<<std::endl;
65 std::cout << "circle hotlist --------- " << std::endl;//yzhang debug
66 std::cout <<hl<<std::endl;
67 std::cout << "helix hotlist --------- " << std::endl;//yzhang debug
68 getRep(theTrack,hypo)->printAll(std::cout);//track Rep
69 std::cout << "circle rep's hotlist--------- " << std::endl;//yzhang debug
70 hl->printAll(std::cout);//Circle Rep 's hotList
71 std::cout << "helix rep's hotlist--------- " << std::endl;//yzhang debug
72 newRep->hotList()->printAll(std::cout);//Helix Rep's hotList
73 */
74
75 newRep->fitter().setFittingPar(false, false);
76 setRep(theTrack, newRep); // theTrack will delete all old Reps
77
78 /*
79 std::cout << "#########################after setRep" << std::endl;//yzhang debug
80 std::cout << "track--------- " << std::endl;//yzhang debug
81 theTrack.printAll(std::cout);//track
82 std::cout << "rep of track--------- " << std::endl;//yzhang debug
83 getRep(theTrack,hypo)->printAll(std::cout);//track Rep
84 //std::cout << "circle rep--------- " << std::endl;//yzhang debug
85 //defrep->printAll(std::cout);
86 //std::cout << "circle rep's hotlist--------- " << std::endl;//yzhang debug
87 //hl->printAll(std::cout);//Circle Rep 's hotList
88 std::cout << "helix rep's hotlist--------- " << std::endl;//yzhang debug
89 newRep->hotList()->printAll(std::cout);//Helix Rep's hotList
90
91 std::cout << "######################### " << std::endl;//yzhang debug
92
93 */
94 newRep->setChisq(chi2);
95 if (chi2 > 0.0) newRep->setValid(true);
96 newRep->setCurrent(false);
97}
TrkRep * getRep(TrkRecoTrk &, PdtPid::PidType) const
Definition: TrkFitMaker.cxx:42
void setRep(TrkRecoTrk &, TrkRep *) const
Definition: TrkFitMaker.cxx:36
void setValid(bool v)
virtual TrkExchangePar helix(double fltL) const =0
void setFittingPar(bool allowFlips, bool allowDrops)
const TrkFit * fitResult() const
Definition: TrkRecoTrk.cxx:387
virtual TrkHotList * hotList()
void setChisq(double c)

Referenced by MdcSegGrouperSt::storePar().

◆ addZValues() [2/2]

void TrkHelixMaker::addZValues ( TrkRecoTrk theTrack,
double  z0,
double  tanDip,
double  chi2 
)

◆ makeRep() [1/2]

TrkRep * TrkHelixMaker::makeRep ( TrkRecoTrk theTrack) const
protected

◆ makeRep() [2/2]

TrkRep * TrkHelixMaker::makeRep ( TrkRecoTrk theTrack) const
protected

The documentation for this class was generated from the following files: