// $Id: DEventProcessor_track_hists.h 3708 2008-05-14 07:31:16Z davidl $ // // File: DEventProcessor_track_hists.h // Created: Sun Apr 24 06:45:21 EDT 2005 // Creator: davidl (on Darwin Harriet.local 7.8.0 powerpc) // #ifndef _DEventProcessor_track_hists_ #define _DEventProcessor_track_hists_ #include #include using std::map; #include #include #include #include #include #include #include #include #include #include #include #include #include "track.h" #include "dchit.h" class DEventProcessor_track_hists:public JEventProcessor{ public: DEventProcessor_track_hists(); ~DEventProcessor_track_hists(); TTree *trkeff; track trk; track *trk_ptr; TTree *cdchits; dchit cdchit; dchit *cdchit_ptr; typedef vector CDChitv; private: jerror_t init(void); ///< Invoked via DEventProcessor virtual method jerror_t brun(JEventLoop *loop, int runnumber); jerror_t evnt(JEventLoop *loop, int eventnumber); ///< Invoked via DEventProcessor virtual method jerror_t erun(void); ///< Invoked via DEventProcessor virtual method jerror_t fini(void); ///< Invoked via DEventProcessor virtual method void GetCDCHits(const DKinematicData *p, CDChitv &inhits, CDChitv &outhits); void GetCDCHitsFromTruth(int trackno, CDChitv &outhits); unsigned int FindMatch(CDChitv &thrownhits, vector &candidate_hits, CDChitv &matched_hits); void FindCDCTrackNumbers(JEventLoop *loop); DMagneticFieldMap *bfield; DReferenceTrajectory *ref; double MAX_HIT_DIST_CDC; double MAX_HIT_DIST_FDC; map cdclink; pthread_mutex_t mutex; pthread_mutex_t rt_mutex; }; #endif // _DEventProcessor_track_hists_