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
4 
5 #include<vector>
6 //#include<boost/cstdint.hpp>
7 #include <stdint.h>
8 
9 class BlobNoises {
10 public:
11  BlobNoises();
12  void fill(unsigned int id,short bsize);
13  virtual ~BlobNoises();
14  struct DetRegistry{
15  uint32_t detid;
16  uint32_t ibegin;
17  uint32_t iend;
18  bool operator==(const DetRegistry& rhs) const {
19  if(detid!=rhs.detid)return false;
20  if(ibegin!=rhs.ibegin)return false;
21  if(iend!=rhs.iend)return false;
22  return true;
23  }
24  bool operator!=(const DetRegistry& rhs) const {
25  return !operator==(rhs);
26  }
27 
29 };
30  bool operator==(const BlobNoises& rhs) const {
31  if(v_noises!=rhs.v_noises){
32  return false;
33  }
34  if(indexes!=rhs.indexes){
35  return false;
36  }
37  return true;
38  }
39  bool operator!=(const BlobNoises& rhs) const {
40  return !operator==(rhs);
41  }
42 
43  //std::vector<int16_t> v_noises; //dictionary problem with this
44  std::vector<short> v_noises;
45  std::vector<DetRegistry> indexes;
46 
48 };
49 #endif
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:45
bool operator!=(const BlobNoises &rhs) const
Definition: BlobNoises.h:39
std::vector< short > v_noises
Definition: BlobNoises.h:44
void fill(unsigned int id, short bsize)
Definition: BlobNoises.cc:4
bool operator!=(const DetRegistry &rhs) const
Definition: BlobNoises.h:24
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:30
virtual ~BlobNoises()
Definition: BlobNoises.cc:3
#define COND_SERIALIZABLE
Definition: Serializable.h:30
bool operator==(const DetRegistry &rhs) const
Definition: BlobNoises.h:18