6 #include "Sti/Base/Factory.h"
7 #include "Sti/Base/Named.h"
8 #include "Sti/Base/Filter.h"
10 #include "Sti/StiHitContainer.h"
35 template <
class Source1,
class Detector>
46 virtual void loadEvent(Source1 *source1,
48 Filter<StiHit> * hitFilter);
49 virtual void loadHits(Source1 * source,
51 Filter<StiHit> * hitFilter);
54 virtual void setDetector(Detector*detector);
55 void setMaxTimes(
int nMaxTimes){_hitContainer->
setMaxTimes(nMaxTimes);}
56 virtual Detector* getDetector();
65 template<
class Source1,
class Detector>
68 _hitContainer(
StiToolkit::instance()->getHitContainer()),
69 _trackContainer(
StiToolkit::instance()->getTrackContainer()),
70 _hitFactory(
StiToolkit::instance()->getHitFactory()),
71 _trackFactory(
StiToolkit::instance()->getTrackFactory()),
75 template<
class Source1,
class Detector>
81 _hitContainer(hitContainer),
82 _trackContainer(
StiToolkit::instance()->getTrackContainer()),
83 _hitFactory(hitFactory),
84 _trackFactory(
StiToolkit::instance()->getTrackFactory()),
90 template<
class Source1,
class Detector>
93 Filter<StiHit> * hitFilter)
97 template<
class Source1,
class Detector>
100 _hitContainer = hitContainer;
104 template<
class Source1,
class Detector>
107 _hitFactory = hitFactory;
110 template<
class Source1,
class Detector>
113 _detector = detector;
116 template<
class Source1,
class Detector>
123 template<
class Source1,
class Detector>
126 Filter<StiHit> * hitFilter)
Abstract definition of a Track.
void setMaxTimes(int nTimes)
Set max time for all hits.