BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/TrkReco/TrkReco/TBuilderCosmic.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// $Id: TBuilderCosmic.h,v 1.6 2010/03/31 09:58:59 liucy Exp $
3//-----------------------------------------------------------------------------
4// Filename : TBuilderCosmic.h
5// Section : Tracking
6// Owner : Yoshi Iwasaki
7// Email : [email protected]
8//-----------------------------------------------------------------------------
9// Description : A class to build a cosmic track.
10// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11//-----------------------------------------------------------------------------
12
13#ifndef TBuilderCosmic_FLAG_
14#define TBuilderCosmic_FLAG_
15
16#ifdef TRKRECO_DEBUG_DETAIL
17#ifndef TRKRECO_DEBUG
18#define TRKRECO_DEBUG
19#endif
20#endif
21
22//#ifndef LINE_COSMIC
23//#define LINE_COSMIC
24//#endif
25
26#include <string>
27
28#define HEP_SHORT_NAMES
29#include "CLHEP/Alist/AList.h"
30#include "TrkReco/TMSelector.h"
31#include "TrkReco/TBuilder0.h"
32#include "TrkReco/TCosmicFitter.h"
33#include "TrkReco/T3DLineFitter.h"
34
35/// A class to build a cosmic track.
36class TBuilderCosmic : public TBuilder0 {
37
38 public:
39 /// Constructor.
40 TBuilderCosmic(const std::string & name, float salvageLevel);
41
42 /// Destructor
43 virtual ~TBuilderCosmic();
44
45 public:// Selectors
46 /// appends stereo hits to a track.
47 TTrack * buildStereo(TTrack & track, const AList<TMLink> &) const;
48
49 private:
50#ifdef LINE_COSMIC
51 T3DLineFitter _fitter;
52#else
53 //THelixFitter _fitter;
54 TCosmicFitter _fitter;
55#endif
56};
57
58//-----------------------------------------------------------------------------
59
60#ifdef TBuilderCosmic_NO_INLINE
61#define inline
62#else
63#undef inline
64#define TBuilderCosmic_INLINE_DEFINE_HERE
65#endif
66
67#ifdef TBuilderCosmic_INLINE_DEFINE_HERE
68
69#endif
70
71#undef inline
72
73#endif /* TBuilderCosmic_FLAG_ */
A class to fit a TTrackBase object to a 3D line.
const std::string & name(void) const
returns name.
virtual ~TBuilderCosmic()
Destructor.
TTrack * buildStereo(TTrack &track, const AList< TMLink > &) const
appends stereo hits to a track.
A class to fit a TTrackBase object to a helix.
A class to represent a track in tracking.