#include <DataFormats/FP420Cluster/interface/RecoCollectionFP420.h>
Public Types | |
typedef std::vector< RecoFP420 > ::const_iterator | ContainerIterator |
typedef std::pair< unsigned int, unsigned int > | IndexRange |
typedef std::pair < ContainerIterator, ContainerIterator > | Range |
typedef std::map< unsigned int, std::vector< RecoFP420 > > | RecoFP420Container |
typedef std::map< unsigned int, IndexRange > | Registry |
typedef std::map< unsigned int, IndexRange >::const_iterator | RegistryIterator |
Public Member Functions | |
void | clear () |
const Range | get (unsigned int stationID) const |
void | put (Range input, unsigned int stationID) |
void | putclear (Range input, unsigned int stationID) |
RecoCollectionFP420 () | |
const std::vector< unsigned int > | stationIDs () const |
Private Attributes | |
std::vector< RecoFP420 > | container_ |
Registry | map_ |
RecoFP420Container | trackMap_ |
Definition at line 9 of file RecoCollectionFP420.h.
typedef std::vector<RecoFP420>::const_iterator RecoCollectionFP420::ContainerIterator |
Definition at line 13 of file RecoCollectionFP420.h.
typedef std::pair<unsigned int, unsigned int> RecoCollectionFP420::IndexRange |
Definition at line 15 of file RecoCollectionFP420.h.
typedef std::pair<ContainerIterator, ContainerIterator> RecoCollectionFP420::Range |
Definition at line 14 of file RecoCollectionFP420.h.
typedef std::map< unsigned int, std::vector<RecoFP420> > RecoCollectionFP420::RecoFP420Container |
Definition at line 18 of file RecoCollectionFP420.h.
typedef std::map<unsigned int, IndexRange> RecoCollectionFP420::Registry |
Definition at line 16 of file RecoCollectionFP420.h.
typedef std::map<unsigned int, IndexRange>::const_iterator RecoCollectionFP420::RegistryIterator |
Definition at line 17 of file RecoCollectionFP420.h.
RecoCollectionFP420::RecoCollectionFP420 | ( | ) | [inline] |
Definition at line 101 of file RecoCollectionFP420.cc.
References container_.
00101 { 00102 container_.clear(); 00103 }
const RecoCollectionFP420::Range RecoCollectionFP420::get | ( | unsigned int | stationID | ) | const |
Definition at line 71 of file RecoCollectionFP420.cc.
References container_, GenMuonPlsPt100GeV_cfg::cout, and map_.
00071 { 00072 // get RecHits of stationID 00073 00074 #ifdef mydigidebug 00075 std::cout <<"RecoCollectionFP420::get:stationID= " << stationID << std::endl; 00076 #endif 00077 RecoCollectionFP420::RegistryIterator returnIndex = map_.find(stationID); 00078 RecoCollectionFP420::IndexRange returnIndexRange = returnIndex->second; 00079 #ifdef mydigidebug 00080 std::cout <<"RecoCollectionFP420::get1: returnIndexRange.first= " << returnIndexRange.first << std::endl; 00081 std::cout <<"RecoCollectionFP420::get1: returnIndexRange.second= " << returnIndexRange.second << std::endl; 00082 #endif 00083 00084 RecoCollectionFP420::Range returnRange; 00085 returnRange.first = container_.begin()+returnIndexRange.first; 00086 if(returnIndexRange.second != 0 ) { 00087 returnRange.second = container_.begin()+returnIndexRange.second+1; 00088 }else{ 00089 returnRange.second = container_.begin()+returnIndexRange.second; 00090 } 00091 #ifdef mydigidebug 00092 std::cout <<"RecoCollectionFP420::get2: container_.size() = " << container_.size() << std::endl; 00093 std::cout <<"RecoCollectionFP420::get2: returnIndexRange.first= " << returnIndexRange.first << std::endl; 00094 std::cout <<"RecoCollectionFP420::get2: returnIndexRange.second= " << returnIndexRange.second << std::endl; 00095 #endif 00096 return returnRange; 00097 }
const std::vector< unsigned int > RecoCollectionFP420::stationIDs | ( | ) | const |
Definition at line 141 of file RecoCollectionFP420.cc.
References GenMuonPlsPt100GeV_cfg::cout, map_, and output().
00141 { 00142 // returns vector of stationIDs in map 00143 00144 #ifdef mydigidebug 00145 std::cout <<"RecoCollectionFP420::stationIDs:start " << std::endl; 00146 #endif 00147 RecoCollectionFP420::RegistryIterator begin = map_.begin(); 00148 RecoCollectionFP420::RegistryIterator end = map_.end(); 00149 00150 std::vector<unsigned int> output; 00151 00152 for (; begin != end; ++begin) { 00153 output.push_back(begin->first); 00154 } 00155 00156 return output; 00157 00158 }
std::vector<RecoFP420> RecoCollectionFP420::container_ [mutable, private] |
Registry RecoCollectionFP420::map_ [mutable, private] |
RecoFP420Container RecoCollectionFP420::trackMap_ [mutable, private] |
Definition at line 41 of file RecoCollectionFP420.h.