CMS 3D CMS Logo

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::BlobNoises ( )

Definition at line 2 of file BlobNoises.cc.

2 {}

◆ ~BlobNoises()

BlobNoises::~BlobNoises ( )
virtual

Definition at line 3 of file BlobNoises.cc.

3 {}

Member Function Documentation

◆ fill()

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

Definition at line 4 of file BlobNoises.cc.

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 }

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

◆ operator!=()

bool BlobNoises::operator!= ( const BlobNoises rhs) const
inline

Definition at line 40 of file BlobNoises.h.

40 { return !operator==(rhs); }

References operator==().

◆ operator==()

bool BlobNoises::operator== ( const BlobNoises rhs) const
inline

Definition at line 31 of file BlobNoises.h.

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  }

References indexes, and v_noises.

Referenced by operator!=().

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 46 of file BlobNoises.h.

◆ cond::serialization::access

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

Definition at line 46 of file BlobNoises.h.

Member Data Documentation

◆ indexes

std::vector<DetRegistry> BlobNoises::indexes

Definition at line 44 of file BlobNoises.h.

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

◆ v_noises

std::vector<short> BlobNoises::v_noises

Definition at line 43 of file BlobNoises.h.

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

mps_fire.i
i
Definition: mps_fire.py:355
BlobNoises::indexes
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:44
BlobNoises::v_noises
std::vector< short > v_noises
Definition: BlobNoises.h:43
BlobNoises::operator==
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:31