Analysis Software
Documentation for sPHENIX simulation software
|
Template class for a measurement producer module. More...
#include <GenFit/blob/master/core/include/MeasurementProducer.h>
Public Member Functions | |
MeasurementProducer (TClonesArray *) | |
Constructor takes pointer to the hit array. | |
virtual | ~MeasurementProducer () |
virtual AbsMeasurement * | produce (int index, const TrackCandHit *hit) |
Create a Measurement from the cluster at position index in TClonesArray. | |
Public Member Functions inherited from genfit::AbsMeasurementProducer< genfit::AbsMeasurement > | |
virtual | ~AbsMeasurementProducer () |
Private Attributes | |
TClonesArray * | hitArrayTClones_ |
pointer to array with cluster data | |
Template class for a measurement producer module.
A MeasurementProducer module is used by MeasurementFactory to create Measurements for one specific detector type.
It is assumed that each detector has as output of its digitization / clustering some sort of hit or cluster class which stores all information that corresponds to a measured hit in that detector. The MeasurementProducer converts this information into a class that can be handled by genfit. This class is realized as a Measurement (a class inheriting from AbsMeasurement).
In order to use the MeasurementProducer facility, a Measurement has to implement a constructor which takes as an argument a pointer to the cluster class and a TrackCandHit. This constructor serves as the initializing constructor for the Measurement.
The MeasurementProducer will fetch the cluster objects from a TClonesArray and use the initializing constructor to build the corresponding Measurement.
hit_t | template parameter specifying hit/cluster class |
measurement_T | template parameter specifying Measurement |
Definition at line 76 of file MeasurementProducer.h.
View newest version in sPHENIX GitHub at line 76 of file MeasurementProducer.h
|
explicit |
Constructor takes pointer to the hit array.
Definition at line 94 of file MeasurementProducer.h.
View newest version in sPHENIX GitHub at line 94 of file MeasurementProducer.h
|
virtual |
Definition at line 100 of file MeasurementProducer.h.
View newest version in sPHENIX GitHub at line 100 of file MeasurementProducer.h
|
virtual |
Create a Measurement from the cluster at position index in TClonesArray.
Implements genfit::AbsMeasurementProducer< genfit::AbsMeasurement >.
Definition at line 105 of file MeasurementProducer.h.
View newest version in sPHENIX GitHub at line 105 of file MeasurementProducer.h
References assert, Acts::UnitConstants::e, and genfit::Exception::setFatal().
|
private |
pointer to array with cluster data
Definition at line 79 of file MeasurementProducer.h.
View newest version in sPHENIX GitHub at line 79 of file MeasurementProducer.h