FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
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...
 

Private Attributes

TClonesArray * hitArrayTClones
 
TClonesArray * tubeArrayTClones
 

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

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

Definition at line 32 of file PndSttRecoHitProducer.h.

32  {
33  hitArrayTClones = theArr;
34  tubeArrayTClones = theTubeArr;
35 }
template<class hit_T , class recoHit_T >
PndSttRecoHitProducer< hit_T, recoHit_T >::~PndSttRecoHitProducer ( )
virtual

Definition at line 38 of file PndSttRecoHitProducer.h.

38  {
39 }

Member Function Documentation

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().

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

Member Data Documentation

template<class hit_T , class recoHit_T >
TClonesArray* PndSttRecoHitProducer< hit_T, recoHit_T >::hitArrayTClones
private

Definition at line 20 of file PndSttRecoHitProducer.h.

template<class hit_T , class recoHit_T >
TClonesArray* PndSttRecoHitProducer< hit_T, recoHit_T >::tubeArrayTClones
private

Definition at line 21 of file PndSttRecoHitProducer.h.


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