33 GFException exc(
"GFRecoHitFactory: detID already in use",__LINE__,__FILE__);
35 std::vector<double> numbers;
36 numbers.push_back(detID);
46 std::map<int, GFAbsRecoHitProducer*>::iterator it=
fHitProdMap.begin();
61 GFException exc(
"GFRecoHitFactory: no hitProducer for this detID available",__LINE__,__FILE__);
63 std::vector<double> numbers;
64 numbers.push_back(detID);
71 std::vector<GFAbsRecoHit*> hitVec;
77 hitVec.push_back(
createOne(detID,index) );
void clear()
Clear all hit producers.
std::vector< GFAbsRecoHit * > createMany(const GFTrackCand &cand)
Creat a collection of RecoHits.
void addProducer(int detID, GFAbsRecoHitProducer *hitProd)
Register a producer module to the factory.
unsigned int getNHits() const
void setNumbers(std::string, const std::vector< double > &)
set list of numbers with description
void getHit(unsigned int i, unsigned int &detId, unsigned int &hitId) const
Get detector ID and cluster index (hitId) for hit number i.
Track candidate – a list of cluster indices.
virtual ~GFRecoHitFactory()
Base Class for representing a Hit in GENFIT.
Abstract interface class for GFRecoHitProducer.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
GFAbsRecoHit * createOne(int detID, int index)
Create a RecoHit.
void setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
std::map< int, GFAbsRecoHitProducer * > fHitProdMap