ATLAS Offline Software
|
Describes a single element of the grid. More...
#include <PufitGrid.h>
Public Member Functions | |
Tower (const PufitGrid *parent, std::size_t index) | |
Create a tower with its parent. More... | |
Tower (const Tower &)=default | |
Tower & | operator= (const Tower &other) |
Copy assignment operator. More... | |
double | ex () const |
The x-component of this tower's energy. More... | |
double | ey () const |
The y-component of this tower's energy. More... | |
double | ez () const |
The z-component of this tower's energy. More... | |
double | sumEt () const |
The total sumEt in this tower. More... | |
double | sumE () const |
The total sumE in this tower. More... | |
double | phi () const |
This tower's kinematic phi. More... | |
double | eta () const |
This tower's kinematic eta. More... | |
bool | masked () const |
Whether or not this tower was masked. More... | |
void | mask (bool value=true) |
Set the mask on this tower. More... | |
virtual const PufitGrid * | grid () const override |
The parent grid of this tower. More... | |
SignedKinematics | kinematics () const |
Build a kinematics object from this tower. More... | |
operator SignedKinematics () const | |
Conversion operator. More... | |
Tower & | operator+= (const SignedKinematics &kin) |
Add a signed object to this tower. More... | |
Tower & | operator-= (const SignedKinematics &kin) |
Remove the energy of a signed object from this tower. More... | |
Tower & | operator+= (const Tower &other) |
Add another tower's energies into this one. More... | |
Tower & | operator-= (const Tower &other) |
Subtract another tower's energies from this one. More... | |
double | towerPhi () const |
The central phi coordinate of this tower. More... | |
double | towerEta () const |
The central eta coordinate of this tower. More... | |
std::size_t | index () const |
The global index of this tower. More... | |
std::size_t | etaIndex () const |
The eta index of this tower. More... | |
std::size_t | phiIndex () const |
The phi index of this tower. More... | |
std::pair< std::size_t, std::size_t > | etaPhiIndex () const |
The eta/phi indices of the tower together. More... | |
Private Attributes | |
const PufitGrid *const | m_parent |
The parent grid. More... | |
SignedKinematics | m_kin |
double | m_sumEt {0.} |
The summed et. More... | |
double | m_sumE {0.} |
The summed energy. More... | |
bool | m_mask {false} |
The mask value. More... | |
std::size_t | m_index |
Describes a single element of the grid.
There are two sets of directions here - the 'kinematic' directions which result from the sums of objects going into the towers and the tower coordinates themselves.
Definition at line 59 of file PufitGrid.h.
Create a tower with its parent.
parent | The parent grid of this tower |
index | The index of this tower in its parent's grid |
Definition at line 15 of file PufitGrid.cxx.
double HLT::MET::PufitGrid::Tower::eta | ( | ) | const |
|
inherited |
The eta index of this tower.
Definition at line 49 of file PeriodicGridBase.cxx.
|
inherited |
The eta/phi indices of the tower together.
Definition at line 59 of file PeriodicGridBase.cxx.
double HLT::MET::PufitGrid::Tower::ex | ( | ) | const |
The x-component of this tower's energy.
Definition at line 29 of file PufitGrid.cxx.
double HLT::MET::PufitGrid::Tower::ey | ( | ) | const |
The y-component of this tower's energy.
Definition at line 30 of file PufitGrid.cxx.
double HLT::MET::PufitGrid::Tower::ez | ( | ) | const |
The z-component of this tower's energy.
Definition at line 31 of file PufitGrid.cxx.
The parent grid of this tower.
Implements HLT::MET::PeriodicGridBase::Tower.
Definition at line 39 of file PufitGrid.cxx.
|
inherited |
The global index of this tower.
Definition at line 44 of file PeriodicGridBase.cxx.
SignedKinematics HLT::MET::PufitGrid::Tower::kinematics | ( | ) | const |
Build a kinematics object from this tower.
Definition at line 41 of file PufitGrid.cxx.
void HLT::MET::PufitGrid::Tower::mask | ( | bool | value = true | ) |
bool HLT::MET::PufitGrid::Tower::masked | ( | ) | const |
HLT::MET::PufitGrid::Tower::operator SignedKinematics | ( | ) | const |
PufitGrid::Tower & HLT::MET::PufitGrid::Tower::operator+= | ( | const SignedKinematics & | kin | ) |
Add a signed object to this tower.
No check is done to make sure that this is the right bin. The momentum of the kinematics will be used. If you do not want this (i.e. you want mass to be ignored) you should construct the kinematics without mass.
Definition at line 47 of file PufitGrid.cxx.
PufitGrid::Tower & HLT::MET::PufitGrid::Tower::operator+= | ( | const Tower & | other | ) |
PufitGrid::Tower & HLT::MET::PufitGrid::Tower::operator-= | ( | const SignedKinematics & | kin | ) |
Remove the energy of a signed object from this tower.
No check is done to make sure that this is the right bin. The momentum of the kinematics will be used. If you do not want this (i.e. you want mass to be ignored) you should construct the kinematics without mass.
Definition at line 54 of file PufitGrid.cxx.
PufitGrid::Tower & HLT::MET::PufitGrid::Tower::operator-= | ( | const Tower & | other | ) |
PufitGrid::Tower & HLT::MET::PufitGrid::Tower::operator= | ( | const Tower & | other | ) |
Copy assignment operator.
This will not copy the other tower's parent. Each tower's parent is fixed from construction! This only copies the energy and masking information over.
Definition at line 20 of file PufitGrid.cxx.
double HLT::MET::PufitGrid::Tower::phi | ( | ) | const |
|
inherited |
The phi index of this tower.
Definition at line 54 of file PeriodicGridBase.cxx.
double HLT::MET::PufitGrid::Tower::sumE | ( | ) | const |
double HLT::MET::PufitGrid::Tower::sumEt | ( | ) | const |
|
inherited |
The central eta coordinate of this tower.
Definition at line 39 of file PeriodicGridBase.cxx.
|
inherited |
The central phi coordinate of this tower.
Definition at line 34 of file PeriodicGridBase.cxx.
|
privateinherited |
Definition at line 109 of file PeriodicGridBase.h.
|
private |
Definition at line 147 of file PufitGrid.h.
|
private |
The mask value.
Definition at line 153 of file PufitGrid.h.
The parent grid.
Definition at line 145 of file PufitGrid.h.
|
private |
The summed energy.
Definition at line 151 of file PufitGrid.h.
|
private |
The summed et.
Definition at line 149 of file PufitGrid.h.