CMS 3D CMS Logo

CTPPSPixelDigiCollection.h
Go to the documentation of this file.
1 #ifndef CTPPS_CTPPSDigi_CTPPSPixelDigiCollection_h
2 #define CTPPS_CTPPSDigi_CTPPSPixelDigiCollection_h
3 
5 #include <vector>
6 #include <map>
7 #include <utility>
8 
10 public:
11  typedef std::vector<CTPPSPixelDigi>::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 
18 
19  void put(Range input, unsigned int detID);
20  const Range get(unsigned int detID) const;
21  const std::vector<unsigned int> detIDs() const;
22 
23 private:
24  std::vector<CTPPSPixelDigi> container_;
26 };
27 
28 #endif
CTPPSPixelDigiCollection::IndexRange
std::pair< unsigned int, unsigned int > IndexRange
Definition: CTPPSPixelDigiCollection.h:13
CTPPSPixelDigiCollection::container_
std::vector< CTPPSPixelDigi > container_
Definition: CTPPSPixelDigiCollection.h:24
input
static const std::string input
Definition: EdmProvDump.cc:48
CTPPSPixelDigiCollection::RegistryIterator
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
Definition: CTPPSPixelDigiCollection.h:15
CTPPSPixelDigiCollection::Registry
std::map< unsigned int, IndexRange > Registry
Definition: CTPPSPixelDigiCollection.h:14
CTPPSPixelDigiCollection::ContainerIterator
std::vector< CTPPSPixelDigi >::const_iterator ContainerIterator
Definition: CTPPSPixelDigiCollection.h:11
CTPPSPixelDigiCollection::map_
Registry map_
Definition: CTPPSPixelDigiCollection.h:25
CTPPSPixelDigiCollection
Definition: CTPPSPixelDigiCollection.h:9
CTPPSPixelDigiCollection::detIDs
const std::vector< unsigned int > detIDs() const
Definition: CTPPSPixelDigiCollection.cc:45
CTPPSPixelDigi.h
CTPPSPixelDigiCollection::CTPPSPixelDigiCollection
CTPPSPixelDigiCollection()
Definition: CTPPSPixelDigiCollection.h:17
CTPPSPixelDigiCollection::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: CTPPSPixelDigiCollection.h:12
CTPPSPixelDigiCollection::get
const Range get(unsigned int detID) const
Definition: CTPPSPixelDigiCollection.cc:29
CTPPSPixelDigiCollection::put
void put(Range input, unsigned int detID)
Definition: CTPPSPixelDigiCollection.cc:5