CMS 3D CMS Logo

ClusterCollectionFP420.h
Go to the documentation of this file.
1 #ifndef ClusterCollectionFP420_h
2 #define ClusterCollectionFP420_h
3 
5 #include <vector>
6 #include <map>
7 #include <utility>
8 
10 public:
11  typedef std::vector<ClusterFP420>::const_iterator ContainerIterator;
12  typedef std::pair<ContainerIterator, ContainerIterator> Range;
13  typedef std::pair<unsigned int, unsigned int> IndexRange;
14  typedef std::map<unsigned int, IndexRange> Registry;
15  typedef std::map<unsigned int, IndexRange>::const_iterator RegistryIterator;
16  typedef std::map<unsigned int, std::vector<ClusterFP420> > ClusterFP420Container;
17 
19  // ClusterCollectionFP420() {
20  // container_.clear();
21  //}
22 
23  // virtual ~ClusterCollectionFP420(){
24  // delete ClusterCollectionFP420
25  // cout << " ClusterCollectionFP420h: delete ClusterCollectionFP420 " << endl;
26  // }
27 
28  void put(Range input, unsigned int detID);
29  const Range get(unsigned int detID) const;
30  const std::vector<unsigned int> detIDs() const;
31  void putclear(Range input, unsigned int detID);
32  void clear();
33 
34 private:
35  std::vector<ClusterFP420> container_;
37 
39 };
40 
41 #endif //
ClusterCollectionFP420::IndexRange
std::pair< unsigned int, unsigned int > IndexRange
Definition: ClusterCollectionFP420.h:13
ClusterCollectionFP420::container_
std::vector< ClusterFP420 > container_
Definition: ClusterCollectionFP420.h:35
input
static const std::string input
Definition: EdmProvDump.cc:48
ClusterCollectionFP420
Definition: ClusterCollectionFP420.h:9
ClusterCollectionFP420::clusterMap_
ClusterFP420Container clusterMap_
Definition: ClusterCollectionFP420.h:38
ClusterCollectionFP420::clear
void clear()
Definition: ClusterCollectionFP420.cc:97
ClusterCollectionFP420::ClusterFP420Container
std::map< unsigned int, std::vector< ClusterFP420 > > ClusterFP420Container
Definition: ClusterCollectionFP420.h:16
ClusterCollectionFP420::RegistryIterator
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
Definition: ClusterCollectionFP420.h:15
ClusterCollectionFP420::ClusterCollectionFP420
ClusterCollectionFP420()
Definition: ClusterCollectionFP420.h:18
ClusterFP420.h
ClusterCollectionFP420::Registry
std::map< unsigned int, IndexRange > Registry
Definition: ClusterCollectionFP420.h:14
ClusterCollectionFP420::putclear
void putclear(Range input, unsigned int detID)
Definition: ClusterCollectionFP420.cc:98
ClusterCollectionFP420::get
const Range get(unsigned int detID) const
Definition: ClusterCollectionFP420.cc:69
ClusterCollectionFP420::ContainerIterator
std::vector< ClusterFP420 >::const_iterator ContainerIterator
Definition: ClusterCollectionFP420.h:11
ClusterCollectionFP420::detIDs
const std::vector< unsigned int > detIDs() const
Definition: ClusterCollectionFP420.cc:128
ClusterCollectionFP420::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: ClusterCollectionFP420.h:12
ClusterCollectionFP420::put
void put(Range input, unsigned int detID)
Definition: ClusterCollectionFP420.cc:13
ClusterCollectionFP420::map_
Registry map_
Definition: ClusterCollectionFP420.h:36