CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripApvGain.h
Go to the documentation of this file.
1 #ifndef SiStripApvGain_h
2 #define SiStripApvGain_h
3 
4 #include<vector>
5 #include<map>
6 #include<iostream>
7 #include<boost/cstdint.hpp>
8 
21 
22  public:
23 
24  typedef std::vector<float>::const_iterator ContainerIterator;
25  typedef std::pair<ContainerIterator, ContainerIterator> Range;
26  typedef std::vector<unsigned int> Registry;
27  typedef Registry::iterator RegistryIterator;
28  typedef Registry::const_iterator RegistryConstIterator;
29  typedef std::vector<float> InputVector;
30 
31 
41 
44  };
45 
48 
51  p.detid_begin=v_detids.begin();
52  p.detid_end=v_detids.end();
53  p.ibegin_begin=v_ibegin.begin();
54  p.ibegin_end=v_ibegin.end();
55  p.iend_begin=v_iend.begin();
56  p.iend_end=v_iend.end();
57  p.v_begin=v_gains.begin();
58  p.v_end=v_gains.end();
59 
60  return p;
61 }
62 
63 
64  bool put(const uint32_t& detID, Range input);
65  const Range getRange(const uint32_t& detID) const;
66  void getDetIds(std::vector<uint32_t>& DetIds_) const;
67 
68  float getStripGain (const uint16_t& strip, const Range& range) const;
69  float getApvGain (const uint16_t& apv, const Range& range) const;
70 
71  void printDebug(std::stringstream & ss) const;
72  void printSummary(std::stringstream & ss) const;
73 
74  private:
75 
76  std::vector<float> v_gains;
77  std::vector<unsigned int> v_detids;
78  std::vector<unsigned int> v_ibegin;
79  std::vector<unsigned int> v_iend;
80 };
81 
82 #endif
ContainerIterator getFirstElement(RegistryConstIterator &idet)
RegistryConstIterator iend_end
RegistryConstIterator iend_begin
Registry::const_iterator RegistryConstIterator
Registry::iterator RegistryIterator
RegistryConstIterator detid_end
RegistryConstIterator detid_begin
std::vector< unsigned int > Registry
void getDetIds(std::vector< uint32_t > &DetIds_) const
bool put(const uint32_t &detID, Range input)
RegistryConstIterator ibegin_begin
float getStripGain(const uint16_t &strip, const Range &range) const
void printDebug(std::stringstream &ss) const
std::vector< float > v_gains
void printSummary(std::stringstream &ss) const
std::pair< ContainerIterator, ContainerIterator > Range
std::vector< unsigned int > v_iend
std::vector< float >::const_iterator ContainerIterator
std::vector< unsigned int > v_detids
ContainerIterator getLastElement(RegistryConstIterator &idet)
std::vector< float > InputVector
const Range getRange(const uint32_t &detID) const
std::vector< unsigned int > v_ibegin
RegistryConstIterator ibegin_end
RegistryPointers getRegistryPointers() const
float getApvGain(const uint16_t &apv, const Range &range) const