PandaRoot
PndSttRecoHitProducer< hit_T, recoHit_T > Class Template Reference

#include <PndSttRecoHitProducer.h>

Inheritance diagram for PndSttRecoHitProducer< hit_T, recoHit_T >:
GFAbsRecoHitProducer

Public Member Functions

 PndSttRecoHitProducer (TClonesArray *, TClonesArray *)
 
virtual ~PndSttRecoHitProducer ()
 
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 PndSttRecoHitProducer< hit_T, recoHit_T >

Definition at line 17 of file PndSttRecoHitProducer.h.

Constructor & Destructor Documentation

◆ PndSttRecoHitProducer()

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

Definition at line 31 of file PndSttRecoHitProducer.h.

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

◆ ~PndSttRecoHitProducer()

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

Definition at line 38 of file PndSttRecoHitProducer.h.

39 {
40 }

Member Function Documentation

◆ produce()

template<class hit_T , class recoHit_T >
GFAbsRecoHit * PndSttRecoHitProducer< 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 PndSttRecoHitProducer.h.

References GFException::setFatal().

44 {
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__);
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: