// $Id$ // // File: DEventProcessor_trackeff_hists2.h // Created: Wed Oct 10 13:30:37 EDT 2007 // Creator: davidl (on Darwin fwing-dhcp95.jlab.org 8.10.1 i386) // #ifndef _DEventProcessor_trackeff_hists2_ #define _DEventProcessor_trackeff_hists2_ #include #include #include #include using std::map; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "track2.h" #include "DTrackingResolution.h" #include "DTrackingResolutionGEANT.h" class DReferenceTrajectory; class DCoordinateSystem; class DEventProcessor_trackeff_hists2:public JEventProcessor{ public: DEventProcessor_trackeff_hists2(); ~DEventProcessor_trackeff_hists2(); TTree *trkeff; track2 trk; track2 *trk_ptr; bool Search_ChargedTrackHypotheses(JEventLoop *loop, int eventnumber, const DMCThrown *mcthrown); bool Search_WireBasedTracks(JEventLoop *loop, int eventnumber, const DMCThrown *mcthrown); bool Search_TrackCandidates(JEventLoop *loop, int eventnumber, const DMCThrown *mcthrown); private: DParticleID *dPIDAlgorithm; bool use_rt_thrown; 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 bool isReconstructable(const DMCThrown *mcthrown, vector &mctrajpoints); DTrackingResolution *trkres; pthread_mutex_t mutex; DReferenceTrajectory *rt_thrown; double CDCZmin, CDCZmax; int DEBUG; void FindLR(vector &wires, const DReferenceTrajectory *crt, vector &LRhits); void FindLR(vector &wires, vector &trajpoints, vector &LRhits); }; #endif // _DEventProcessor_trackeff_hists2_