emcClusterContainerv3 Class Reference

#include <emcClusterContainerv3.h>

Inherits emcClusterContainer.

Inheritance diagram for emcClusterContainerv3:

Inheritance graph
[legend]
List of all members.

Detailed Description

(VERSION) Container of emcClusterContentv3.

Definition at line 11 of file emcClusterContainerv3.h.

Public Member Functions

 emcClusterContainerv3 ()
 emcClusterContainerv3 (const emcClusterContainerv3 &)
emcClusterContainerv3operator= (const emcClusterContainerv3 &)
unsigned int capacity (void) const
emcClusterContainerv3clone (void) const
emcClusterContainerv3create (void) const
virtual ~emcClusterContainerv3 ()
emcClusterContentv3addCluster (unsigned int i)
 Add a new cluster (using default emcClusterContentv# ctor).
emcClusterContentv3addCluster (unsigned int i, const emcClusterContent &c)
 Add a new cluster (using copy ctor).
emcClusterContentv3findCluster (int clusterid) const
emcClusterContentv3getCluster (unsigned int i) const
void identify (std::ostream &os=std::cout) const
int isValid () const
bool removeCluster (unsigned int i)
void Reset ()
bool resize (unsigned int newsize)
unsigned int size (void) const

Protected Attributes

TClonesArray * fEmcClusters

Private Member Functions

void allocate (unsigned int thesize)
void copy (emcClusterContainerv3 &dest) const

Static Private Attributes

static const unsigned int fgDefaultSize = 1000
static const unsigned int fgMaxSize = 24768


Constructor & Destructor Documentation

emcClusterContainerv3::emcClusterContainerv3  ) 
 

Definition at line 39 of file emcClusterContainerv3.C.

References allocate().

Referenced by clone().

emcClusterContainerv3::emcClusterContainerv3 const emcClusterContainerv3  ) 
 

Definition at line 45 of file emcClusterContainerv3.C.

References copy().

emcClusterContainerv3::~emcClusterContainerv3  )  [virtual]
 

Definition at line 63 of file emcClusterContainerv3.C.

References clear(), and fEmcClusters.


Member Function Documentation

emcClusterContentv3 * emcClusterContainerv3::addCluster unsigned int  i,
const emcClusterContent c
[virtual]
 

Add a new cluster (using copy ctor).

c must be of compatible type, otherwise this will return 0.

Reimplemented from emcClusterContainer.

Definition at line 89 of file emcClusterContainerv3.C.

References capacity(), fEmcClusters, fgMaxSize, max, resize(), and test().

emcClusterContentv3 * emcClusterContainerv3::addCluster unsigned int  i  )  [virtual]
 

Add a new cluster (using default emcClusterContentv# ctor).

Reimplemented from emcClusterContainer.

Definition at line 71 of file emcClusterContainerv3.C.

References capacity(), fEmcClusters, fgMaxSize, max, and resize().

Referenced by copy().

void emcClusterContainerv3::allocate unsigned int  thesize  )  [private]
 

Definition at line 116 of file emcClusterContainerv3.C.

References clear(), and fEmcClusters.

Referenced by copy(), and emcClusterContainerv3().

unsigned int emcClusterContainerv3::capacity void   )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 128 of file emcClusterContainerv3.C.

References fEmcClusters.

Referenced by addCluster().

emcClusterContainerv3 * emcClusterContainerv3::clone void   )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 135 of file emcClusterContainerv3.C.

References emcClusterContainerv3().

void emcClusterContainerv3::copy emcClusterContainerv3 dest  )  const [private]
 

Definition at line 149 of file emcClusterContainerv3.C.

References addCluster(), allocate(), fEmcClusters, getCluster(), Reset(), and size().

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

emcClusterContainerv3 * emcClusterContainerv3::create void   )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 142 of file emcClusterContainerv3.C.

emcClusterContentv3 * emcClusterContainerv3::findCluster int  clusterid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 173 of file emcClusterContainerv3.C.

References getCluster(), and size().

emcClusterContentv3 * emcClusterContainerv3::getCluster unsigned int  i  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 187 of file emcClusterContainerv3.C.

References fEmcClusters.

Referenced by copy(), and findCluster().

void emcClusterContainerv3::identify std::ostream &  os = std::cout  )  const [virtual]
 

Reimplemented from emcClusterContainer.

int emcClusterContainerv3::isValid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 201 of file emcClusterContainerv3.C.

emcClusterContainerv3 & emcClusterContainerv3::operator= const emcClusterContainerv3  ) 
 

Definition at line 52 of file emcClusterContainerv3.C.

References copy(), and Reset().

bool emcClusterContainerv3::removeCluster unsigned int  i  )  [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 215 of file emcClusterContainerv3.C.

References fEmcClusters, and size().

void emcClusterContainerv3::Reset  )  [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 208 of file emcClusterContainerv3.C.

References clear(), and fEmcClusters.

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

bool emcClusterContainerv3::resize unsigned int  newsize  )  [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 231 of file emcClusterContainerv3.C.

References fEmcClusters, and fgMaxSize.

Referenced by addCluster().

unsigned int emcClusterContainerv3::size void   )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 246 of file emcClusterContainerv3.C.

References fEmcClusters.

Referenced by copy(), findCluster(), and removeCluster().


Member Data Documentation

TClonesArray* emcClusterContainerv3::fEmcClusters [protected]
 

Definition at line 50 of file emcClusterContainerv3.h.

Referenced by addCluster(), allocate(), capacity(), copy(), getCluster(), removeCluster(), Reset(), resize(), size(), and ~emcClusterContainerv3().

const unsigned int emcClusterContainerv3::fgDefaultSize = 1000 [static, private]
 

Definition at line 56 of file emcClusterContainerv3.h.

const unsigned int emcClusterContainerv3::fgMaxSize = 24768 [static, private]
 

Definition at line 57 of file emcClusterContainerv3.h.

Referenced by addCluster(), and resize().


The documentation for this class was generated from the following files: