CMS 3D CMS Logo

DigiCollectionFP420.h
Go to the documentation of this file.
1 #ifndef DataFormats_DigiCollectionFP420_h
2 #define DataFormats_DigiCollectionFP420_h
3 
4 //#include "SimRomanPot/SimFP420/interface/HDigiFP420.h"
5 //#include "SimRomanPot/DataFormats/interface/HDigiFP420.h"
6 
8 
9 #include <utility>
10 #include <vector>
11 #include <map>
12 #include <iostream>
13 
15 public:
16  typedef std::vector<HDigiFP420>::const_iterator ContainerIterator;
17  typedef std::pair<ContainerIterator, ContainerIterator> Range;
18  typedef std::pair<unsigned int, unsigned int> IndexRange;
19  typedef std::map<unsigned int, IndexRange> Registry;
20  typedef std::map<unsigned int, IndexRange>::const_iterator RegistryIterator;
21  typedef std::map<unsigned int, std::vector<HDigiFP420> > HDigiFP420Container;
22 
24 
25  void put(Range input, unsigned int detID);
26  const Range get(unsigned int detID) const;
27  const Range get1(unsigned int detID) const;
28  const std::vector<unsigned int> detIDs() const;
29 
30  void add(unsigned int& det_id, std::vector<HDigiFP420>& digis);
31  void digis(unsigned int& det_id, std::vector<HDigiFP420>& digis) const;
32  void detIDs(std::vector<unsigned int>& det_ids) const;
33 
34  void putclear(Range input, unsigned int detID);
35  void clear();
36 
37 private:
38  std::vector<HDigiFP420> container_;
39  Registry map_;
40 
41  HDigiFP420Container digiMap_;
42 };
43 
44 #endif
std::map< unsigned int, IndexRange > Registry
std::vector< HDigiFP420 >::const_iterator ContainerIterator
const Range get1(unsigned int detID) const
std::pair< unsigned int, unsigned int > IndexRange
void digis(unsigned int &det_id, std::vector< HDigiFP420 > &digis) const
static std::string const input
Definition: EdmProvDump.cc:48
std::map< unsigned int, std::vector< HDigiFP420 > > HDigiFP420Container
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
void put(Range input, unsigned int detID)
void add(unsigned int &det_id, std::vector< HDigiFP420 > &digis)
void putclear(Range input, unsigned int detID)
HDigiFP420Container digiMap_
std::pair< ContainerIterator, ContainerIterator > Range
const std::vector< unsigned int > detIDs() const
std::vector< HDigiFP420 > container_