EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFRecoHitProducer< hit_T, recoHit_T > Class Template Reference

Template class for a hit producer module. More...

#include <EicRoot/blob/master/genfit/GFRecoHitProducer.h>

+ Inheritance diagram for GFRecoHitProducer< hit_T, recoHit_T >:
+ Collaboration diagram for GFRecoHitProducer< hit_T, recoHit_T >:

Public Member Functions

 GFRecoHitProducer (TClonesArray *)
 Constructor takes pointer to the cluster array.
 
virtual ~GFRecoHitProducer ()
 
virtual GFAbsRecoHitproduce (int index, void *ptr=0)
 Create a RecoHit from the cluster at position index in TClonesArray.
 
- Public Member Functions inherited from GFAbsRecoHitProducer
virtual ~GFAbsRecoHitProducer ()
 

Private Attributes

TClonesArray * hitArrayTClones
 pointer to array with cluster data
 

Detailed Description

template<class hit_T, class recoHit_T>
class GFRecoHitProducer< hit_T, recoHit_T >

Template class for a hit producer module.

A GFRecoHitProducer module is used by RecoHitFactory to create RecoHits for one specific detector type.

It is assumed that each detector has as output of its digitization / clustering some sort of cluster class which stores all information that corresponds to a measured hit in that detector. The RecoHit producer converts this information into a class that can be handled by genfit. This class is realized as a RecoHit (a class inherting from GFAbsRecoHit).

In order to use the GFRecoHitProducer facility a RecoHit has to implement a constructor which takes as an argument a pointer to the cluster class. This constructor serves as the initializing constructor for the RecoHit.

The GFRecoHitProducer will fetch the cluster objects from a TClonesArray and use the initializing constructor to build the corresponding RecoHit.

Parameters
hit_ttemplate parameter specifying cluster class
recoHit_ttemplate parameter specifying recoHit

Definition at line 81 of file GFRecoHitProducer.h.

View newest version in sPHENIX GitHub at line 81 of file GFRecoHitProducer.h

Constructor & Destructor Documentation

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

Constructor takes pointer to the cluster array.

Definition at line 101 of file GFRecoHitProducer.h.

View newest version in sPHENIX GitHub at line 101 of file GFRecoHitProducer.h

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

Definition at line 114 of file GFRecoHitProducer.h.

View newest version in sPHENIX GitHub at line 114 of file GFRecoHitProducer.h

Member Function Documentation

template<class hit_T , class recoHit_T >
GFAbsRecoHit * GFRecoHitProducer< hit_T, recoHit_T >::produce ( int  index,
void *  ptr = 0 
)
virtual

Create a RecoHit from the cluster at position index in TClonesArray.

Implements GFAbsRecoHitProducer.

Definition at line 120 of file GFRecoHitProducer.h.

View newest version in sPHENIX GitHub at line 120 of file GFRecoHitProducer.h

References Acts::UnitConstants::e, and GFException::setFatal().

+ Here is the call graph for this function:

Member Data Documentation

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

pointer to array with cluster data

Definition at line 84 of file GFRecoHitProducer.h.

View newest version in sPHENIX GitHub at line 84 of file GFRecoHitProducer.h


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