emcClusterContainerv1 Class Reference

#include <emcClusterContainerv1.h>

Inherits emcClusterContainer.

Inheritance diagram for emcClusterContainerv1:

Inheritance graph
[legend]
List of all members.

Detailed Description

(VERSION) Container of emcClusterContentv1.

Definition at line 12 of file emcClusterContainerv1.h.

Public Member Functions

 emcClusterContainerv1 ()
 emcClusterContainerv1 (const emcClusterContainerv1 &)
emcClusterContainerv1operator= (const emcClusterContainerv1 &)
unsigned int capacity (void) const
emcClusterContainerv1clone (void) const
emcClusterContainerv1create (void) const
virtual ~emcClusterContainerv1 ()
emcClusterContentv1addCluster (unsigned int i)
 Add a new cluster (using default emcClusterContentv# ctor).
emcClusterContentv1addCluster (unsigned int i, const emcClusterContent &c)
 Add a new cluster (using copy ctor).
emcClusterContentv1findCluster (int clusterid) const
emcClusterContentv1getCluster (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 (emcClusterContainerv1 &dest) const

Static Private Attributes

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


Constructor & Destructor Documentation

emcClusterContainerv1::emcClusterContainerv1  ) 
 

Definition at line 39 of file emcClusterContainerv1.C.

References allocate().

Referenced by clone().

emcClusterContainerv1::emcClusterContainerv1 const emcClusterContainerv1  ) 
 

Definition at line 45 of file emcClusterContainerv1.C.

References copy().

emcClusterContainerv1::~emcClusterContainerv1  )  [virtual]
 

Definition at line 63 of file emcClusterContainerv1.C.

References clear(), and fEmcClusters.


Member Function Documentation

emcClusterContentv1 * emcClusterContainerv1::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 emcClusterContainerv1.C.

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

emcClusterContentv1 * emcClusterContainerv1::addCluster unsigned int  i  )  [virtual]
 

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

Reimplemented from emcClusterContainer.

Definition at line 71 of file emcClusterContainerv1.C.

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

Referenced by copy().

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

Definition at line 116 of file emcClusterContainerv1.C.

References clear(), and fEmcClusters.

Referenced by copy(), and emcClusterContainerv1().

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

Reimplemented from emcClusterContainer.

Definition at line 128 of file emcClusterContainerv1.C.

References fEmcClusters.

Referenced by addCluster().

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

Reimplemented from emcClusterContainer.

Definition at line 135 of file emcClusterContainerv1.C.

References emcClusterContainerv1().

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

Definition at line 149 of file emcClusterContainerv1.C.

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

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

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

Reimplemented from emcClusterContainer.

Definition at line 142 of file emcClusterContainerv1.C.

emcClusterContentv1 * emcClusterContainerv1::findCluster int  clusterid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 173 of file emcClusterContainerv1.C.

References getCluster(), and size().

emcClusterContentv1 * emcClusterContainerv1::getCluster unsigned int  i  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 187 of file emcClusterContainerv1.C.

References fEmcClusters.

Referenced by copy(), and findCluster().

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

Reimplemented from emcClusterContainer.

int emcClusterContainerv1::isValid  )  const [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 201 of file emcClusterContainerv1.C.

emcClusterContainerv1 & emcClusterContainerv1::operator= const emcClusterContainerv1  ) 
 

Definition at line 52 of file emcClusterContainerv1.C.

References copy(), and Reset().

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

Reimplemented from emcClusterContainer.

Definition at line 215 of file emcClusterContainerv1.C.

References fEmcClusters, and size().

void emcClusterContainerv1::Reset  )  [virtual]
 

Reimplemented from emcClusterContainer.

Definition at line 208 of file emcClusterContainerv1.C.

References clear(), and fEmcClusters.

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

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

Reimplemented from emcClusterContainer.

Definition at line 231 of file emcClusterContainerv1.C.

References fEmcClusters, and fgMaxSize.

Referenced by addCluster().

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

Reimplemented from emcClusterContainer.

Definition at line 246 of file emcClusterContainerv1.C.

References fEmcClusters.

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


Member Data Documentation

TClonesArray* emcClusterContainerv1::fEmcClusters [protected]
 

Definition at line 51 of file emcClusterContainerv1.h.

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

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

Definition at line 57 of file emcClusterContainerv1.h.

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

Definition at line 58 of file emcClusterContainerv1.h.

Referenced by addCluster(), and resize().


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