CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes
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
 

Detailed Description

Definition at line 7 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, 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++) v_noises.push_back(i+1);
7  for(unsigned int i=0;i<id+1;i++) {
8  DetRegistry reg;
9  reg.detid = i;
10  reg.ibegin = i;
11  reg.iend = i;
12  indexes.push_back(reg);
13  }
14 }
int i
Definition: DBlmapReader.cc:9
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:41
std::vector< short > v_noises
Definition: BlobNoises.h:40
bool BlobNoises::operator!= ( const BlobNoises rhs) const
inline

Definition at line 35 of file BlobNoises.h.

References operator==().

35  {
36  return !operator==(rhs);
37  }
bool operator==(const BlobNoises &rhs) const
Definition: BlobNoises.h:26
bool BlobNoises::operator== ( const BlobNoises rhs) const
inline

Definition at line 26 of file BlobNoises.h.

References indexes, and v_noises.

Referenced by operator!=().

26  {
27  if(v_noises!=rhs.v_noises){
28  return false;
29  }
30  if(indexes!=rhs.indexes){
31  return false;
32  }
33  return true;
34  }
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:41
std::vector< short > v_noises
Definition: BlobNoises.h:40

Member Data Documentation

std::vector<DetRegistry> BlobNoises::indexes

Definition at line 41 of file BlobNoises.h.

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

std::vector<short> BlobNoises::v_noises

Definition at line 40 of file BlobNoises.h.

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