CMS 3D CMS Logo

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 <cstdint>
9 //#include<iostream>
10 
11 //typedef float SiStripNoise;
12 //typedef bool SiStripDisable;
13 
15 public:
18 
19  struct DetRegistry {
20  uint32_t detid;
21  uint32_t ibegin;
22  uint32_t iend;
23 
25  };
27  public:
28  bool operator()(const DetRegistry& p, const uint32_t& i) const { return p.detid < i; }
29  };
30  typedef std::vector<unsigned char> SiStripNoiseVector;
31  typedef SiStripNoiseVector::const_iterator ContainerIterator;
32  typedef std::pair<ContainerIterator, ContainerIterator> Range;
33  typedef std::vector<DetRegistry> Registry;
34  typedef Registry::const_iterator RegistryIterator;
35  typedef const std::vector<short> InputVector;
36 
37  bool put(const uint32_t detID, InputVector& input);
38  const Range getRange(const uint32_t& detID) const;
39  void getDetIds(std::vector<uint32_t>& DetIds) const;
40  float getNoise(const uint16_t& strip, const Range& range) const;
41  void setData(float noise_, std::vector<short>& vped);
42  // private:
43  //SiStripNoiseVector v_noises;
44  //Registry indexes;
45  void encode(InputVector& Vi, std::vector<unsigned char>& Vo_CHAR);
46  uint16_t decode(const uint16_t& strip, const Range& range) const;
47  std::vector<unsigned char> v_noises;
48  std::vector<DetRegistry> indexes;
49 
51 };
52 
53 #endif
mySiStripNoises::DetRegistry::ibegin
uint32_t ibegin
Definition: mySiStripNoises.h:21
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
sistrip::extrainfo::noise_
static const char noise_[]
Definition: ConstantsForDqm.h:47
mps_fire.i
i
Definition: mps_fire.py:355
mySiStripNoises::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: mySiStripNoises.h:32
input
static const std::string input
Definition: EdmProvDump.cc:48
mySiStripNoises::getDetIds
void getDetIds(std::vector< uint32_t > &DetIds) const
Definition: mySiStripNoises.cc:29
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
mySiStripNoises::mySiStripNoises
mySiStripNoises()
Definition: mySiStripNoises.h:16
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
mySiStripNoises::encode
void encode(InputVector &Vi, std::vector< unsigned char > &Vo_CHAR)
Definition: mySiStripNoises.cc:46
mySiStripNoises::Registry
std::vector< DetRegistry > Registry
Definition: mySiStripNoises.h:33
mySiStripNoises::StrictWeakOrdering
Definition: mySiStripNoises.h:26
mySiStripNoises::~mySiStripNoises
~mySiStripNoises()
Definition: mySiStripNoises.h:17
mySiStripNoises::ContainerIterator
SiStripNoiseVector::const_iterator ContainerIterator
Definition: mySiStripNoises.h:31
mySiStripNoises
Definition: mySiStripNoises.h:14
mySiStripNoises::getNoise
float getNoise(const uint16_t &strip, const Range &range) const
Definition: mySiStripNoises.cc:38
Serializable.h
mySiStripNoises::indexes
std::vector< DetRegistry > indexes
Definition: mySiStripNoises.h:48
mySiStripNoises::DetRegistry
Definition: mySiStripNoises.h:19
mySiStripNoises::getRange
const Range getRange(const uint32_t &detID) const
Definition: mySiStripNoises.cc:20
mySiStripNoises::DetRegistry::detid
uint32_t detid
Definition: mySiStripNoises.h:20
mySiStripNoises::RegistryIterator
Registry::const_iterator RegistryIterator
Definition: mySiStripNoises.h:34
mySiStripNoises::v_noises
std::vector< unsigned char > v_noises
Definition: mySiStripNoises.h:47
mySiStripNoises::InputVector
const typedef std::vector< short > InputVector
Definition: mySiStripNoises.h:35
mySiStripNoises::put
bool put(const uint32_t detID, InputVector &input)
Definition: mySiStripNoises.cc:3
mySiStripNoises::DetRegistry::iend
uint32_t iend
Definition: mySiStripNoises.h:22
mySiStripNoises::SiStripNoiseVector
std::vector< unsigned char > SiStripNoiseVector
Definition: mySiStripNoises.h:30
mySiStripNoises::StrictWeakOrdering::operator()
bool operator()(const DetRegistry &p, const uint32_t &i) const
Definition: mySiStripNoises.h:28
mySiStripNoises::setData
void setData(float noise_, std::vector< short > &vped)
Definition: mySiStripNoises.cc:42
mySiStripNoises::decode
uint16_t decode(const uint16_t &strip, const Range &range) const
Definition: mySiStripNoises.cc:68