CMS 3D CMS Logo

BlobComplexObjects Struct Reference

#include <CondFormats/Calibration/interface/BlobComplex.h>

List of all members.

Public Member Functions

 BlobComplexObjects ()
void fill (unsigned int &serial)
bool operator!= (const BlobComplexObjects &rhs) const
bool operator== (const BlobComplexObjects &rhs) const
void print () const

Public Attributes

unsigned int a
unsigned int b
std::vector< BlobComplexContentcontent


Detailed Description

Definition at line 36 of file BlobComplex.h.


Constructor & Destructor Documentation

BlobComplexObjects::BlobComplexObjects (  )  [inline]

Definition at line 37 of file BlobComplex.h.

00037 {}


Member Function Documentation

void BlobComplexObjects::fill ( unsigned int serial  ) 

Definition at line 73 of file BlobComplex.cc.

References a, b, content, and i.

00074 {
00075   a = ++serial;
00076   b = ++serial;
00077   for(unsigned int i = 0; i < 3; i++) {
00078     content.push_back(BlobComplexContent());
00079     content.back().fill(serial);
00080   }
00081 }

bool BlobComplexObjects::operator!= ( const BlobComplexObjects rhs  )  const [inline]

Definition at line 42 of file BlobComplex.h.

00043   { return !(*this == rhs); }

bool BlobComplexObjects::operator== ( const BlobComplexObjects rhs  )  const

Definition at line 94 of file BlobComplex.cc.

References a, b, and content.

00095 {
00096   if (a != rhs.a) return false;
00097   if (b != rhs.b) return false;
00098   if (content.size() != rhs.content.size()) return false;
00099   std::vector<BlobComplexContent>::const_iterator iter1 = content.begin();
00100   std::vector<BlobComplexContent>::const_iterator iter2 = rhs.content.begin();
00101   while(iter1 != content.end())
00102     if (*iter1++ != *iter2++) return false;
00103   return true;
00104 }

void BlobComplexObjects::print ( void   )  const

Definition at line 83 of file BlobComplex.cc.

References a, b, content, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and iter.

00084 {
00085   std::cout << "  a = " << a << std::endl;
00086   std::cout << "  b = " << b << std::endl;
00087   for(std::vector<BlobComplexContent>::const_iterator iter = content.begin();
00088       iter != content.end(); iter++) {
00089     std::cout << "  content[" << (iter - content.begin()) << "] =" << std::endl;
00090     iter->print();
00091   }
00092 }


Member Data Documentation

unsigned int BlobComplexObjects::a

Definition at line 45 of file BlobComplex.h.

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

unsigned int BlobComplexObjects::b

Definition at line 45 of file BlobComplex.h.

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

std::vector<BlobComplexContent> BlobComplexObjects::content

Definition at line 46 of file BlobComplex.h.

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


The documentation for this struct was generated from the following files:
Generated on Tue Jun 9 18:15:02 2009 for CMSSW by  doxygen 1.5.4