#include <CaloWindow.h>
|
bool | addHit (double eta, double phi, double energy) |
|
| CaloWindow () |
|
| CaloWindow (double eta, double phi, unsigned nRings, double deltaR, unsigned nPanes, double axis=0.0) |
|
std::map< unsigned, CaloRing > | getRingDepositions () const |
|
std::map< unsigned, double > | getRingEnergySummations () const |
|
void | init (double eta, double phi, unsigned nRings, double deltaR, unsigned nPanes, double axis=0.0) |
|
void | printEnergies (std::ostream &s, double range=1.0) |
|
void | reset () |
|
std::vector< double > | stream (double normalisation=1.0) const |
|
virtual | ~CaloWindow () |
|
Definition at line 94 of file CaloWindow.h.
CaloWindow::CaloWindow |
( |
| ) |
|
CaloWindow::CaloWindow |
( |
double |
eta, |
|
|
double |
phi, |
|
|
unsigned |
nRings, |
|
|
double |
deltaR, |
|
|
unsigned |
nPanes, |
|
|
double |
axis = 0.0 |
|
) |
| |
Create a circular calo window centred on eta, phi, with nRings of size deltaR.
Definition at line 129 of file CaloWindow.cc.
CaloWindow::~CaloWindow |
( |
| ) |
|
|
virtual |
bool CaloWindow::addHit |
( |
double |
eta, |
|
|
double |
phi, |
|
|
double |
energy |
|
) |
| |
Adds a hit contribution. If eta, phi are outside the window, this method returns false and does not add the energy to the window.
If ok, it returns true.
Definition at line 226 of file CaloWindow.cc.
std::map<unsigned, CaloRing> pftools::CaloWindow::getRingDepositions |
( |
| ) |
const |
|
inline |
Return a vector of vectors: Each inner vector corresponds to a ring of window panes around the barycentre and the first entry of the bary centre itself
Definition at line 122 of file CaloWindow.h.
References energies_.
std::map< unsigned, double > CaloWindow::getRingEnergySummations |
( |
| ) |
const |
void CaloWindow::init |
( |
double |
eta, |
|
|
double |
phi, |
|
|
unsigned |
nRings, |
|
|
double |
deltaR, |
|
|
unsigned |
nPanes, |
|
|
double |
axis = 0.0 |
|
) |
| |
void CaloWindow::printEnergies |
( |
std::ostream & |
s, |
|
|
double |
range = 1.0 |
|
) |
| |
std::pair< unsigned, unsigned > CaloWindow::relativePosition |
( |
double |
eta, |
|
|
double |
phi |
|
) |
| const |
|
private |
void CaloWindow::reset |
( |
void |
| ) |
|
vector< double > CaloWindow::stream |
( |
double |
normalisation = 1.0 | ) |
const |
Collapses all energies in all CaloRings into one vector of doubles
- Parameters
-
normalisation | - divide each energy by this value |
- Returns
- a vector of doubles
Definition at line 95 of file CaloWindow.cc.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const CaloWindow & |
caloWindow |
|
) |
| |
|
friend |
double pftools::CaloWindow::axis_ |
|
private |
double pftools::CaloWindow::baryEta_ |
|
private |
double pftools::CaloWindow::baryPhi_ |
|
private |
double pftools::CaloWindow::deltaR_ |
|
private |
std::map<unsigned, CaloRing> pftools::CaloWindow::energies_ |
|
private |
unsigned pftools::CaloWindow::nPanes_ |
|
private |
unsigned pftools::CaloWindow::nRings_ |
|
private |