Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::Deposits< T, hDimension > Class Template Reference

pass the dimension halved (so we can guarantee dimension to be odd) as a template parameter. More...

#include <Deposits.h>

Inheritance diagram for FastShower::Deposits< T, hDimension >:

Inheritance graph
[legend]
Collaboration diagram for FastShower::Deposits< T, hDimension >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< T
>::iterator 
Iter
typedef std::vector< T
>::const_iterator 
ConstIter

Public Methods

 Deposits ()
 ~Deposits ()
void normalise (double)
 scale all energy deposits

void accept (int eta, int phi, double e)
 fill method

void reset ()
 reset all deposits to 0.

ConstIter begin () const
 iterator pointing to beginning of the deposits for ++ operator, read out first in increasing eta, then increasing phi.

ConstIter end () const
std::size_t dimension () const
std::size_t nElements () const

Private Methods

int index (int eta, int phi)
 make an index for the element array from the proximity scheme pos.


Private Attributes

std::vector< T > m_elements

Static Private Attributes

const int s_dimension
 store dimensionalities

const int s_center
const int s_nElements

Detailed Description

template<class T, int hDimension>
class FastShower::Deposits< T, hDimension >

pass the dimension halved (so we can guarantee dimension to be odd) as a template parameter.

Definition at line 42 of file Deposits.h.


Member Typedef Documentation

template<class T, int hDimension>
typedef std::vector<T>::iterator FastShower::Deposits< T, hDimension >::Iter
 

Definition at line 44 of file Deposits.h.

template<class T, int hDimension>
typedef std::vector<T>::const_iterator FastShower::Deposits< T, hDimension >::ConstIter
 

Definition at line 45 of file Deposits.h.


Constructor & Destructor Documentation

template<class T, int hDimension>
FastShower::Deposits< T, hDimension >::Deposits  
 

template<class T, int hDimension>
FastShower::Deposits< T, hDimension >::~Deposits   [inline]
 

Definition at line 47 of file Deposits.h.

00047 {};

Member Function Documentation

template<class T, int hDimension>
void FastShower::Deposits< T, hDimension >::normalise double    [virtual]
 

scale all energy deposits

Implements FastShower::IDeposits.

template<class T, int hDimension>
void FastShower::Deposits< T, hDimension >::accept int    eta,
int    phi,
double    e
[virtual]
 

fill method

Implements FastShower::IDeposits.

template<class T, int hDimension>
void FastShower::Deposits< T, hDimension >::reset   [virtual]
 

reset all deposits to 0.

Implements FastShower::IDeposits.

template<class T, int hDimension>
ConstIter FastShower::Deposits< T, hDimension >::begin   const
 

iterator pointing to beginning of the deposits for ++ operator, read out first in increasing eta, then increasing phi.

template<class T, int hDimension>
ConstIter FastShower::Deposits< T, hDimension >::end   const
 

template<class T, int hDimension>
std::size_t FastShower::Deposits< T, hDimension >::dimension   const
 

template<class T, int hDimension>
std::size_t FastShower::Deposits< T, hDimension >::nElements   const
 

template<class T, int hDimension>
int FastShower::Deposits< T, hDimension >::index int    eta,
int    phi
[private]
 

make an index for the element array from the proximity scheme pos.


Member Data Documentation

template<class T, int hDimension>
const int FastShower::Deposits< T, hDimension >::s_dimension [static, private]
 

store dimensionalities

Definition at line 63 of file Deposits.h.

template<class T, int hDimension>
const int FastShower::Deposits< T, hDimension >::s_center [static, private]
 

Definition at line 64 of file Deposits.h.

template<class T, int hDimension>
const int FastShower::Deposits< T, hDimension >::s_nElements [static, private]
 

Definition at line 65 of file Deposits.h.

template<class T, int hDimension>
std::vector<T> FastShower::Deposits< T, hDimension >::m_elements [private]
 

Definition at line 67 of file Deposits.h.


The documentation for this class was generated from the following file:
Generated on Tue Mar 18 11:55:14 2003 for FastShowerUtils by doxygen1.3-rc1