// $Id$ // // File: DBCALMCResponse_factory.h // Created: Thu Nov 17 09:56:05 CST 2005 // Creator: gluexuser (on Linux hydra.phys.uregina.ca 2.4.20-8smp i686) // #ifndef _DBCALMCResponse_factory_ #define _DBCALMCResponse_factory_ #include #include using namespace jana; #include "BCAL/DBCALMCResponse.h" #include "DRandom.h" class DBCALMCResponse_factory:public JFactory{ public: DBCALMCResponse_factory(); ~DBCALMCResponse_factory(){}; private: jerror_t evnt(JEventLoop *loop, int eventnumber); ///< Invoked via JEventProcessor virtual method jerror_t init( void ); // mock up the sampling fraction smearing float samplingSmear( float E ); float timeSmear( float t, float E ); int getDarkHits(); float m_cellThresholdOuter; float m_cellThresholdInner; float m_samplingCoefA; float m_samplingCoefB; float m_timediffCoefA; float m_timediffCoefB; float m_darkRate_GHz; float m_xTalk_fract; float m_intWindow_ns; float m_devicePDE; float m_photonsPerSidePerMeVInFiber; float m_sampling_fract; float m_maxOccupancy_fract; DRandom m_randomGen; }; #endif // _DBCALMCResponse_factory_