// ======================================== // PndFtsRecoHitProducer // // Class for kalman fitting with genfit for FTS // // This FTS specific reco hit producer was created to be able // to access the tube array TCA from in addition to the hit TCA // when constructing the reco hit. // // It inherits from GFAbsRecoHitProducer and has been written // following the GFRecoHitProducer // ======================================== #include "PndFtsRecoHitProducer.h" #include // template // PndFtsRecoHitProducer::PndFtsRecoHitProducer(TClonesArray* theArr, TClonesArray* theTubeArr) { // hitArrayTClones = theArr; // tubeArrayTClones = theTubeArr; // } // template // PndFtsRecoHitProducer::~PndFtsRecoHitProducer() { // } // template // GFAbsRecoHit* PndFtsRecoHitProducer::produce(int index) { // assert(hitArrayTClones!=NULL); // assert(tubeArrayTClones!=NULL); // if(hitArrayTClones->At(index) == 0) { // GFException e("In PndFtsRecoHitProducer: index for hit in TClonesArray out of bounds",__LINE__,__FILE__); // e.setFatal(); // throw e; // } // return ( new recoHit_T( (hit_T*) hitArrayTClones->At(index), tubeArrayTClones ) ); // }