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