33 GFException exc(
"GFRecoHitFactory: detID already in use",__LINE__,__FILE__);
35 std::vector<double> numbers;
36 numbers.push_back(detID);
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<genf::GFAbsRecoHit*> hitVec;
73 for(
unsigned int i=0;i<nHits;i++) {
76 cand.
getHit(i,detID,index);
77 hitVec.push_back(
createOne(detID,index) );
GFException & setNumbers(std::string, const std::vector< double > &)
set list of numbers with description
std::map< int, GFAbsRecoHitProducer * > fHitProdMap
GFAbsRecoHit * createOne(int detID, int index)
Create a RecoHit.
virtual ~GFRecoHitFactory()
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.
Abstract interface class for GFRecoHitProducer.
void getHit(unsigned int i, unsigned int &detId, unsigned int &hitId) const
Get detector ID and cluster index (hitId) for hit number i.
unsigned int getNHits() const
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
void clear()
Clear all hit producers.
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.