00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __TMUIMCHITMAPO_H__
00009 #define __TMUIMCHITMAPO_H__
00010
00011
00012
00013 #include<boost/smart_ptr.hpp>
00014
00015
00016
00017 #include<TMuiMCHitO_v1.h>
00018 #include<TMuiKeyGen.h>
00019 #include<TMutMapIO.h>
00020 #include<PHMap.h>
00021 #include<PHMapIterator.h>
00022 #include<PHConstMapIterator.h>
00023 #include<PHKeyIterator.h>
00024 #include<PHConstKeyIterator.h>
00025 #include<PHKey.hh>
00026
00028
00029
00034 class TMuiMCHitMapO :
00035 public PHMap<PHKey::key_type, TMuiMCHitO, TMuiMCHitO_v1 >
00036 {
00037
00038 public:
00039
00041
00042
00044 TMuiMCHitMapO();
00045
00047 TMuiMCHitMapO(PHKey::map_key_type map_key);
00048
00050 virtual ~TMuiMCHitMapO() {;}
00051
00053
00054
00058 iterator insert_new(UShort_t arm,
00059 UShort_t plane);
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
00076 const_iterator get(UShort_t arm,
00077 UShort_t plane) const;
00079
00080 private:
00081
00082 UShort_t get_roll_count() { return _count++%TMuiKeyGen::get_max_index();}
00083 UShort_t _count;
00084
00085 };
00086
00087 #endif
00088