//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Implementation of resCalc // Uses MC Points and calculates // residua in XYZ. // // Environment: // Software developed for the PANDA Detector at FAIR. // // Author List: // Johannes Rauch // Physik Department E18, TUM // //----------------------------------------------------------- #ifndef TPCMCRESCALCCLUSTER_HH #define TPCMCRESCALCCLUSTER_HH #include "AbsRefTrackResCalc.h" #include "TpcCluster.h" #include "TpcPoint.h" bool sortPoints(TpcPoint* p1, TpcPoint* p2); bool sortClusters(TpcCluster* c1, TpcCluster* c2); class TpcMCResCalcCluster : public AbsRefTrackResCalc { public: TpcMCResCalcCluster(); virtual ~TpcMCResCalcCluster(); virtual int calc(); virtual bool init(); void skipSecondaries(bool opt=true){fskipSecondaries = opt;} private: TClonesArray* fTpcPointArray; TClonesArray* fTpcClusterArray; TString fTpcPointBranch; bool fskipSecondaries; // analyze only clusters from primary tracks public: ClassDef(TpcMCResCalcCluster,1) }; #endif