LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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... | |
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 78 of file GFRecoHitProducer.h.
GFRecoHitProducer< hit_T, recoHit_T >::GFRecoHitProducer | ( | TClonesArray * | theArr | ) |
Constructor takes pointer to the cluster array.
Definition at line 98 of file GFRecoHitProducer.h.
|
virtual |
Definition at line 111 of file GFRecoHitProducer.h.
|
virtual |
Create a RecoHit from the cluster at position index in TClonesArray.
Implements GFAbsRecoHitProducer.
Definition at line 117 of file GFRecoHitProducer.h.
References GFException::setFatal().
|
private |
pointer to array with cluster data
Definition at line 81 of file GFRecoHitProducer.h.