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

TMuiHitMapO.h

Go to the documentation of this file.
00001 //
00002 // Interface Object Container Class : TMuiHitMapO
00003 // Author: Jason Newby
00004 // Date: 02/12/03
00005 // Description: Cotainer class for mui hit
00006 //
00007 
00008 #ifndef __TMUIHITMAPO_H__
00009 #define __TMUIHITMAPO_H__
00010 
00011 // BOOST header
00012 //
00013 #include<boost/smart_ptr.hpp>
00014 // PHENIX headers
00015 //
00016 #include<TMuiHitO.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 TMuiHitMapO :
00033 public PHMap<PHKey::key_type, TMuiHitO, TMuiHitO_v1 >
00034 {
00035 
00036  public:
00037   
00039 
00040 
00042   TMuiHitMapO();
00043 
00045   TMuiHitMapO(PHKey::map_key_type map_key);  
00046 
00048   virtual ~TMuiHitMapO() {;}
00049 
00051 
00052 
00056   iterator insert_new(UShort_t arm,
00057                       UShort_t plane,
00058                       UShort_t panel,
00059                       UShort_t orientation,
00060                       UShort_t twopack); 
00061 
00062   iterator insert_clone(const TMuiHitMapO::pointer hit_ptr);
00064 
00066 
00067   
00069   iterator get(UShort_t arm);  
00070   
00072   const_iterator get(UShort_t arm) const; 
00073 
00075   iterator get(UShort_t arm,
00076                UShort_t plane,
00077                UShort_t panel,
00078                UShort_t orientation
00079                );
00080 
00082   const_iterator get(UShort_t arm,
00083                      UShort_t plane,
00084                      UShort_t panel,
00085                      UShort_t orientation
00086                      ) const;
00087 
00089   iterator get(UShort_t arm,
00090                UShort_t plane,
00091                UShort_t panel,
00092                UShort_t orientation,
00093                UShort_t twopack
00094                );
00095 
00097   const_iterator get(UShort_t arm,
00098                      UShort_t plane,
00099                      UShort_t panel,
00100                      UShort_t orientation,
00101                      UShort_t twopack
00102                      ) const;
00103 
00105  private:
00106   
00107   UShort_t get_roll_count() { return _count++%TMuiKeyGen::get_max_index();}
00108   UShort_t _count;
00109   
00110 };
00111 
00112 #endif
00113 
00114 
00115 
00116 
00117 
00118 
00119 

MUIOO: PHENIX Muon Identifier Analysis Framework. Documentation by doxygen
Last modified: