CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mySiStripNoises.h
Go to the documentation of this file.
1 #ifndef mySiStripNoises_h
2 #define mySiStripNoises_h
3 
4 #include<vector>
5 #include<map>
6 //#include<iostream>
7 #include<boost/cstdint.hpp>
8 
9 
10 //typedef float SiStripNoise;
11 //typedef bool SiStripDisable;
12 
14 
15  public:
18 
19 
20  struct DetRegistry{
21  uint32_t detid;
22  uint32_t ibegin;
23  uint32_t iend;
24  };
26  public:
27  bool operator() (const DetRegistry& p,const uint32_t& i) const {return p.detid < i;}
28  };
29  typedef std::vector<unsigned char> SiStripNoiseVector;
30  typedef SiStripNoiseVector::const_iterator ContainerIterator;
31  typedef std::pair<ContainerIterator, ContainerIterator> Range;
32  typedef std::vector<DetRegistry> Registry;
33  typedef Registry::const_iterator RegistryIterator;
34  typedef const std::vector<short> InputVector;
35 
36  bool put(const uint32_t detID,InputVector & input);
37  const Range getRange(const uint32_t& detID) const;
38  void getDetIds(std::vector<uint32_t>& DetIds) const;
39  float getNoise (const uint16_t& strip, const Range& range) const;
40  void setData(float noise_, std::vector<short>& vped);
41  // private:
42  //SiStripNoiseVector v_noises;
43  //Registry indexes;
44  void encode(InputVector& Vi, std::vector<unsigned char>& Vo_CHAR);
45  uint16_t decode (const uint16_t& strip, const Range& range) const;
46  std::vector<unsigned char> v_noises;
47  std::vector<DetRegistry> indexes;
48 };
49 
50 #endif
static const char noise_[]
int i
Definition: DBlmapReader.cc:9
SiStripNoiseVector::const_iterator ContainerIterator
uint16_t decode(const uint16_t &strip, const Range &range) const
float getNoise(const uint16_t &strip, const Range &range) const
const Range getRange(const uint32_t &detID) const
Registry::const_iterator RegistryIterator
std::vector< DetRegistry > Registry
static std::string const input
Definition: EdmProvDump.cc:44
bool put(const uint32_t detID, InputVector &input)
std::pair< ContainerIterator, ContainerIterator > Range
bool operator()(const DetRegistry &p, const uint32_t &i) const
void getDetIds(std::vector< uint32_t > &DetIds) const
std::vector< DetRegistry > indexes
const std::vector< short > InputVector
std::vector< unsigned char > SiStripNoiseVector
void setData(float noise_, std::vector< short > &vped)
std::vector< unsigned char > v_noises
void encode(InputVector &Vi, std::vector< unsigned char > &Vo_CHAR)