BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/TrkFitter/include/TrkFitter/TrkSimpleMaker.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkSimpleMaker.h,v 1.2 2007/11/13 07:29:08 codeman Exp $
4//
5// Description:
6// Creates tracks with reps of type T inside them (makeTrack()), or swaps
7// in a T rep for the existing Rep (changeFit()). In neither case
8// is a fit performed. T reps have an option of allowing hit-dropping
9// and ambiguity-flipping while fitting; these can be turned on
10// by invoking setFlipAndDrop() for that track.
11//
12// Environment:
13// Software developed for the BaBar Detector at the SLAC B-Factory.
14//
15// Author(s): Gerhard Raven
16//
17//------------------------------------------------------------------------
18
19#ifndef TRKSIMPLEMAKER_HH
20#define TRKSIMPLEMAKER_HH
21#include "TrkBase/TrkFitMaker.h"
22#include "TrkBase/TrkRep.h"
23
24class TrkRep;
25
26template <class T> class TrkSimpleMaker : public TrkFitMaker {
27public:
29 virtual ~TrkSimpleMaker();
30
31 virtual void changeFit( TrkRecoTrk& theTrack ) const;
32 TrkRecoTrk* makeTrack( const TrkExchangePar& helix, const double chi2, const TrkContext&,
33 double trackT0 ) const;
34
35 // Change control parameters in track -- only valid for input SimpleReps.
36 bool setFlipAndDrop( TrkRecoTrk&, bool allowFlips, bool allowDrops ) const;
37
38 void setValidRange( TrkRecoTrk& track, double newLo, double newHi ) const;
39 void setValues( TrkRecoTrk& theTrack, const TrkExchangePar& newPars, double chi2 ) const;
40
41private:
42 // Preempt
43 TrkSimpleMaker& operator=( const TrkSimpleMaker& );
45};
46// #ifdef BABAR_COMP_INST
47#include "TrkFitter/TrkSimpleMaker.icc"
48// #endif
49
50#endif
virtual ~TrkSimpleMaker()
void setValues(TrkRecoTrk &theTrack, const TrkExchangePar &newPars, double chi2) const
bool setFlipAndDrop(TrkRecoTrk &, bool allowFlips, bool allowDrops) const
void setValidRange(TrkRecoTrk &track, double newLo, double newHi) const
TrkRecoTrk * makeTrack(const TrkExchangePar &helix, const double chi2, const TrkContext &, double trackT0) const
virtual void changeFit(TrkRecoTrk &theTrack) const