40 #ifndef GFRECOHITPRODUCER_H 41 #define GFRECOHITPRODUCER_H 48 #include "TClonesArray.h" 89 template <
class hit_T,
class recoHit_T>
93 TClonesArray *hitArrayTClones;
108 template <
class hit_T,
class recoHit_T>
111 hitArrayTClones = theArr;
122 template <
class hit_T,
class recoHit_T>
128 template <
class hit_T,
class recoHit_T>
131 assert(hitArrayTClones !=
nullptr);
136 if (hitArrayTClones->At(index) == 0) {
137 GFException e(
"In GFRecoHitProducer: index for hit in TClonesArray out of bounds", __LINE__, __FILE__);
141 return (
new recoHit_T((hit_T *)hitArrayTClones->At(index)));
virtual GFAbsRecoHit * produce(int index)=0
Virtual abstract method to produce a RecoHit. Implemented in GFRecoHitProducer.
virtual GFAbsRecoHit * produce(int index)
Create a RecoHit from the cluster at position index in TClonesArray.
Template class for a hit producer module.
virtual ~GFRecoHitProducer()
virtual ~GFAbsRecoHitProducer()
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) ...
void setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
GFRecoHitProducer(TClonesArray *)
Constructor takes pointer to the cluster array.