Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

CsIClusterList Class Reference

High level data for the calorimeter. More...

#include <CsIClusters.h>

List of all members.

Public Methods

 CsIClusterList ()
 ~CsIClusterList ()
virtual const CLID & clID () const
void add (CsICluster *cl)
int num () const
ICsICluster * Cluster (int i) const
virtual void clear ()
virtual void make ()
virtual void writeOut () const
void setCalDisplay (CalDisplay *calDisp)

Static Public Methods

const CLID & classID ()

Protected Methods

virtual void ini ()

Private Attributes

std::vector< CsICluster *> m_CsIClustersList
CalDisplaym_calDisp


Detailed Description

High level data for the calorimeter.

Transient storage of the results of the reconstruction performed in CalClustersAlg. It contains the the list ofall the clusters in the calorimeter.

Warning:
there is no clustering in the calorimeter up to now. There is just one Cluster stored containing the information for the whole event
Author:
Jose Angel Hernando
Revisions:

Definition at line 166 of file CsIClusters.h.


Constructor & Destructor Documentation

CsIClusterList::CsIClusterList   [inline]
 

Definition at line 171 of file CsIClusters.h.

References clear(), and m_calDisp.

00171 { m_calDisp = 0;clear();}

CsIClusterList::~CsIClusterList   [inline]
 

Definition at line 172 of file CsIClusters.h.

References clear(), CalDisplay::clearClusterDisp(), and m_calDisp.

00172 { if(m_calDisp) m_calDisp->clearClusterDisp();clear();}


Member Function Documentation

void CsIClusterList::add CsICluster   cl [inline]
 

Definition at line 180 of file CsIClusters.h.

References m_CsIClustersList.

00180 {m_CsIClustersList.push_back(cl);}

const CLID& CsIClusterList::classID   [inline, static]
 

Definition at line 176 of file CsIClusters.h.

References CLID_CalClusterList.

Referenced by clID().

00176 {return CLID_CalClusterList;}

void CsIClusterList::clear   [virtual]
 

Definition at line 49 of file CsIClusters.cpp.

Referenced by CsIClusterList(), and ~CsIClusterList().

00051 {
00052         int nClusters = num();
00053         for (int icl = 0; icl < nClusters; icl++) {
00054                 delete m_CsIClustersList[icl];
00055         }
00056         m_CsIClustersList.clear();
00057 }

virtual const CLID& CsIClusterList::clID   const [inline, virtual]
 

Definition at line 177 of file CsIClusters.h.

References classID().

00177 {return classID();}

ICsICluster* CsIClusterList::Cluster int    i const [inline]
 

Definition at line 184 of file CsIClusters.h.

References m_CsIClustersList.

Referenced by CalNtupleAlg::execute(), and CalRep::update().

00184 {return m_CsIClustersList[i];}

void CsIClusterList::ini   [protected, virtual]
 

Definition at line 61 of file CsIClusters.cpp.

00063 {
00064         m_CsIClustersList.clear();
00065 }

virtual void CsIClusterList::make   [inline, virtual]
 

Definition at line 188 of file CsIClusters.h.

00188 {}

int CsIClusterList::num   const [inline]
 

Definition at line 183 of file CsIClusters.h.

References m_CsIClustersList.

Referenced by CalNtupleAlg::execute().

00183 {return m_CsIClustersList.size();}

void CsIClusterList::setCalDisplay CalDisplay   calDisp [inline]
 

Definition at line 191 of file CsIClusters.h.

References m_calDisp.

Referenced by CalDisplay::execute().

00191 {m_calDisp = calDisp;}

void CsIClusterList::writeOut   const [virtual]
 

Definition at line 67 of file CsIClusters.cpp.

00069 {
00070 #if 0 // fix this to write to the log file for debug purposes
00071     if (m_CsIClustersList.size()<=0) return;
00072         
00073         std::cout << " --- CsIClusterList  --- " << m_CsIClustersList.size() <<"\n";
00074         for (int i = 0; i < m_CsIClustersList.size();i++) {
00075                 m_CsIClustersList[i]->writeOut();
00076         }
00077 #endif
00078 }


Member Data Documentation

CalDisplay* CsIClusterList::m_calDisp [private]
 

Definition at line 201 of file CsIClusters.h.

Referenced by CsIClusterList(), setCalDisplay(), and ~CsIClusterList().

std::vector<CsICluster*> CsIClusterList::m_CsIClustersList [private]
 

Definition at line 199 of file CsIClusters.h.

Referenced by add(), Cluster(), and num().


The documentation for this class was generated from the following files:
Generated on Thu Nov 29 16:38:54 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001