CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripClusterCollection.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_SISTRIPCLUSTERCOLLECTION_H
2 #define DATAFORMATS_SISTRIPCLUSTERCOLLECTION_H
3 
5 #include <vector>
6 #include <map>
7 #include <utility>
8 
10 
11  public:
12  typedef std::vector<SiStripCluster> container;
14  typedef container::const_iterator ContainerIterator;
15  typedef std::pair<ContainerIterator, ContainerIterator> Range;
16  typedef std::pair<unsigned int, unsigned int> IndexRange;
17  typedef std::map<unsigned int, IndexRange> Registry;
18  typedef std::map<unsigned int, IndexRange>::const_iterator RegistryIterator;
19 
21 
22  void put(Range input, unsigned int detID);
23  const Range get(unsigned int detID) const;
24  const std::vector<unsigned int> detIDs() const;
25  size_t size() const { return container_.size(); }
26 
27  private:
29  mutable Registry map_;
30 
31 };
32 
33 #endif //
34 
35 
std::pair< unsigned int, unsigned int > IndexRange
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
std::vector< SiStripCluster > container
const std::vector< unsigned int > detIDs() const
std::map< unsigned int, IndexRange > Registry
Container::value_type value_type
void put(Range input, unsigned int detID)
container::const_iterator ContainerIterator
std::pair< ContainerIterator, ContainerIterator > Range
container::value_type value_type