13 #ifndef PNDFTSRECOHITPRODUCER_H 14 #define PNDFTSRECOHITPRODUCER_H 21 #include "TClonesArray.h" 28 template <
class hit_T,
class recoHit_T>
32 TClonesArray *hitArrayTClones;
33 TClonesArray *tubeArrayTClones;
42 template <
class hit_T,
class recoHit_T>
45 hitArrayTClones = theArr;
46 tubeArrayTClones = theTubeArr;
49 template <
class hit_T,
class recoHit_T>
54 template <
class hit_T,
class recoHit_T>
57 assert(hitArrayTClones !=
nullptr);
58 assert(tubeArrayTClones !=
nullptr);
59 if (hitArrayTClones->At(index) == 0) {
60 GFException e(
"In PndFtsRecoHitProducer: index for hit in TClonesArray out of bounds", __LINE__, __FILE__);
65 return (
new recoHit_T((hit_T *)hitArrayTClones->At(index), tubeArrayTClones));
virtual ~PndFtsRecoHitProducer()
virtual GFAbsRecoHit * produce(int index)
Virtual abstract method to produce a RecoHit. Implemented in GFRecoHitProducer.
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) ...
PndFtsRecoHitProducer(TClonesArray *, TClonesArray *)
void setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.