Particle Identification and Tracking
Public Member Functions | Private Attributes | List of all members
utilities::Accum_case Class Reference

A class to hold a stack of accum objects for handing into a hash_case. More...

#include <accum_case.h>

+ Collaboration diagram for utilities::Accum_case:

Public Member Functions

 Accum_case ()
 
template<class T >
void fill (const T &base_obj, const unsigned int frame_count)
 
tracking::Accumulatorat (int j)
 Returns the nth element of the case. More...
 
tracking::Accumulatoroperator[] (int j)
 Returns the nth element of the case. More...
 
unsigned int size () const
 Returns size. More...
 
 ~Accum_case ()
 Destructor. More...
 

Private Attributes

int frame_count_
 Number of frames. More...
 
std::vector
< tracking::Accumulator * > 
accum_vec_
 structure to hold the Accumulator ojbects More...
 

Detailed Description

A class to hold a stack of accum objects for handing into a hash_case.

Mostly a wrapper of a std::vector. Takes care of construction and destruction of the accum* objects.

Constructor & Destructor Documentation

utilities::Accum_case::Accum_case ( )
inline
utilities::Accum_case::~Accum_case ( )
inline

Destructor.

References accum_vec_.

Member Function Documentation

tracking::Accumulator* utilities::Accum_case::at ( int  j)
inline

Returns the nth element of the case.

Will throw out of range errors

References accum_vec_.

template<class T >
void utilities::Accum_case::fill ( const T &  base_obj,
const unsigned int  frame_count 
)
inline

References accum_vec_, and frame_count_.

Referenced by main().

tracking::Accumulator* utilities::Accum_case::operator[] ( int  j)
inline

Returns the nth element of the case.

Will not throw out of range errors

References accum_vec_.

unsigned int utilities::Accum_case::size ( ) const
inline

Returns size.

References accum_vec_.

Referenced by tracking::hash_case::compute_accum().

Member Data Documentation

std::vector< tracking::Accumulator*> utilities::Accum_case::accum_vec_
private

structure to hold the Accumulator ojbects

Referenced by at(), fill(), operator[](), size(), and ~Accum_case().

int utilities::Accum_case::frame_count_
private

Number of frames.

Referenced by fill().


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