emcTowerContainerv1 Class Reference
[Tower calibration]

#include <emcTowerContainerv1.h>

Inherits emcTowerContainer.

Inheritance diagram for emcTowerContainerv1:

Inheritance graph
[legend]
List of all members.

Detailed Description

(VERSION) Container of emcTowerContentv1.

Definition at line 20 of file emcTowerContainerv1.h.

Public Member Functions

 emcTowerContainerv1 ()
 emcTowerContainerv1 (const emcTowerContainerv1 &)
emcTowerContainerv1 & operator= (const emcTowerContainerv1 &)
emcTowerContainerv1 * clone (void) const
 Make a copy of this object.
emcTowerContainerv1 * create (void) const
 Make an empty copy of this object (i.e. copy only the type).
virtual ~emcTowerContainerv1 ()
unsigned int capacity (void) const
 the size you'll never exceed for this object.
emcTowerContentv1 * addTower (unsigned int i)
 Add a new (using default ctor) tower.
emcTowerContentv1 * addTower (unsigned int i, const emcTowerContent &)
 Add a new (using copy ctor) tower.
emcTowerContentv1 * findTower (int towerID) const
 Return a given tower (or 0 if not found) by its towerid.
emcTowerContentv1 * getTower (unsigned int i) const
 Return a given tower (or 0 if not found) by its index.
void identify (std::ostream &os=std::cout) const
int isValid () const
bool removeTower (unsigned int i)
void Reset ()
bool resize (unsigned int newsize)
 Set a new size for this container. Old data are lost.
unsigned int size (void) const
 the actual size of the object.

Protected Attributes

TClonesArray * fEmcTowers

Private Member Functions

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

Static Private Attributes

static const unsigned int fgDefaultSize
static const unsigned int fgMaxSize


Constructor & Destructor Documentation

emcTowerContainerv1::emcTowerContainerv1 (   ) 
 

Referenced by clone().

emcTowerContainerv1::emcTowerContainerv1 (  const emcTowerContainerv1 &   ) 
 

Definition at line 22 of file emcTowerContainerv1.C.

References copy().

emcTowerContainerv1::~emcTowerContainerv1 (   )  [virtual]
 

Definition at line 40 of file emcTowerContainerv1.C.

References fEmcTowers.


Member Function Documentation

emcTowerContentv1 * emcTowerContainerv1::addTower (  unsigned int  i,
const emcTowerContent &  t
)  [virtual]
 

Add a new (using copy ctor) tower.

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

Reimplemented from emcTowerContainer.

Definition at line 64 of file emcTowerContainerv1.C.

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

emcTowerContentv1 * emcTowerContainerv1::addTower (  unsigned int  i  )  [virtual]
 

Add a new (using default ctor) tower.

Reimplemented from emcTowerContainer.

Definition at line 47 of file emcTowerContainerv1.C.

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

Referenced by copy().

void emcTowerContainerv1::allocate (  unsigned int  thesize  )  [private]
 

Definition at line 90 of file emcTowerContainerv1.C.

References fEmcTowers.

Referenced by copy().

unsigned int emcTowerContainerv1::capacity (  void   )  const [virtual]
 

the size you'll never exceed for this object.

Reimplemented from emcTowerContainer.

Definition at line 98 of file emcTowerContainerv1.C.

References fEmcTowers.

Referenced by addTower().

emcTowerContainerv1 * emcTowerContainerv1::clone (  void   )  const [virtual]
 

Make a copy of this object.

Reimplemented from emcTowerContainer.

Definition at line 105 of file emcTowerContainerv1.C.

References emcTowerContainerv1().

void emcTowerContainerv1::copy (  emcTowerContainerv1 &  dest  )  const [private]
 

Definition at line 119 of file emcTowerContainerv1.C.

References addTower(), allocate(), fEmcTowers, getTower(), Reset(), and size().

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

emcTowerContainerv1 * emcTowerContainerv1::create (  void   )  const [virtual]
 

Make an empty copy of this object (i.e. copy only the type).

Reimplemented from emcTowerContainer.

Definition at line 112 of file emcTowerContainerv1.C.

emcTowerContentv1 * emcTowerContainerv1::findTower (  int  towerID  )  const [virtual]
 

Return a given tower (or 0 if not found) by its towerid.

Reimplemented from emcTowerContainer.

Definition at line 143 of file emcTowerContainerv1.C.

References getTower(), and size().

emcTowerContentv1 * emcTowerContainerv1::getTower (  unsigned int  i  )  const [virtual]
 

Return a given tower (or 0 if not found) by its index.

Reimplemented from emcTowerContainer.

Definition at line 157 of file emcTowerContainerv1.C.

References fEmcTowers.

Referenced by copy(), and findTower().

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

Reimplemented from emcTowerContainer.

int emcTowerContainerv1::isValid (   )  const [virtual]
 

Reimplemented from emcTowerContainer.

Definition at line 171 of file emcTowerContainerv1.C.

emcTowerContainerv1 & emcTowerContainerv1::operator= (  const emcTowerContainerv1 &   ) 
 

Definition at line 30 of file emcTowerContainerv1.C.

References copy().

bool emcTowerContainerv1::removeTower (  unsigned int  i  )  [virtual]
 

Reimplemented from emcTowerContainer.

Definition at line 185 of file emcTowerContainerv1.C.

References fEmcTowers, and size().

void emcTowerContainerv1::Reset (   )  [virtual]
 

Reimplemented from emcTowerContainer.

Definition at line 178 of file emcTowerContainerv1.C.

References fEmcTowers.

Referenced by copy().

bool emcTowerContainerv1::resize (  unsigned int  newsize  )  [virtual]
 

Set a new size for this container. Old data are lost.

Reimplemented from emcTowerContainer.

Definition at line 201 of file emcTowerContainerv1.C.

References fEmcTowers, and fgMaxSize.

Referenced by addTower().

unsigned int emcTowerContainerv1::size (  void   )  const [virtual]
 

the actual size of the object.

Reimplemented from emcTowerContainer.

Definition at line 216 of file emcTowerContainerv1.C.

References fEmcTowers.

Referenced by copy(), findTower(), and removeTower().


Member Data Documentation

TClonesArray* emcTowerContainerv1::fEmcTowers [protected]
 

Definition at line 60 of file emcTowerContainerv1.h.

Referenced by addTower(), allocate(), capacity(), copy(), getTower(), removeTower(), Reset(), resize(), size(), and ~emcTowerContainerv1().

const unsigned int emcTowerContainerv1::fgDefaultSize [static, private]
 

Definition at line 66 of file emcTowerContainerv1.h.

Referenced by ClassImp().

const unsigned int emcTowerContainerv1::fgMaxSize [static, private]
 

Definition at line 67 of file emcTowerContainerv1.h.

Referenced by addTower(), and resize().


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