/////////////////////////////////////////////////////////////////////// // // Loads the data produces by SOCDataProc and runs the peak analysis // on it. The output of the peak finding are the centroid, width and // occupancy per channel. // // Author: Jose Maneira // // REVISION HISTORY: // 19/11/2013 : J.Maneira - First Revision, new file. // 09/07/2015 : R.Stainforth - Added bucket time to the // computation of the transit time // - Changed the PeakFindWide window to // 2.5 sigmas (previously 4.0) for the // global time offset calculation. // - PeakFindNarrow now uses the direct SOCPMT // hit-time information rather than a timing // histogram. // /////////////////////////////////////////////////////////////////////// #ifndef __RAT_SOCPeakProc__ #define __RAT_SOCPeakProc__ #include #include namespace RAT { class SOCPeakProc : public Processor { public: // Constructor, does nothing SOCPeakProc() : Processor( "socPeak" ) { } // empty virtual destructor virtual ~SOCPeakProc() {}; // Called at the end of the run, load the soc data and does the peak finding virtual void EndOfRun( DS::Run& run ); protected: // Called at the end of the run, once per source // // soc: pointer to soc information // run: pointer to run information virtual void GlobalTimeOffset( DS::SOC& soc , DS::Run& run ); }; } // ::RAT #endif