CMS 3D CMS Logo

Classes | Public Member Functions | Public Attributes

BlobNoises Class Reference

#include <BlobNoises.h>

List of all members.

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.

{}
BlobNoises::~BlobNoises ( ) [virtual]

Definition at line 3 of file BlobNoises.cc.

{}

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.

                                                 {
  //short id_s = (short)id;
  for(short i=0;i<bsize;i++) v_noises.push_back(i+1);
  for(unsigned int i=0;i<id+1;i++) {
    DetRegistry reg;
    reg.detid = i;
    reg.ibegin = i;
    reg.iend = i;
    indexes.push_back(reg);
  }
}
bool BlobNoises::operator!= ( const BlobNoises rhs) const [inline]

Definition at line 35 of file BlobNoises.h.

References operator==().

                                               {
    return !operator==(rhs);
  }
bool BlobNoises::operator== ( const BlobNoises rhs) const [inline]

Definition at line 26 of file BlobNoises.h.

References indexes, and v_noises.

Referenced by operator!=().

                                               {
    if(v_noises!=rhs.v_noises){
      return false;
    }
    if(indexes!=rhs.indexes){
      return false;
    }
    return true;
  }

Member Data Documentation

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==().