// $Id$ // // File: DCDCTrackHit_factory.h // Created: Mon Oct 16 10:20:07 EDT 2006 // Creator: davidl (on Darwin swire-b241.jlab.org 8.7.0 powerpc) // #ifndef _DCDCTrackHit_factory_ #define _DCDCTrackHit_factory_ #include #include "DCDCTrackHit.h" #include "DCDCWire.h" #include "HDGEOMETRY/DGeometry.h" #define CDC_MAX_RINGS 28 /// Provide CDC track hit objects. Currently, these objects are /// supplied by the simulated data file. Once real data is /// available, this factory will be made to take lower-level /// uncalibrated hit objects and apply calibrations to generate /// the DCDCHit objects. class DCDCTrackHit_factory:public JFactory{ public: DCDCTrackHit_factory(){}; ~DCDCTrackHit_factory(); private: jerror_t init(void); jerror_t brun(JEventLoop *loop, int runnumber); jerror_t evnt(JEventLoop *loop, int eventnumber); ///< Invoked via JEventProcessor virtual method jerror_t erun(void); unsigned int locate(vector&xx,double x); DGeometry *dgeom; vector >cdcwires; int Nstraws[CDC_MAX_RINGS]; bool MATCH_TRUTH_HITS; double CDC_DRIFT_BSCALE_PAR1; double CDC_DRIFT_BSCALE_PAR2; vector cdc_drift_table; double cdc_drift_table_min, cdc_drift_table_max; }; #endif // _DCDCTrackHit_factory_