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

SiClusters Class Reference

#include <SiClusters.h>

Inheritance diagram for SiClusters:

DataObject List of all members.

Public Methods

 SiClusters (int nViews, int nPlanes, double stripPitch, double towerPitch)
 default constructor (ini the container). More...

virtual ~SiClusters ()
 destructor (delete the siclusters in the lists). More...

virtual const CLID& clID () const
void addCluster (SiCluster* cl)
 add a SiCluster into the list. More...

int nHits () const
 number of total clusters. More...

SiClustergetHit (int i) const
 returns SiClusters pointer in i position (note i position = id of the cluster). More...

void flagHit (SiCluster::view v, int id, int iflag=1)
 flag SiCluster with id (view obsolete). More...

void unflagHit (SiCluster::view v, int id)
 unflag SiCluster with id (view obsolete). More...

bool hitFlagged (SiCluster::view v, int id)
 returns if the SiCluster with id is flagged (view obsolete). More...

SiClustergetHit (SiCluster::view v, int id)
 returns SiCluster pointer with id (view obsolete). More...

Point const position (SiCluster::view v, int id)
 returns SiCluster space position with id (view obsolete). More...

double const size (SiCluster::view v, int id)
 returns size of the cluster with id (view obsolete). More...

double const stripPitch ()
 Returns the strip pitch stored from geometry file. More...

double const towerPitch ()
 Returns the tray width stored from geometry file. More...

std::vector<SiCluster*>& getHits (SiCluster::view v, int iplane)
int nHits (SiCluster::view v, int iplane)
 returns the number of SiClusters in a given view and plane. More...

void flagHitsInPlane (SiCluster::view v, int iplane)
 flag the list of SiCluster of a given view and plane. More...

virtual void clear ()
 delete the list of clusters. More...

virtual void make ()
 emty class. More...

void writeOut (MsgStream& log) const
 write out the information of the SiLayers. More...

void update (gui::DisplayRep& v)
 draws the SiClusters. More...

Point meanHit (SiCluster::view v, int iplane)
 returns the mean point in the space for a given view and plane. More...

Point meanHitInside (SiCluster::view v, int iplane, double size, Point Pini)
 returns the mean point in the space for a given plane, view, around a radius (size) of a given Point. More...

Point nearestHitOutside (SiCluster::view v, int iplane, double inRadius, Point centerX, int& id)
int numberOfHitsNear ( int iPlane, double inRadius, Point& x0)
 Finds the number of clusters near a given point. More...

int numberOfHitsNear ( int iPlane, double dX, double dY, Point& x0)
int numberOfHitsNear ( SiCluster::view v, int iPlane, double inRadius, Point& x0)

Static Public Methods

const CLID& classID ()
 GAUDI members to be use by the converters. More...


Private Methods

virtual void ini ()
 intialize the SiClusters. More...

void draw (gui::DisplayRep& v)
 draws the SiClusters. More...


Private Attributes

double m_stripPitch
 Strip pitch. More...

double m_towerPitch
 Tray width. More...

int numViews
int numPlanes
std::vector<SiCluster*> m_clustersList
std::vector<SiCluster*> m_clustersByPlaneList [NVIEWS][NPLANES]

Constructor & Destructor Documentation

SiClusters::SiClusters ( int nViews,
int nPlanes,
double stripPitch,
double towerPitch )
 

default constructor (ini the container).

Definition at line 112 of file SiClusters.cpp.

SiClusters::~SiClusters ( ) [virtual]
 

destructor (delete the siclusters in the lists).

Definition at line 122 of file SiClusters.cpp.


Member Function Documentation

void SiClusters::addCluster ( SiCluster * cl )
 

add a SiCluster into the list.

Definition at line 130 of file SiClusters.cpp.

Referenced by SiClustersAlg::execute().

const CLID & SiClusters::clID ( ) const [inline, virtual]
 

Definition at line 152 of file SiClusters.h.

const CLID & SiClusters::classID ( ) [inline, static]
 

GAUDI members to be use by the converters.

Definition at line 151 of file SiClusters.h.

Referenced by clID().

void SiClusters::clear ( ) [virtual]
 

delete the list of clusters.

Definition at line 138 of file SiClusters.cpp.

Referenced by ~SiClusters().

void SiClusters::draw ( gui::DisplayRep & v ) [private]
 

draws the SiClusters.

Definition at line 361 of file SiClusters.cpp.

Referenced by update().

void SiClusters::flagHit ( SiCluster::view v,
int id,
int iflag = 1 ) [inline]
 

flag SiCluster with id (view obsolete).

Definition at line 163 of file SiClusters.h.

void SiClusters::flagHitsInPlane ( SiCluster::view v,
int iplane )
 

flag the list of SiCluster of a given view and plane.

Definition at line 343 of file SiClusters.cpp.

SiCluster * SiClusters::getHit ( SiCluster::view v,
int id ) [inline]
 

returns SiCluster pointer with id (view obsolete).

Definition at line 170 of file SiClusters.h.

SiCluster * SiClusters::getHit ( int i ) const [inline]
 

returns SiClusters pointer in i position (note i position = id of the cluster).

Definition at line 160 of file SiClusters.h.

Referenced by flagHit(), hitFlagged(), position(), size(), unflagHit(), and TkrClustersRep::update().

std::vector< SiCluster *>& SiClusters::getHits ( SiCluster::view v,
int iplane ) [inline]
 

returns a reference to a vector of SiClusters pointer with the list of SiClusters pointer that belong to a given view and plane

Definition at line 183 of file SiClusters.h.

Referenced by nHits().

bool SiClusters::hitFlagged ( SiCluster::view v,
int id ) [inline]
 

returns if the SiCluster with id is flagged (view obsolete).

Definition at line 167 of file SiClusters.h.

void SiClusters::ini ( ) [private, virtual]
 

intialize the SiClusters.

Definition at line 148 of file SiClusters.cpp.

Referenced by SiClusters().

void SiClusters::make ( ) [inline, virtual]
 

emty class.

Definition at line 196 of file SiClusters.h.

Point SiClusters::meanHit ( SiCluster::view v,
int iplane )
 

returns the mean point in the space for a given view and plane.

Definition at line 161 of file SiClusters.cpp.

Point SiClusters::meanHitInside ( SiCluster::view v,
int iplane,
double inRadius,
Point Pcenter )
 

returns the mean point in the space for a given plane, view, around a radius (size) of a given Point.

Definition at line 178 of file SiClusters.cpp.

int SiClusters::nHits ( SiCluster::view v,
int iplane ) [inline]
 

returns the number of SiClusters in a given view and plane.

Definition at line 187 of file SiClusters.h.

int SiClusters::nHits ( ) const [inline]
 

number of total clusters.

Definition at line 158 of file SiClusters.h.

Referenced by TkrTupleValues::calcTupleValues(), and TkrClustersRep::update().

Point SiClusters::nearestHitOutside ( SiCluster::view v,
int iplane,
double inRadius,
Point Pcenter,
int & id )
 

returns the nearest point around a view and a plane, inside a inner radius centered in a Point. It also returns the id of the cluser (a reference to the id)

Definition at line 226 of file SiClusters.cpp.

int SiClusters::numberOfHitsNear ( SiCluster::view v,
int iPlane,
double inRadius,
Point & x0 )
 

Definition at line 317 of file SiClusters.cpp.

int SiClusters::numberOfHitsNear ( int iPlane,
double dX,
double dY,
Point & x0 )
 

Definition at line 284 of file SiClusters.cpp.

int SiClusters::numberOfHitsNear ( int iPlane,
double inRadius,
Point & x0 )
 

Finds the number of clusters near a given point.

Definition at line 277 of file SiClusters.cpp.

Referenced by RecTupleValues::calcExtraHits().

Point const SiClusters::position ( SiCluster::view v,
int id ) [inline]
 

returns SiCluster space position with id (view obsolete).

Definition at line 172 of file SiClusters.h.

double const SiClusters::size ( SiCluster::view v,
int id ) [inline]
 

returns size of the cluster with id (view obsolete).

Definition at line 174 of file SiClusters.h.

Referenced by GFtutor::okClusterSize().

double const SiClusters::stripPitch ( ) [inline]
 

Returns the strip pitch stored from geometry file.

Definition at line 177 of file SiClusters.h.

Referenced by TkrClustersRep::update().

double const SiClusters::towerPitch ( ) [inline]
 

Returns the tray width stored from geometry file.

Definition at line 179 of file SiClusters.h.

Referenced by TkrClustersRep::update().

void SiClusters::unflagHit ( SiCluster::view v,
int id ) [inline]
 

unflag SiCluster with id (view obsolete).

Definition at line 165 of file SiClusters.h.

void SiClusters::update ( gui::DisplayRep & v ) [inline]
 

draws the SiClusters.

Definition at line 201 of file SiClusters.h.

void SiClusters::writeOut ( MsgStream & log ) const
 

write out the information of the SiLayers.

Definition at line 351 of file SiClusters.cpp.

Referenced by SiClustersAlg::execute().


Member Data Documentation

std::vector< SiCluster *> SiClusters::m_clustersByPlaneList[NVIEWS][NPLANES] [private]
 

Definition at line 241 of file SiClusters.h.

std::vector< SiCluster *> SiClusters::m_clustersList [private]
 

Definition at line 239 of file SiClusters.h.

double SiClusters::m_stripPitch [private]
 

Strip pitch.

Definition at line 229 of file SiClusters.h.

double SiClusters::m_towerPitch [private]
 

Tray width.

Definition at line 231 of file SiClusters.h.

int SiClusters::numPlanes [private]
 

Definition at line 238 of file SiClusters.h.

int SiClusters::numViews [private]
 

the clusters are organized in two lists: a) One containes the list of all clusters, b) the other one has them ordered by plane and view to facilitate access to Pattern Recognition functions. This needs to be change into vectors<vector<T>> and not use NVIEWs and NPLANES!

Definition at line 237 of file SiClusters.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:21:29 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000