StRoot
1
|
#include <StiMasterHitLoader.h>
Public Member Functions | |
StiMasterHitLoader (const string &name, StiHitContainer *hitContainer, Factory< StiHit > *hitFactory, Detector *transform) | |
void | addLoader (StiHitLoader< Source1, Detector > *loader) |
void | loadEvent (Source1 *source1, Filter< StiTrack > *trackFilter, Filter< StiHit > *hitFilter) |
void | setHitContainer (StiHitContainer *hitContainer) |
void | setHitFactory (Factory< StiHit > *hitFactory) |
virtual void | setDetector (Detector *detector) |
Public Member Functions inherited from StiHitLoader< Source1, Detector > | |
StiHitLoader (const string &name) | |
StiHitLoader (const string &name, StiHitContainer *hitContainer, Factory< StiHit > *hitFactory, Detector *detector) | |
virtual void | loadHits (Source1 *source, Filter< StiTrack > *trackFilter, Filter< StiHit > *hitFilter) |
void | setMaxTimes (int nMaxTimes) |
virtual Detector * | getDetector () |
Public Member Functions inherited from Named | |
void | setName (const string &newName) |
Set the name of the object. | |
const string & | getName () const |
Get the name of the object. | |
bool | isName (const string &aName) const |
Determine whether name equals given name. | |
Protected Types | |
typedef StiHitLoader< Source1, Detector > * | HitLoaderKey |
typedef vector< HitLoaderKey > | HitLoaderVector |
typedef HitLoaderVector::iterator | HitLoaderIter |
typedef HitLoaderVector::const_iterator | HitLoaderConstIter |
Additional Inherited Members | |
Protected Member Functions inherited from Named | |
Named (const string &aName=" ") | |
Only derived class are Named. | |
Protected Attributes inherited from StiHitLoader< Source1, Detector > | |
StiHitContainer * | _hitContainer |
StiTrackContainer * | _trackContainer |
Factory< StiHit > * | _hitFactory |
Factory< StiKalmanTrack > * | _trackFactory |
Detector * | _detector |
Protected Attributes inherited from Named | |
string | _name |
StiMasterHitLoader is an implementation of the abstract interface StiHitLoader designed to enable hit load for a variety of containers sequentially. The sources are assumed to be of same type e.g. StEvent but of various sources e.g. Tpc, Svt, etc. StiMasterHitLoader is actually acting as a broker: it sequentially invokes the actual loaders that are registered with it.
Actual loaders must be implemented in class deriving from StiMasterHitLoader. They are registered at startup time with this broker using the "addLoader" method.
Note that this class is templated in the same way the base class StiHitLoader is so as to enable hit loading from potentially diverse sources.
Definition at line 31 of file StiMasterHitLoader.h.