BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitMaker.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkFitMaker.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6//
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Authors: Steve Schaffner
12//
13//------------------------------------------------------------------------
14//#include "BaBar/BaBar.h"
15#include "TrkBase/TrkFitMaker.h"
16#include "TrkBase/TrkRecoTrk.h"
17#include "TrkBase/TrkRepIter.h"
18
22
23std::pair<TrkRepIter,TrkRepIter>
24TrkFitMaker::uniqueReps(const TrkRecoTrk& t) const // was currentReps
25{
26 return t.uniqueReps();
27}
28
29std::pair<TrkRepIter,TrkRepIter>
30TrkFitMaker::allReps(const TrkRecoTrk& t) const // was repPtrs
31{
32 return t.allReps();
33}
34
35void
37{
38 trk.setRep(r);
39}
40
41TrkRep*
43{
44 return t.getRep(h);
45}
46
49 double t0) const
50{
51 return new TrkRecoTrk(hypo, tc, t0);
52}
53
56 double t0) const
57{
58 return new TrkRecoTrk(hypo, idnum, t0);
59}
60
61void
63{
64 t.changeDefault(h);
65}
66
67void
69{
70 t.repointHypo(h, f);
71}
72
73void
75{
76 t.setFitNumber(hypo, newNum);
77}
78
79void
81{
82 trk.addHypoTo(newRep, hypo);
83}
84
85void
87{
88 trk.setIdManager(idMan);
89}
90
91void
92TrkFitMaker::setBField(TrkRecoTrk& trk, const BField* field) const
93{
94 trk.setBField(field);
95}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
TTree * t
Definition binning.cxx:23
PidType
Definition PdtPid.h:11
void setIdManager(TrkRecoTrk &, TrkIdManager *) const
std::pair< TrkRepIter, TrkRepIter > allReps(const TrkRecoTrk &t) const
virtual ~TrkFitMaker()
void addHypoTo(TrkRecoTrk &, TrkRep *, PdtPid::PidType hypo) const
std::pair< TrkRepIter, TrkRepIter > uniqueReps(const TrkRecoTrk &t) const
TrkRep * getRep(TrkRecoTrk &, PdtPid::PidType) const
void repointHypo(TrkRecoTrk &, PdtPid::PidType hypo, PdtPid::PidType fit) const
void setRep(TrkRecoTrk &, TrkRep *) const
void setBField(TrkRecoTrk &, const BField *) const
TrkRecoTrk * createTrack(PdtPid::PidType, const TrkContext &, double t0) const
void changeDefault(TrkRecoTrk &, PdtPid::PidType) const
void setFitNumber(TrkRecoTrk &, PdtPid::PidType, int) const
void addHypoTo(TrkRep *newRep, PdtPid::PidType hypo)
void setRep(TrkRep *)
void setIdManager(TrkIdManager *idMan)
void setBField(const BField *field)