1 #ifndef PNDSTTRECOHITPRODUCER_H 2 #define PNDSTTRECOHITPRODUCER_H 9 #include "TClonesArray.h" 16 template <
class hit_T,
class recoHit_T>
20 TClonesArray *hitArrayTClones;
21 TClonesArray *tubeArrayTClones;
30 template <
class hit_T,
class recoHit_T>
33 hitArrayTClones = theArr;
34 tubeArrayTClones = theTubeArr;
37 template <
class hit_T,
class recoHit_T>
42 template <
class hit_T,
class recoHit_T>
45 assert(hitArrayTClones !=
nullptr);
46 assert(tubeArrayTClones !=
nullptr);
47 if (hitArrayTClones->At(index) == 0) {
48 GFException e(
"In PndSttRecoHitProducer: index for hit in TClonesArray out of bounds", __LINE__, __FILE__);
53 return (
new recoHit_T((hit_T *)hitArrayTClones->At(index), tubeArrayTClones));
virtual ~PndSttRecoHitProducer()
Base Class for representing a Hit in GENFIT.
Abstract interface class for GFRecoHitProducer.
virtual GFAbsRecoHit * produce(int index)
Virtual abstract method to produce a RecoHit. Implemented in GFRecoHitProducer.
PndSttRecoHitProducer(TClonesArray *, TClonesArray *)
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.