Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

TMuiRoadMapO Class Reference
[Interface Object Containers]

Container for MUID TMutMuiRoadO objects. More...

#include <TMuiRoadMapO.h>

List of all members.

Public Methods

Insertors
 TMuiRoadMapO ()
 TMuiRoadMapO (PHKey::map_key_type map_key)
virtual ~TMuiRoadMapO ()
iterator insert_new (UShort_t arm)
Extractors
iterator get (UShort_t arm)
const_iterator get (UShort_t arm) const

Private Methods

UShort_t get_roll_count ()

Private Attributes

UShort_t _count


Detailed Description

Container for MUID TMutMuiRoadO objects.

TMutMuiRoadMapO - IOC for TMutMuiRoad objects

Definition at line 32 of file TMuiRoadMapO.h.


Constructor & Destructor Documentation

TMuiRoadMapO  
 

Default contructor

Definition at line 6 of file TMuiRoadMapO.cxx.

00006 : _count(0){;}

TMuiRoadMapO PHKey::map_key_type    map_key
 

Construct with key

Definition at line 9 of file TMuiRoadMapO.cxx.

00009 : PHMap<PHKey::key_type, TMuiRoadO, TMuiRoadO_v1>(map_key), _count(0){;}

virtual ~TMuiRoadMapO   [inline, virtual]
 

Virtual destructor

Definition at line 48 of file TMuiRoadMapO.h.

00048 {;}


Member Function Documentation

TMuiRoadMapO::const_iterator get UShort_t    arm const
 

Get a const iterator to all roads in given arm

Definition at line 53 of file TMuiRoadMapO.cxx.

References TMuiKeyGen::get_key_range, and TMuiKeyGen::key_range.

00054 {
00055   // key range associated with this plane
00056   //
00057   TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm);
00058   // return the iterator with specified range
00059   //
00060   Key lower(get_map_key(),range.first);
00061   Key upper(get_map_key(),range.second);
00062   return find(lower,upper);
00063 }

TMuiRoadMapO::iterator get UShort_t    arm
 

Get an iterator to all roads in given arm

Definition at line 39 of file TMuiRoadMapO.cxx.

References TMuiKeyGen::get_key_range, and TMuiKeyGen::key_range.

Referenced by mMuiRoadFinder1::event, and mMuiRoadFinder1::flag_golden.

00040 {
00041   // key range associated with this plane
00042   //
00043   TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm);
00044   // return the iterator with specified range
00045   //
00046   Key lower(get_map_key(),range.first);
00047   Key upper(get_map_key(),range.second);
00048   return find(lower,upper);
00049 }

UShort_t get_roll_count   [inline, private]
 

Definition at line 71 of file TMuiRoadMapO.h.

References _count, and TMuiKeyGen::get_max_index.

Referenced by insert_new.

00071 { return _count++%TMuiKeyGen::get_max_index();}

TMuiRoadMapO::iterator insert_new UShort_t    arm
 

Insert an new TMuiRoadO into map and return an iterator to the newly created object.

Definition at line 12 of file TMuiRoadMapO.cxx.

References TMuiKeyGen::get_key, get_roll_count, and TMuiKeyGen::key_type.

Referenced by mMuiRoadFinder1::find_2droads, mMuiFindRoad::find_roads, and mMuiFastRoadFinder::find_tracks.

00013 {  
00014   // Get the new index from the roll count;
00015   //
00016   UShort_t index = get_roll_count();
00017   
00018   // get the key for the new cluster
00019   //
00020   TMuiKeyGen::key_type key = TMuiKeyGen::get_key(arm,
00021                                                  index);
00022   // full key
00023   //
00024   Key full_key(get_map_key(),key);
00025   
00026   // insert cluster
00027   //
00028   insert(full_key, new value_imp_type(full_key,
00029                                       arm,
00030                                       index));
00031   
00032   // okay not so efficient 
00033   //
00034   return find(full_key);
00035 }


Member Data Documentation

UShort_t _count [private]
 

Definition at line 72 of file TMuiRoadMapO.h.

Referenced by get_roll_count.


The documentation for this class was generated from the following files:
MUIOO: PHENIX Muon Identifier Analysis Framework. Documentation by doxygen
Last modified: