//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of resCalc // Uses Tpc GFTrack // calculate residuals th // respect to the PndMCTracks // // // Environment: // Software NOT developed for the PANDA Detector at FAIR. // // Author List: // Sverre Doerheim (original author) // Physik Department E18, TUM // //----------------------------------------------------------- #ifndef MCTRACKRESCALC_H #define MCTRACKRESCALC_H #include "AbsResCalc.h" #include "TpcGFTrackMCTrackResidual.h" // Needs a task that runs it, ala TpcRefTrackResidualTask // instead of giving back a collection of residuals per track it gives back a residual // 1 residual per GFTrack, not the other way around class MCTrackResCalc : public AbsResCalc { public: MCTrackResCalc(); ~MCTrackResCalc(); virtual int calc(); virtual bool init(); void setExtrapolateToMcStartPos(bool ext=true){fExtrapolate=ext;} std::vector getResiduals(){return fResults;} private: TClonesArray* fMcTrackArray; TClonesArray* fGFTrackArray; std::vector fResults; bool fExtrapolate; }; #endif // MCRESCALCTRACK_H