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

TowerArray Class Reference

Defintition of class TowerArray, a base class for an array of calorimeter towers, implementing a rectangular array here. More...

#include <TowerArray.h>

Inheritance diagram for TowerArray:

DetectorFrame TowerElementList Detector GeomObject List of all members.

Public Methods

 TowerArray ( int nx, int ny, float lx, float ly, float z, float eR)
 constructor. More...

virtual ~TowerArray ()
 destructor. More...

virtual void score (MCParticle* )
 deside whether to accumluate energy and calc. howmuch to accumulate. More...

float scoreTower (long, float)
 accumulate some energy into a specific Tower. (return total energy). More...

virtual void clear ()
 remove the accumulated energy information. More...

virtual void draw (gui::DisplayRep&) const
 construct and display boxes for each hit tower. More...

int hits () const
 access to array of hit crystals. More...

Point xtalPos (unsigned i) const
long xtalId (unsigned i) const
float energy (unsigned i) const
virtual void readData (std::istream&)
 read or write data to an open stream. More...

virtual void writeData (std::ostream&)
virtual void writeParameters (std::ostream&) const
 write basic parameters to an open stream. More...

virtual void printOn (std::ostream&) const
 print hist. More...

const char* nameOf () const
 so subclasses don't have to implement (requirement from GeomObject). More...

virtual void generateResponse ()
 Called after propagation. More...

Point* meanEnergy (float, float *, int *)
float displayScale () const
 get the scale used to display deposited energy. More...


Static Public Attributes

float s_display_scale = 10.

Protected Methods

virtual long calculateIndex (const Point&) const
virtual void calculateBin (long,float&,float&) const
TowerElementtowers (int i)
const TowerElementtowers (int i) const

Protected Attributes

int xSegmentation
int ySegmentation
float xWidth
float yWidth
float zPlane
float energyResolution

Detailed Description

Defintition of class TowerArray, a base class for an array of calorimeter towers, implementing a rectangular array here.

TowerElement is a private data structure.

Definition at line 48 of file TowerArray.h.


Constructor & Destructor Documentation

TowerArray::TowerArray ( int nx,
int ny,
float lx,
float ly,
float z,
float eR ) [inline]
 

constructor.

Definition at line 53 of file TowerArray.h.

TowerArray::~TowerArray ( ) [virtual]
 

destructor.

Definition at line 229 of file TowerArray.cxx.


Member Function Documentation

void TowerArray::calculateBin ( long ind,
float & xmin,
float & ymin ) const [protected, virtual]
 

Definition at line 81 of file TowerArray.cxx.

Referenced by meanEnergy().

long TowerArray::calculateIndex ( const Point & point ) const [protected, virtual]
 

Definition at line 65 of file TowerArray.cxx.

Referenced by score().

void TowerArray::clear ( ) [virtual]
 

remove the accumulated energy information.

Reimplemented from Detector.

Definition at line 114 of file TowerArray.cxx.

Referenced by readData(), and ~TowerArray().

float TowerArray::displayScale ( ) const [inline]
 

get the scale used to display deposited energy.

Definition at line 96 of file TowerArray.h.

void TowerArray::draw ( gui::DisplayRep & view ) const [virtual]
 

construct and display boxes for each hit tower.

Reimplemented from Detector.

Definition at line 161 of file TowerArray.cxx.

float TowerArray::energy ( unsigned i ) const
 

Definition at line 93 of file TowerArray.cxx.

void TowerArray::generateResponse ( ) [virtual]
 

Called after propagation.

Reimplemented from Detector.

Definition at line 120 of file TowerArray.cxx.

int TowerArray::hits ( ) const
 

access to array of hit crystals.

Definition at line 90 of file TowerArray.cxx.

Point * TowerArray::meanEnergy ( float Ethres,
float * Etotal,
int * numTowers )
 

Definition at line 133 of file TowerArray.cxx.

const char * TowerArray::nameOf ( ) const [inline, virtual]
 

so subclasses don't have to implement (requirement from GeomObject).

Reimplemented from Detector.

Definition at line 90 of file TowerArray.h.

void TowerArray::printOn ( std::ostream & cout ) const [virtual]
 

print hist.

Reimplemented from Detector.

Definition at line 204 of file TowerArray.cxx.

void TowerArray::readData ( std::istream & is ) [virtual]
 

read or write data to an open stream.

Reimplemented from Detector.

Definition at line 184 of file TowerArray.cxx.

void TowerArray::score ( MCParticle * track ) [virtual]
 

deside whether to accumluate energy and calc. howmuch to accumulate.

Reimplemented from Detector.

Definition at line 21 of file TowerArray.cxx.

float TowerArray::scoreTower ( long ix,
float deltaE )
 

accumulate some energy into a specific Tower. (return total energy).

Definition at line 36 of file TowerArray.cxx.

Referenced by score().

const TowerElement * TowerArray::towers ( int i ) const [inline, protected]
 

Definition at line 123 of file TowerArray.h.

TowerElement * TowerArray::towers ( int i ) [inline, protected]
 

Definition at line 122 of file TowerArray.h.

void TowerArray::writeData ( std::ostream & os ) [virtual]
 

Reimplemented from Detector.

Definition at line 196 of file TowerArray.cxx.

void TowerArray::writeParameters ( std::ostream & out ) const [virtual]
 

write basic parameters to an open stream.

Definition at line 220 of file TowerArray.cxx.

long TowerArray::xtalId ( unsigned i ) const
 

Definition at line 110 of file TowerArray.cxx.

Point TowerArray::xtalPos ( unsigned i ) const
 

Definition at line 98 of file TowerArray.cxx.


Member Data Documentation

float TowerArray::energyResolution [protected]
 

Definition at line 112 of file TowerArray.h.

float TowerArray::s_display_scale = 10. [static]
 

Definition at line 18 of file TowerArray.cxx.

int TowerArray::xSegmentation [protected]
 

Definition at line 101 of file TowerArray.h.

float TowerArray::xWidth [protected]
 

Definition at line 105 of file TowerArray.h.

int TowerArray::ySegmentation [protected]
 

Definition at line 102 of file TowerArray.h.

float TowerArray::yWidth [protected]
 

Definition at line 106 of file TowerArray.h.

float TowerArray::zPlane [protected]
 

Definition at line 109 of file TowerArray.h.


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