StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Types | List of all members
StiMasterHitLoader< Source1, Detector > Class Template Reference

#include <StiMasterHitLoader.h>

Inheritance diagram for StiMasterHitLoader< Source1, Detector >:
StiHitLoader< Source1, Detector > Named

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< HitLoaderKeyHitLoaderVector
 
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
 

Detailed Description

template<class Source1, class Detector>
class StiMasterHitLoader< Source1, Detector >

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.

Author
Claude A Pruneau (Wayne)

Definition at line 31 of file StiMasterHitLoader.h.


The documentation for this class was generated from the following file: