PandaRoot
PndFtsRecoHitProducer< hit_T, recoHit_T > Class Template Reference

#include <PndFtsRecoHitProducer.h>

Inheritance diagram for PndFtsRecoHitProducer< hit_T, recoHit_T >:
GFAbsRecoHitProducer

Public Member Functions

 PndFtsRecoHitProducer (TClonesArray *, TClonesArray *)
 
virtual ~PndFtsRecoHitProducer ()
 
virtual GFAbsRecoHitproduce (int index)
 Virtual abstract method to produce a RecoHit. Implemented in GFRecoHitProducer. More...
 
- Public Member Functions inherited from GFAbsRecoHitProducer
virtual ~GFAbsRecoHitProducer ()
 

Detailed Description

template<class hit_T, class recoHit_T>
class PndFtsRecoHitProducer< hit_T, recoHit_T >

Definition at line 17 of file PndFtsRecoHitProducer.h.

Constructor & Destructor Documentation

◆ PndFtsRecoHitProducer()

template<class hit_T , class recoHit_T >
PndFtsRecoHitProducer< hit_T, recoHit_T >::PndFtsRecoHitProducer ( TClonesArray *  theArr,
TClonesArray *  theTubeArr 
)

Definition at line 31 of file PndFtsRecoHitProducer.h.

32 {
33  hitArrayTClones = theArr;
34  tubeArrayTClones = theTubeArr;
35 }

◆ ~PndFtsRecoHitProducer()

template<class hit_T , class recoHit_T >
PndFtsRecoHitProducer< hit_T, recoHit_T >::~PndFtsRecoHitProducer ( )
virtual

Definition at line 38 of file PndFtsRecoHitProducer.h.

39 {
40 }

Member Function Documentation

◆ produce()

template<class hit_T , class recoHit_T >
GFAbsRecoHit * PndFtsRecoHitProducer< hit_T, recoHit_T >::produce ( int  index)
virtual

Virtual abstract method to produce a RecoHit. Implemented in GFRecoHitProducer.

Implements GFAbsRecoHitProducer.

Definition at line 43 of file PndFtsRecoHitProducer.h.

References GFException::setFatal().

44 {
45  assert(hitArrayTClones != nullptr);
46  assert(tubeArrayTClones != nullptr);
47  if (hitArrayTClones->At(index) == 0) {
48  GFException e("In PndFtsRecoHitProducer: index for hit in TClonesArray out of bounds", __LINE__, __FILE__);
49  e.setFatal();
50  throw e;
51  }
52 
53  return (new recoHit_T((hit_T *)hitArrayTClones->At(index), tubeArrayTClones));
54 }
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:44

The documentation for this class was generated from the following file: