fmssim
|
00001 #ifndef _FMS_GEOMETRY_SUBDETECTOR_H_ 00002 #define _FMS_GEOMETRY_SUBDETECTOR_H_ 00003 00004 // 00005 // SubDetector.h 00006 // 00007 // Created by TB on 9/16/11. 00008 // Copyright 2011 BNL. All rights reserved. 00009 // 00010 00011 #include <list> 00012 00013 #include "Detector.h" 00014 00015 class TVector3; 00016 00017 namespace fms { 00018 00019 namespace geometry { 00020 00021 class Cell; 00022 00027 class SubDetector : public Detector { 00028 00029 public: 00030 00031 virtual ~SubDetector(); 00032 00033 virtual UInt_t Size() const; 00034 00035 virtual void Draw(Option_t* = ""); 00036 00037 virtual Cell* Find(const TVector3&) const; 00038 00039 protected: 00040 00041 std::list<Cell*> mCells; 00042 00043 ClassDef(fms::geometry::SubDetector, 1) 00044 }; 00045 00046 inline UInt_t SubDetector::Size() const { return mCells.size(); } 00047 00048 } // namespace geometry 00049 00050 } // namespace fms 00051 00052 #endif