//////////////////////////////////////////////////////////////////////// /// \class RAT::FlasherCrossTalk /// /// \brief Generates cross talk with zero integrated charge for flasher simulations /// /// \author J Walker /// /// REVISION HISTORY:\n /// 09/04/2015 : J Walker - New file. /// /// \details Generates noise for flasher simulations only. Not to be used for other processes /// //////////////////////////////////////////////////////////////////////// #ifndef __RAT_FlasherCrossTalk_hh__ #define __RAT_FlasherCrossTalk_hh__ #include #include #include #include namespace RAT { class FlasherCrossTalk { public: FlasherCrossTalk(){ }; ~FlasherCrossTalk(){ }; /// This method initializes the settings from the ratdb void BeginOfRun(); /// Generate noise hits for the MC event void GenerateFlasherCrossTalk(DS::Run& run, DS::Entry& ds); private: /// Generate a noise hit on a channel void GenerateNoiseHit( DS::MCHits& mcHits, const Int_t lcn, const Double_t time ); Bool_t fXTalkFlag; ///< True if flasher cross talk should be generated Int_t fNumChannels; ///< Number of daq channels Double_t fLowGainFactorDB; ///< factor that attenuates low gain charges }; }// ::RAT #endif // __RAT_FlasherCrossTalk_hh__