emcClusterContainerv2 Class Reference

#include <emcClusterContainerv2.h>

Inherits emcClusterContainer.

Inheritance diagram for emcClusterContainerv2:

Inheritance graph
[legend]
List of all members.

Detailed Description

(VERSION) Container of emcClusterContentv2.

Definition at line 12 of file emcClusterContainerv2.h.

Public Member Functions

 emcClusterContainerv2 ()
 emcClusterContainerv2 (const emcClusterContainerv2 &)
emcClusterContainerv2operator= (const emcClusterContainerv2 &)
unsigned int capacity (void) const
emcClusterContainerv2clone (void) const
emcClusterContainerv2create (void) const
virtual ~emcClusterContainerv2 ()
emcClusterContentv2addCluster (unsigned int i)
 Add a new cluster (using default emcClusterContentv# ctor).
emcClusterContentv2addCluster (unsigned int i, const emcClusterContent &c)
 Add a new cluster (using copy ctor).
emcClusterContentv2findCluster (int clusterid) const
emcClusterContentv2getCluster (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 (emcClusterContainerv2 &dest) const

Static Private Attributes

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


Constructor & Destructor Documentation

emcClusterContainerv2::emcClusterContainerv2  ) 
 

Definition at line 39 of file emcClusterContainerv2.C.

References allocate().

Referenced by clone().

emcClusterContainerv2::emcClusterContainerv2 const emcClusterContainerv2  ) 
 

Definition at line 45 of file emcClusterContainerv2.C.

References copy().

emcClusterContainerv2::~emcClusterContainerv2  )  [virtual]
 

Definition at line 63 of file emcClusterContainerv2.C.

References clear(), and fEmcClusters.


Member Function Documentation

emcClusterContentv2 * emcClusterContainerv2::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 emcClusterContainerv2.C.

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

emcClusterContentv2 * emcClusterContainerv2::addCluster unsigned int  i  )  [virtual]
 

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

Reimplemented from emcClusterContainer.

Definition at line 71 of file emcClusterContainerv2.C.

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

Referenced by copy().

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

Definition at line 116 of file emcClusterContainerv2.C.

References clear(), and fEmcClusters.

Referenced by copy(), and emcClusterContainerv2().

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

Reimplemented from emcClusterContainer.

Definition at line 128 of file emcClusterContainerv2.C.

References fEmcClusters.

Referenced by addCluster().

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

Reimplemented from emcClusterContainer.

Definition at line 135 of file emcClusterContainerv2.C.

References emcClusterContainerv2().

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

Definition at line 149 of file emcClusterContainerv2.C.

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

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

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

Reimplemented from emcClusterContainer.

Definition at line 142 of file emcClusterContainerv2.C.

emcClusterContentv2 * emcClusterContainerv2::findCluster int  clusterid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 173 of file emcClusterContainerv2.C.

References getCluster(), and size().

emcClusterContentv2 * emcClusterContainerv2::getCluster unsigned int  i  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 187 of file emcClusterContainerv2.C.

References fEmcClusters.

Referenced by copy(), and findCluster().

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

Reimplemented from emcClusterContainer.

int emcClusterContainerv2::isValid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 201 of file emcClusterContainerv2.C.

emcClusterContainerv2 & emcClusterContainerv2::operator= const emcClusterContainerv2  ) 
 

Definition at line 52 of file emcClusterContainerv2.C.

References copy(), and Reset().

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

Reimplemented from emcClusterContainer.

Definition at line 215 of file emcClusterContainerv2.C.

References fEmcClusters, and size().

void emcClusterContainerv2::Reset  )  [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 208 of file emcClusterContainerv2.C.

References clear(), and fEmcClusters.

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

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

Reimplemented from emcClusterContainer.

Definition at line 231 of file emcClusterContainerv2.C.

References fEmcClusters, and fgMaxSize.

Referenced by addCluster().

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

Reimplemented from emcClusterContainer.

Definition at line 246 of file emcClusterContainerv2.C.

References fEmcClusters.

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


Member Data Documentation

TClonesArray* emcClusterContainerv2::fEmcClusters [protected]
 

Definition at line 51 of file emcClusterContainerv2.h.

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

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

Definition at line 57 of file emcClusterContainerv2.h.

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

Definition at line 58 of file emcClusterContainerv2.h.

Referenced by addCluster(), and resize().


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