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

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++) 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 }
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:45
std::vector< short > v_noises
Definition: BlobNoises.h:44
bool BlobNoises::operator!= ( const BlobNoises rhs) const
inline

Definition at line 39 of file BlobNoises.h.

References BlobNoises::DetRegistry::operator==().

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

Definition at line 30 of file BlobNoises.h.

References indexes, and v_noises.

30  {
31  if(v_noises!=rhs.v_noises){
32  return false;
33  }
34  if(indexes!=rhs.indexes){
35  return false;
36  }
37  return true;
38  }
std::vector< DetRegistry > indexes
Definition: BlobNoises.h:45
std::vector< short > v_noises
Definition: BlobNoises.h:44
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 47 of file BlobNoises.h.

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

Definition at line 47 of file BlobNoises.h.

Member Data Documentation

std::vector<DetRegistry> BlobNoises::indexes

Definition at line 45 of file BlobNoises.h.

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

std::vector<short> BlobNoises::v_noises

Definition at line 44 of file BlobNoises.h.

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