1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef CTPPS_CTPPSDigi_CTPPSPixelDigiCollection_h
#define CTPPS_CTPPSDigi_CTPPSPixelDigiCollection_h
#include "DataFormats/CTPPSDigi/interface/CTPPSPixelDigi.h"
#include <vector>
#include <map>
#include <utility>
class CTPPSPixelDigiCollection {
public:
typedef std::vector<CTPPSPixelDigi>::const_iterator ContainerIterator;
typedef std::pair<ContainerIterator, ContainerIterator> Range;
typedef std::pair<unsigned int, unsigned int> IndexRange;
typedef std::map<unsigned int, IndexRange> Registry;
typedef std::map<unsigned int, IndexRange>::const_iterator RegistryIterator;
CTPPSPixelDigiCollection() {}
void put(Range input, unsigned int detID);
const Range get(unsigned int detID) const;
const std::vector<unsigned int> detIDs() const;
private:
std::vector<CTPPSPixelDigi> container_;
Registry map_;
};
#endif
|