// $Id: DFCALShower_factory.h 1899 2006-07-13 16:29:56Z davidl $ // // File: DFCALShower_factory.h // Created: Tue May 17 11:57:50 EST 2005 // Creator: remitche (on Linux mantrid00 2.4.20-18.8smp i686) // Edited: B. Schaefer 3/23/2012 removed radiation hard insert functionality #ifndef _DFCALShower_factory_ #define _DFCALShower_factory_ #include #include #include #include #include class DFCALShower_factory:public JFactory{ public: DFCALShower_factory(); ~DFCALShower_factory(){}; private: jerror_t evnt(JEventLoop *eventLoop, int eventnumber); ///< Invoked via JEventProcessor virtual method jerror_t brun(JEventLoop *loop, int runnumber); void GetCorrectedEnergyAndPosition(const DFCALCluster* cluster, double &Ecorrected, DVector3 &pos_corrected, double &errZ, const DVector3 *aVertex); double m_zTarget,m_FCALback,m_FCALfront; double SHOWER_ENERGY_THRESHOLD; double NON_LIN_COEF_A; double NON_LIN_COEF_B; double NON_LIN_COEF_C; double NON_LIN_COEF_alfa; double SHOWER_TIMING_WINDOW; double FCAL_RADIATION_LENGTH; double FCAL_CRITICAL_ENERGY; double FCAL_SHOWER_OFFSET; double FCAL_C_EFFECTIVE; // Calibration constants // merging clusters, if any, should be done after matching sharged tracks //double MIN_CLUSTER_SEPARATION; // minimum separation between 2 clusters for them NOT to be merged }; #endif // _DFCALShower_factory_