fmssim
|
00001 #ifndef _FMS_TRIGGER_YEAR2011MAP_H_ 00002 #define _FMS_TRIGGER_YEAR2011MAP_H_ 00003 00004 // 00005 // Year2011Map.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 "Map.h" 00014 00015 namespace fms { 00016 00017 namespace trigger { 00018 00019 class Region; 00020 00027 class Year2011Map : public Map { 00028 00029 public: 00030 00031 static void SetThresholds(Double_t low, Double_t high); 00032 00033 Year2011Map(); 00034 00035 virtual ~Year2011Map(); 00036 00043 Bool_t Add(Int_t, Region*); 00044 00045 virtual void Draw(Option_t* = ""); 00046 00051 Region* Find(const TVector3&) const; 00052 00053 UInt_t Size() const; 00054 00058 static Year2011Map& Instance(); 00059 00060 protected: 00061 00062 typedef std::map<int, Region*> Type; 00063 00064 Type mRegions; 00065 00066 static Double_t smThresholdLow; 00067 static Double_t smThresholdHigh; 00068 00069 ClassDef(fms::trigger::Year2011Map, 1) 00070 }; 00071 00072 inline UInt_t Year2011Map::Size() const { return mRegions.size(); } 00073 00074 } // namespace trigger 00075 00076 } // namespace fms 00077 00078 #endif