#include <CaloWindow.h>
Public Member Functions | |
bool | addEnergy (unsigned pane, double energy) |
CaloRing (unsigned nPanes) | |
CaloRing () | |
std::vector< double > | getEnergies () const |
double | getEnergy (unsigned pane) const |
unsigned | getNPanes () const |
void | printEnergies (std::ostream &s, double range=1.0) |
void | reset () |
bool | setEnergy (unsigned pane, double energy) |
double | totalE () const |
Private Attributes | |
std::vector< double > | myPanes_ |
unsigned | panes_ |
Friends | |
std::ostream & | operator<< (std::ostream &s, const CaloRing &caloRing) |
As we shall see, a CaloWindow is composed of a number of CaloRings. Each ring is divided into panes. Numbering of the panes starts from 0.
Definition at line 17 of file CaloWindow.h.
CaloRing::CaloRing | ( | ) |
Constructor for just one pane.
Definition at line 10 of file CaloWindow.cc.
References myPanes_.
CaloRing::CaloRing | ( | unsigned | nPanes | ) |
bool CaloRing::addEnergy | ( | unsigned | pane, |
double | energy | ||
) |
Adds energy to the specified pane
pane | - numbering starts from 0 |
energy |
Definition at line 36 of file CaloWindow.cc.
References relval_parameters_module::energy, myPanes_, and panes_.
Referenced by pftools::CaloWindow::addHit().
std::vector<double> pftools::CaloRing::getEnergies | ( | ) | const [inline] |
A copy of the vector of energies for each pane
Definition at line 71 of file CaloWindow.h.
References myPanes_.
Referenced by pftools::CaloWindow::stream().
{ return myPanes_; }
double CaloRing::getEnergy | ( | unsigned | pane | ) | const |
unsigned pftools::CaloRing::getNPanes | ( | ) | const [inline] |
Get the number of panes
Definition at line 79 of file CaloWindow.h.
References panes_.
{ return panes_; }
void CaloRing::printEnergies | ( | std::ostream & | s, |
double | range = 1.0 |
||
) |
Definition at line 60 of file CaloWindow.cc.
References myPanes_.
Referenced by pftools::CaloWindow::printEnergies().
void CaloRing::reset | ( | void | ) |
bool CaloRing::setEnergy | ( | unsigned | pane, |
double | energy | ||
) |
Sets the energy in the specified pane
pane | - numbering starts from 0 |
energy |
Definition at line 28 of file CaloWindow.cc.
References relval_parameters_module::energy, myPanes_, and panes_.
double CaloRing::totalE | ( | ) | const |
std::ostream& operator<< | ( | std::ostream & | s, |
const CaloRing & | caloRing | ||
) | [friend] |
std::vector<double> pftools::CaloRing::myPanes_ [private] |
Definition at line 88 of file CaloWindow.h.
Referenced by addEnergy(), CaloRing(), getEnergies(), getEnergy(), printEnergies(), reset(), setEnergy(), and totalE().
unsigned pftools::CaloRing::panes_ [private] |
Definition at line 87 of file CaloWindow.h.
Referenced by addEnergy(), getEnergy(), getNPanes(), and setEnergy().