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_;
40 
42 };
43 
44 #endif
DigiCollectionFP420::container_
std::vector< HDigiFP420 > container_
Definition: DigiCollectionFP420.h:38
input
static const std::string input
Definition: EdmProvDump.cc:48
DigiCollectionFP420::IndexRange
std::pair< unsigned int, unsigned int > IndexRange
Definition: DigiCollectionFP420.h:18
DigiCollectionFP420::put
void put(Range input, unsigned int detID)
Definition: DigiCollectionFP420.cc:15
DigiCollectionFP420::ContainerIterator
std::vector< HDigiFP420 >::const_iterator ContainerIterator
Definition: DigiCollectionFP420.h:16
DigiCollectionFP420::digiMap_
HDigiFP420Container digiMap_
Definition: DigiCollectionFP420.h:41
DigiCollectionFP420::digis
void digis(unsigned int &det_id, std::vector< HDigiFP420 > &digis) const
Definition: DigiCollectionFP420.cc:193
DigiCollectionFP420::detIDs
const std::vector< unsigned int > detIDs() const
Definition: DigiCollectionFP420.cc:159
DigiCollectionFP420::putclear
void putclear(Range input, unsigned int detID)
Definition: DigiCollectionFP420.cc:72
DigiCollectionFP420::DigiCollectionFP420
DigiCollectionFP420()
Definition: DigiCollectionFP420.h:23
DigiCollectionFP420::clear
void clear()
Definition: DigiCollectionFP420.cc:71
DigiCollectionFP420::get
const Range get(unsigned int detID) const
Definition: DigiCollectionFP420.cc:102
DigiCollectionFP420
Definition: DigiCollectionFP420.h:14
DigiCollectionFP420::HDigiFP420Container
std::map< unsigned int, std::vector< HDigiFP420 > > HDigiFP420Container
Definition: DigiCollectionFP420.h:21
DigiCollectionFP420::map_
Registry map_
Definition: DigiCollectionFP420.h:39
DigiCollectionFP420::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: DigiCollectionFP420.h:17
DigiCollectionFP420::add
void add(unsigned int &det_id, std::vector< HDigiFP420 > &digis)
Definition: DigiCollectionFP420.cc:179
DigiCollectionFP420::RegistryIterator
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
Definition: DigiCollectionFP420.h:20
DigiCollectionFP420::get1
const Range get1(unsigned int detID) const
Definition: DigiCollectionFP420.cc:131
HDigiFP420.h
DigiCollectionFP420::Registry
std::map< unsigned int, IndexRange > Registry
Definition: DigiCollectionFP420.h:19