fmssim
|
00001 #ifndef _FMS_GEOMETRY_DETECTOR2011_H_ 00002 #define _FMS_GEOMETRY_DETECTOR2011_H_ 00003 00004 // 00005 // Detector2011.h 00006 // 00007 // Created by TB on 9/16/11. 00008 // Copyright 2011 BNL. All rights reserved. 00009 // 00010 00011 #include <map> 00012 00013 #include "Geometry.h" 00014 00015 #include "Detector.h" 00016 00017 namespace fms { 00018 00019 namespace geometry { 00020 00026 class Detector2011 : public Detector { 00027 00028 public: 00029 00033 Detector2011(); 00034 00038 virtual ~Detector2011(); 00039 00044 virtual Cell* Find(const TVector3& point) const; 00045 00049 virtual UInt_t Size() const; 00050 00061 virtual void Draw(Option_t* option = ""); 00062 00067 virtual Detector* Get(ESubDetector) const; 00068 00069 protected: 00070 00071 typedef std::map<char, Detector*> Table; 00072 00073 Table mSubSystems; 00074 00075 ClassDef(fms::geometry::Detector2011, 1) 00076 }; 00077 00078 inline UInt_t Detector2011::Size() const { return mSubSystems.size(); } 00079 00080 } // namespace geometry 00081 00082 } // namespace fms 00083 00084 #endif