CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <cstdint>
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)
20  return false;
21  if (ibegin != rhs.ibegin)
22  return false;
23  if (iend != rhs.iend)
24  return false;
25  return true;
26  }
27  bool operator!=(const DetRegistry& rhs) const { return !operator==(rhs); }
28 
30  };
31  bool operator==(const BlobNoises& rhs) const {
32  if (v_noises != rhs.v_noises) {
33  return false;
34  }
35  if (indexes != rhs.indexes) {
36  return false;
37  }
38  return true;
39  }
40  bool operator!=(const BlobNoises& rhs) const { return !operator==(rhs); }
41 
42  //std::vector<int16_t> v_noises; //dictionary problem with this
43  std::vector<short> v_noises;
44  std::vector<DetRegistry> indexes;
45 
47 };
48 #endif
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:44
bool operator!=(const BlobNoises &rhs) const
Definition: BlobNoises.h:40
std::vector< short > v_noises
Definition: BlobNoises.h:43
void fill(unsigned int id, short bsize)
Definition: BlobNoises.cc:4
bool operator!=(const DetRegistry &rhs) const
Definition: BlobNoises.h:27
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:31
virtual ~BlobNoises()
Definition: BlobNoises.cc:3
#define COND_SERIALIZABLE
Definition: Serializable.h:39
bool operator==(const DetRegistry &rhs) const
Definition: BlobNoises.h:18