// $Id$ // // File: DTOFPoint_factory.h // Created: Tue Oct 18 09:50:52 EST 2005 // Creator: remitche (on Linux mantrid00 2.4.20-18.8smp i686) // #ifndef _DTOFPoint_factory_ #define _DTOFPoint_factory_ #include "JANA/JFactory.h" #include "DTOFGeometry_factory.h" #include "DTOFPoint.h" #include "DTOFPaddleHit.h" #include #include /// \htmlonly /// /// /// /// \endhtmlonly /// 2-plane (4-fold) TOF coincidences. The 2-hit coincidences come from DTOFPaddleHit objects /// which are combined into coincidnces between the two planes to form 4-D space points /// which are represented by DTOFPoint objects. using namespace std; class DTOFPoint_factory:public JFactory{ public: DTOFPoint_factory(){}; ~DTOFPoint_factory(){ for (unsigned int i=0;i TOFGeom; class tof_spacetimehit_t { public: tof_spacetimehit_t(){} double x; double y; double t; double pos_cut; //x_cut for horizontal bars, y_cut for vertical bars double t_cut; const DTOFPaddleHit *TOFHit; }; class tof_spacetimehitmatch_t { public: tof_spacetimehitmatch_t(){} double delta_r; double delta_t; tof_spacetimehit_t* dTOFSpacetimeHit_Horizontal; tof_spacetimehit_t* dTOFSpacetimeHit_Vertical; }; private: jerror_t brun(JEventLoop *loop, int eventnumber); ///< Invoked via JEventProcessor virtual method jerror_t evnt(JEventLoop *loop, int eventnumber); ///< Invoked via JEventProcessor virtual method unsigned int MAX_TOFSpacetimeHits; unsigned int MAX_TOFSpacetimeHitMatches; float dPositionMatchCut_DoubleEnded; deque dTOFSpacetimeHitPool; deque dTOFSpacetimeHitMatchPool; }; #endif // _DTOFPoint_factory_