Template class for a hit producer module. More...
#include <GFRecoHitProducer.h>
Public Member Functions | |
GFRecoHitProducer (TClonesArray *) | |
Constructor takes pointer to the cluster array. More... | |
virtual | ~GFRecoHitProducer () |
virtual GFAbsRecoHit * | produce (int index) |
Create a RecoHit from the cluster at position index in TClonesArray. More... | |
Public Member Functions inherited from GFAbsRecoHitProducer | |
virtual | ~GFAbsRecoHitProducer () |
Private Attributes | |
TClonesArray * | hitArrayTClones |
pointer to array with cluster data More... | |
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.
hit_t | template parameter specifying cluster class |
recoHit_t | template parameter specifying recoHit |
Definition at line 77 of file GFRecoHitProducer.h.
GFRecoHitProducer< hit_T, recoHit_T >::GFRecoHitProducer | ( | TClonesArray * | theArr | ) |
Constructor takes pointer to the cluster array.
Definition at line 97 of file GFRecoHitProducer.h.
|
virtual |
Definition at line 110 of file GFRecoHitProducer.h.
|
virtual |
Create a RecoHit from the cluster at position index in TClonesArray.
Implements GFAbsRecoHitProducer.
Definition at line 116 of file GFRecoHitProducer.h.
|
private |
pointer to array with cluster data
Definition at line 80 of file GFRecoHitProducer.h.