3 #ifndef PNDFTSRECOHITPRODUCER2_H
4 #define PNDFTSRECOHITPRODUCER2_H
11 #include "TClonesArray.h"
18 template <
class hit_T,
class measurement_T>
33 template <
class hit_T,
class measurement_T>
35 hitArrayTClones = theArr;
36 tubeArrayTClones = theTubeArr;
39 template <
class hit_T,
class measurement_T>
41 delete(tubeArrayTClones);
45 template <
class hit_T,
class measurement_T>
47 assert(hitArrayTClones!=NULL);
48 assert(tubeArrayTClones!=NULL);
49 if(hitArrayTClones->At(index) == 0) {
50 genfit::Exception e(
"In PndFtsRecoHitProducer2: index for hit in TClonesArray out of bounds",__LINE__,__FILE__);
55 return (
new measurement_T( (hit_T*) hitArrayTClones->At(index),
hit, tubeArrayTClones ) );
Abstract interface class for MeasurementProducer.
virtual genfit::WireMeasurement * produce(int index, const genfit::TrackCandHit *hit)
Virtual abstract method to produce a Measurement. Implemented in MeasurementProducer.
TClonesArray * tubeArrayTClones
Hit object for use in TrackCand. Provides IDs and sorting parameters.
Class for measurements in wire detectors (Straw tubes and drift chambers) which do not measure the co...
TClonesArray * hitArrayTClones
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
PndFtsRecoHitProducer2(TClonesArray *, TClonesArray *)
void setFatal(bool b=true)
Set fatal flag.
virtual ~PndFtsRecoHitProducer2()