#ifndef TBeamDataSingleton_h #define TBeamDataSingleton_h #include #include #include #include #include /// Singleton class for providing beam summary data information to /// control samples for diagnostic purposes. /// Originally written by Hiro Tanaka. /// Copied to oaBeamData by Thomas Lindner. namespace COMET { class IBeamDataSingleton{ public: ~IBeamDataSingleton(){;}; /// Get a reference to the singleton instance of dummy /// database information. static COMET::IRawBeamData& Get(void); private: IBeamDataSingleton(); IBeamDataSingleton(const IBeamDataSingleton& src){}; /// static pointer to singleton instance static IBeamDataSingleton* fRawBeamDataSingleton; COMET::IRawBeamData* fRawBeamData; }; } #endif