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

TMuiClusterMapO Class Reference
[Interface Object Containers]

Container for MUID TMuiClusterO objects. More...

#include <TMuiClusterMapO.h>

List of all members.

Public Methods

Insertors
 TMuiClusterMapO ()
 TMuiClusterMapO (PHKey::map_key_type map_key)
virtual ~TMuiClusterMapO ()
iterator insert_new (UShort_t arm, UShort_t plane, UShort_t panel, UShort_t orientation)
Extractors
iterator get (UShort_t arm)
const_iterator get (UShort_t arm) const
iterator get (UShort_t arm, UShort_t plane, UShort_t panel, UShort_t orientation)
const_iterator get (UShort_t arm, UShort_t plane, UShort_t panel, UShort_t orientation) const

Private Methods

UShort_t get_roll_count ()

Private Attributes

UShort_t _count


Detailed Description

Container for MUID TMuiClusterO objects.

TMuiClusterMapO - IOC for TMuiClusterO objects

Definition at line 32 of file TMuiClusterMapO.h.


Constructor & Destructor Documentation

TMuiClusterMapO  
 

Default contructor

Definition at line 6 of file TMuiClusterMapO.cxx.

00006 : _count(0) {;}

TMuiClusterMapO PHKey::map_key_type    map_key
 

Construct with key

Definition at line 8 of file TMuiClusterMapO.cxx.

00008 : PHMap<PHKey::key_type, TMuiClusterO, TMuiClusterO_v2>(map_key), _count(0){;}

virtual ~TMuiClusterMapO   [inline, virtual]
 

Virtual destructor

Definition at line 48 of file TMuiClusterMapO.h.

00048 {;}


Member Function Documentation

TMuiClusterMapO::const_iterator get UShort_t    arm,
UShort_t    plane,
UShort_t    panel,
UShort_t    orientation
const
 

Get a const iterator to all roads in given panel_orientation

Definition at line 96 of file TMuiClusterMapO.cxx.

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

00100 {
00101   // key range associated with this plane
00102   //
00103 TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm,
00104                                                         plane,
00105                                                         panel,
00106                                                         orientation
00107                                                         );
00108   // return the iterator with specified range
00109   //
00110   Key lower(get_map_key(),range.first);
00111   Key upper(get_map_key(),range.second);
00112   return find(lower,upper);
00113 }

TMuiClusterMapO::iterator get UShort_t    arm,
UShort_t    plane,
UShort_t    panel,
UShort_t    orientation
 

Get an iterator to all roads in given panel_orientation

Definition at line 75 of file TMuiClusterMapO.cxx.

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

00079 {
00080   // key range associated with this plane
00081   //
00082   TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm,
00083                                                           plane,
00084                                                           panel,
00085                                                           orientation
00086                                                           );
00087   // return the iterator with specified range
00088   //
00089   Key lower(get_map_key(),range.first);
00090   Key upper(get_map_key(),range.second);
00091   return find(lower,upper);
00092 }

TMuiClusterMapO::const_iterator get UShort_t    arm const
 

Get a const iterator to all roads in given arm

Definition at line 62 of file TMuiClusterMapO.cxx.

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

00063 {
00064   // key range associated with this plane
00065   //
00066   TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm);
00067   // return the iterator with specified range
00068   //
00069   Key lower(get_map_key(),range.first);
00070   Key upper(get_map_key(),range.second);
00071   return find(lower,upper);
00072 }

TMuiClusterMapO::iterator get UShort_t    arm
 

Get an iterator to all roads in given arm

Definition at line 48 of file TMuiClusterMapO.cxx.

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

Referenced by mMuiFindRoad::associate_clusters, mMuiEvalFramework::eval_cluster, TMuiRoadFinder::find, mMuiRoadFinder1::find_1droads, mMuiClusterFinder::find_clusters, mMuiFindRoad::find_roads, and mMuiRoadFinder1::track_seed.

00049 {
00050   // key range associated with this plane
00051   //
00052   TMuiKeyGen::key_range range = TMuiKeyGen::get_key_range(arm);
00053   // return the iterator with specified range
00054   //
00055   Key lower(get_map_key(),range.first);
00056   Key upper(get_map_key(),range.second);
00057   return find(lower,upper);
00058 }

UShort_t get_roll_count   [inline, private]
 

Definition at line 88 of file TMuiClusterMapO.h.

References _count, and TMuiKeyGen::get_max_index.

Referenced by insert_new.

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

TMuiClusterMapO::iterator insert_new UShort_t    arm,
UShort_t    plane,
UShort_t    panel,
UShort_t    orientation
 

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

Definition at line 11 of file TMuiClusterMapO.cxx.

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

Referenced by mMuiClusterFinder::make_new_cluster.

00016 {
00017   // Get the new index from the roll count;
00018   //
00019   UShort_t index = get_roll_count();
00020   
00021   // get the key for the new cluster
00022   //
00023   TMuiKeyGen::key_type key = TMuiKeyGen::get_key(arm,
00024                                                  plane,
00025                                                  panel,
00026                                                  orientation,
00027                                                  index);
00028   // full key
00029   //
00030   Key full_key(get_map_key(),key);
00031   
00032   // insert cluster
00033   //
00034   insert(full_key, new value_imp_type(full_key,
00035                                       arm,
00036                                       plane,
00037                                       panel,
00038                                       orientation,
00039                                       index));
00040   
00041   // okay not so efficient 
00042   //
00043   return find(full_key);
00044 }


Member Data Documentation

UShort_t _count [private]
 

Definition at line 89 of file TMuiClusterMapO.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: