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 
5 
6 #include<vector>
7 #include<map>
8 //#include<iostream>
9 #include<boost/cstdint.hpp>
10 
11 
12 //typedef float SiStripNoise;
13 //typedef bool SiStripDisable;
14 
16 
17  public:
20 
21 
22  struct DetRegistry{
23  uint32_t detid;
24  uint32_t ibegin;
25  uint32_t iend;
26 
28 };
30  public:
31  bool operator() (const DetRegistry& p,const uint32_t& i) const {return p.detid < i;}
32  };
33  typedef std::vector<unsigned char> SiStripNoiseVector;
34  typedef SiStripNoiseVector::const_iterator ContainerIterator;
35  typedef std::pair<ContainerIterator, ContainerIterator> Range;
36  typedef std::vector<DetRegistry> Registry;
37  typedef Registry::const_iterator RegistryIterator;
38  typedef const std::vector<short> InputVector;
39 
40  bool put(const uint32_t detID,InputVector & input);
41  const Range getRange(const uint32_t& detID) const;
42  void getDetIds(std::vector<uint32_t>& DetIds) const;
43  float getNoise (const uint16_t& strip, const Range& range) const;
44  void setData(float noise_, std::vector<short>& vped);
45  // private:
46  //SiStripNoiseVector v_noises;
47  //Registry indexes;
48  void encode(InputVector& Vi, std::vector<unsigned char>& Vo_CHAR);
49  uint16_t decode (const uint16_t& strip, const Range& range) const;
50  std::vector<unsigned char> v_noises;
51  std::vector<DetRegistry> indexes;
52 
54 };
55 
56 #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
#define COND_SERIALIZABLE
Definition: Serializable.h:37
void setData(float noise_, std::vector< short > &vped)
std::vector< unsigned char > v_noises
void encode(InputVector &Vi, std::vector< unsigned char > &Vo_CHAR)