BOSS 7.1.0
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
20{
21}
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
Definition: TrkFitMaker.cxx:86
std::pair< TrkRepIter, TrkRepIter > allReps(const TrkRecoTrk &t) const
Definition: TrkFitMaker.cxx:30
virtual ~TrkFitMaker()
Definition: TrkFitMaker.cxx:19
void addHypoTo(TrkRecoTrk &, TrkRep *, PdtPid::PidType hypo) const
Definition: TrkFitMaker.cxx:80
std::pair< TrkRepIter, TrkRepIter > uniqueReps(const TrkRecoTrk &t) const
Definition: TrkFitMaker.cxx:24
TrkRep * getRep(TrkRecoTrk &, PdtPid::PidType) const
Definition: TrkFitMaker.cxx:42
void repointHypo(TrkRecoTrk &, PdtPid::PidType hypo, PdtPid::PidType fit) const
Definition: TrkFitMaker.cxx:68
void setRep(TrkRecoTrk &, TrkRep *) const
Definition: TrkFitMaker.cxx:36
void setBField(TrkRecoTrk &, const BField *) const
Definition: TrkFitMaker.cxx:92
TrkRecoTrk * createTrack(PdtPid::PidType, const TrkContext &, double t0) const
Definition: TrkFitMaker.cxx:48
void changeDefault(TrkRecoTrk &, PdtPid::PidType) const
Definition: TrkFitMaker.cxx:62
void setFitNumber(TrkRecoTrk &, PdtPid::PidType, int) const
Definition: TrkFitMaker.cxx:74
void addHypoTo(TrkRep *newRep, PdtPid::PidType hypo)
Definition: TrkRecoTrk.cxx:430
void setRep(TrkRep *)
Definition: TrkRecoTrk.cxx:332
void setIdManager(TrkIdManager *idMan)
Definition: TrkRecoTrk.cxx:436
void setBField(const BField *field)
Definition: TrkRecoTrk.cxx:449
Definition: TrkRep.h:43