CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BlobNoises.h
Go to the documentation of this file.
1 #ifndef BLOBNOISES_H
2 #define BLOBNOISES_H
3 #include<vector>
4 //#include<boost/cstdint.hpp>
5 #include <stdint.h>
6 
7 class BlobNoises {
8 public:
9  BlobNoises();
10  void fill(unsigned int id,short bsize);
11  virtual ~BlobNoises();
12  struct DetRegistry{
13  uint32_t detid;
14  uint32_t ibegin;
15  uint32_t iend;
16  bool operator==(const DetRegistry& rhs) const {
17  if(detid!=rhs.detid)return false;
18  if(ibegin!=rhs.ibegin)return false;
19  if(iend!=rhs.iend)return false;
20  return true;
21  }
22  bool operator!=(const DetRegistry& rhs) const {
23  return !operator==(rhs);
24  }
25  };
26  bool operator==(const BlobNoises& rhs) const {
27  if(v_noises!=rhs.v_noises){
28  return false;
29  }
30  if(indexes!=rhs.indexes){
31  return false;
32  }
33  return true;
34  }
35  bool operator!=(const BlobNoises& rhs) const {
36  return !operator==(rhs);
37  }
38 
39  //std::vector<int16_t> v_noises; //dictionary problem with this
40  std::vector<short> v_noises;
41  std::vector<DetRegistry> indexes;
42 };
43 #endif
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:41
bool operator!=(const BlobNoises &rhs) const
Definition: BlobNoises.h:35
std::vector< short > v_noises
Definition: BlobNoises.h:40
void fill(unsigned int id, short bsize)
Definition: BlobNoises.cc:4
bool operator!=(const DetRegistry &rhs) const
Definition: BlobNoises.h:22
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:26
virtual ~BlobNoises()
Definition: BlobNoises.cc:3
bool operator==(const DetRegistry &rhs) const
Definition: BlobNoises.h:16