00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __TMUICLUSTERMAPO_H__
00009 #define __TMUICLUSTERMAPO_H__
00010
00011
00012
00013 #include<boost/smart_ptr.hpp>
00014
00015
00016 #include<TMuiClusterO.h>
00017 #include<TMuiKeyGen.h>
00018 #include<TMutMapIO.h>
00019 #include<PHMap.h>
00020 #include<PHMapIterator.h>
00021 #include<PHConstMapIterator.h>
00022 #include<PHKeyIterator.h>
00023 #include<PHConstKeyIterator.h>
00024 #include<PHKey.hh>
00025
00027
00028
00032 class TMuiClusterMapO :
00033 public PHMap<PHKey::key_type, TMuiClusterO, TMuiClusterO_v2 >
00034 {
00035
00036 public:
00037
00039
00040
00042 TMuiClusterMapO();
00043
00045 TMuiClusterMapO(PHKey::map_key_type map_key);
00046
00048 virtual ~TMuiClusterMapO() {;}
00049
00051
00052
00056 iterator insert_new(UShort_t arm,
00057 UShort_t plane,
00058 UShort_t panel,
00059 UShort_t orientation);
00061
00063
00064
00066 iterator get(UShort_t arm);
00067
00069 const_iterator get(UShort_t arm) const;
00070
00072 iterator get(UShort_t arm,
00073 UShort_t plane,
00074 UShort_t panel,
00075 UShort_t orientation
00076 );
00077
00079 const_iterator get(UShort_t arm,
00080 UShort_t plane,
00081 UShort_t panel,
00082 UShort_t orientation
00083 ) const;
00084
00086 private:
00087
00088 UShort_t get_roll_count() { return _count++%TMuiKeyGen::get_max_index();}
00089 UShort_t _count;
00090
00091 };
00092
00093 #endif
00094