/** @file * $Source: /home/cvspamela/yoda/event/SubDetector.h,v $ * $Id: SubDetector.h,v 1.6 2004/03/16 10:18:28 nagni Exp $ * $Author: nagni $ * * Header file for the SubDetector class. */ #ifndef SUBDETECTOR_H #define SUBDETECTOR_H #include namespace pamela { /** * This class is just to mark something as specific to a certain * subdetector. The instances of this class are constant and initialized * as static members. */ class SubDetector { private: /** * The name of the subdetector. */ std::string Name; protected: /* * Create a new "SubDetector". Intended to be used only internally. */ SubDetector(std::string name): Name(name) { } public: /** * Get the name of the subdetector. */ std::string GetName(void) const { return Name; } static const SubDetector* Tracker; /**< Tracker */ static const SubDetector* Calorimeter; /**< Calorimeter */ static const SubDetector* Anticoinc; /**< Anticoincidence unit */ static const SubDetector* Trigger; /**< Trigger */ }; } #endif /* SUBDETECTOR_H */