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 
16  public:
17 
18  typedef std::vector<HDigiFP420>::const_iterator ContainerIterator;
19  typedef std::pair<ContainerIterator, ContainerIterator> Range;
20  typedef std::pair<unsigned int, unsigned int> IndexRange;
21  typedef std::map<unsigned int, IndexRange> Registry;
22  typedef std::map<unsigned int, IndexRange>::const_iterator RegistryIterator;
23  typedef std::map< unsigned int, std::vector<HDigiFP420> > HDigiFP420Container;
24 
26 
27  void put(Range input, unsigned int detID);
28  const Range get(unsigned int detID) const;
29  const Range get1(unsigned int detID) const;
30  const std::vector<unsigned int> detIDs() const;
31 
32  void add( unsigned int& det_id, std::vector<HDigiFP420>& digis );
33  void digis( unsigned int& det_id, std::vector<HDigiFP420>& digis ) const;
34  void detIDs( std::vector<unsigned int>& det_ids ) const;
35 
36  void putclear(Range input, unsigned int detID);
37  void clear();
38  private:
39 
40  std::vector<HDigiFP420> container_;
41  Registry map_;
42 
43  HDigiFP420Container digiMap_;
44 
45 
46 };
47 
48 #endif
49 
50 
std::map< unsigned int, IndexRange > Registry
std::map< unsigned int, std::vector< HDigiFP420 > > HDigiFP420Container
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:45
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_