#include <CaloWindow.h>
Public Member Functions | |
bool | addEnergy (unsigned pane, double energy) |
CaloRing () | |
CaloRing (unsigned nPanes) | |
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 | ) |
Constructor for nPanes
nPanes | the number of panes |
Definition at line 15 of file CaloWindow.cc.
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().
|
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().
double CaloRing::getEnergy | ( | unsigned | pane | ) | const |
Energy contained in that pane
pane | - numbering starts from 0 |
Definition at line 21 of file CaloWindow.cc.
References myPanes_, and panes_.
|
inline |
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 |
Total energy contained by this CaloRing
Definition at line 44 of file CaloWindow.cc.
References myPanes_.
|
friend |
|
private |
Definition at line 88 of file CaloWindow.h.
Referenced by addEnergy(), CaloRing(), getEnergies(), getEnergy(), printEnergies(), reset(), setEnergy(), and totalE().
|
private |
Definition at line 87 of file CaloWindow.h.
Referenced by addEnergy(), getEnergy(), getNPanes(), and setEnergy().