#include <TMuiMCHitMapO.h>
Public Methods | |
Insertors | |
TMuiMCHitMapO () | |
TMuiMCHitMapO (PHKey::map_key_type map_key) | |
virtual | ~TMuiMCHitMapO () |
iterator | insert_new (UShort_t arm, UShort_t plane) |
Extractors | |
iterator | get (UShort_t arm) |
const_iterator | get (UShort_t arm) const |
iterator | get (UShort_t arm, UShort_t plane) |
const_iterator | get (UShort_t arm, UShort_t plane) const |
Private Methods | |
UShort_t | get_roll_count () |
Private Attributes | |
UShort_t | _count |
TMutMCHitMapO - IOC for TMutMCHitO objects
Definition at line 34 of file TMuiMCHitMapO.h.
|
Default contructor Definition at line 6 of file TMuiMCHitMapO.cxx.
00006 : _count(0) {;} |
|
Construct with key Definition at line 9 of file TMuiMCHitMapO.cxx.
00009 : 00010 PHMap<PHKey::key_type, TMuiMCHitO, TMuiMCHitO_v1>(map_key), _count(0){;} |
|
Virtual destructor Definition at line 50 of file TMuiMCHitMapO.h.
00050 {;} |
|
Get a const iterator to all roads in given panel_orientation Definition at line 88 of file TMuiMCHitMapO.cxx. References TMuiKeyGen::get_key_range, and TMuiKeyGen::key_range.
00090 { 00091 // key range associated with this plane 00092 // 00093 TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm, 00094 plane); 00095 Key lower(get_map_key(),range.first); 00096 Key upper(get_map_key(),range.second); 00097 return find(lower,upper); 00098 } |
|
Get an iterator to all roads in given panel_orientation Definition at line 72 of file TMuiMCHitMapO.cxx. References TMuiKeyGen::get_key_range, and TMuiKeyGen::key_range.
00074 { 00075 // key range associated with this plane 00076 // 00077 TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm, 00078 plane); 00079 00080 00081 Key lower(get_map_key(),range.first); 00082 Key upper(get_map_key(),range.second); 00083 return find(lower,upper); 00084 00085 } |
|
Get a const iterator to all roads in given arm Definition at line 57 of file TMuiMCHitMapO.cxx. References TMuiKeyGen::get_key, and TMuiKeyGen::key_type.
00058 { 00059 // key range associated with this plane 00060 // 00061 TMuiKeyGen::key_type lower_key = TMuiKeyGen::get_key(arm,0); 00062 TMuiKeyGen::key_type upper_key = TMuiKeyGen::get_key(arm+1,0)-1; 00063 00064 // return the iterator with specified range 00065 // 00066 Key lower(get_map_key(),lower_key); 00067 Key upper(get_map_key(),upper_key); 00068 return find(lower,upper); 00069 } |
|
Get an iterator to all roads in given arm Definition at line 42 of file TMuiMCHitMapO.cxx. References TMuiKeyGen::get_key, and TMuiKeyGen::key_type.
00043 { 00044 // key range associated with this plane 00045 // 00046 TMuiKeyGen::key_type lower_key = TMuiKeyGen::get_key(arm,0); 00047 TMuiKeyGen::key_type upper_key = TMuiKeyGen::get_key(arm+1,0)-1; 00048 // return the iterator with specified range 00049 // 00050 Key lower(get_map_key(),lower_key); 00051 Key upper(get_map_key(),upper_key); 00052 return find(lower,upper); 00053 } |
|
Definition at line 82 of file TMuiMCHitMapO.h. References _count, and TMuiKeyGen::get_max_index. Referenced by insert_new.
00082 { return _count++%TMuiKeyGen::get_max_index();} |
|
Insert an new TMuiMCHitO into map and return an iterator to the newly created object. Definition at line 13 of file TMuiMCHitMapO.cxx. References TMuiKeyGen::get_key, get_roll_count, and TMuiKeyGen::key_type. Referenced by mMuiSlowSim::digitize.
00015 { 00016 00017 UShort_t index = get_roll_count(); 00018 00019 // get the key for new object 00020 // 00021 TMuiKeyGen::key_type key = TMuiKeyGen::get_key(arm, 00022 plane, 00023 index); 00024 // full key 00025 // 00026 Key full_key(get_map_key(),key); 00027 00028 // insert 00029 // 00030 insert(full_key, new value_imp_type(full_key, 00031 arm, 00032 plane, 00033 index)); 00034 00035 // okay not so efficient 00036 // 00037 return find(full_key); 00038 } |
|
Definition at line 83 of file TMuiMCHitMapO.h. Referenced by get_roll_count. |