CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Public Attributes | Private Member Functions | Friends
BlobNoises Class Reference

#include <BlobNoises.h>

Classes

struct  DetRegistry
 

Public Member Functions

 BlobNoises ()
 
void fill (unsigned int id, short bsize)
 
bool operator!= (const BlobNoises &rhs) const
 
bool operator== (const BlobNoises &rhs) const
 
virtual ~BlobNoises ()
 

Public Attributes

std::vector< DetRegistryindexes
 
std::vector< short > v_noises
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 9 of file BlobNoises.h.

Constructor & Destructor Documentation

BlobNoises::BlobNoises ( )

Definition at line 2 of file BlobNoises.cc.

2 {}
BlobNoises::~BlobNoises ( )
virtual

Definition at line 3 of file BlobNoises.cc.

3 {}

Member Function Documentation

void BlobNoises::fill ( unsigned int  id,
short  bsize 
)

Definition at line 4 of file BlobNoises.cc.

References BlobNoises::DetRegistry::detid, mps_fire::i, BlobNoises::DetRegistry::ibegin, BlobNoises::DetRegistry::iend, indexes, and v_noises.

4  {
5  //short id_s = (short)id;
6  for (short i = 0; i < bsize; i++)
7  v_noises.push_back(i + 1);
8  for (unsigned int i = 0; i < id + 1; i++) {
9  DetRegistry reg;
10  reg.detid = i;
11  reg.ibegin = i;
12  reg.iend = i;
13  indexes.push_back(reg);
14  }
15 }
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:44
std::vector< short > v_noises
Definition: BlobNoises.h:43
bool BlobNoises::operator!= ( const BlobNoises rhs) const
inline

Definition at line 40 of file BlobNoises.h.

References operator==().

40 { return !operator==(rhs); }
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:31
bool BlobNoises::operator== ( const BlobNoises rhs) const
inline

Definition at line 31 of file BlobNoises.h.

References indexes, and v_noises.

Referenced by operator!=().

31  {
32  if (v_noises != rhs.v_noises) {
33  return false;
34  }
35  if (indexes != rhs.indexes) {
36  return false;
37  }
38  return true;
39  }
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:44
std::vector< short > v_noises
Definition: BlobNoises.h:43
template<class Archive >
void BlobNoises::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 46 of file BlobNoises.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 46 of file BlobNoises.h.

Member Data Documentation

std::vector<DetRegistry> BlobNoises::indexes

Definition at line 44 of file BlobNoises.h.

Referenced by fill(), and operator==().

std::vector<short> BlobNoises::v_noises

Definition at line 43 of file BlobNoises.h.

Referenced by fill(), and operator==().