|
ATLAS Offline Software
|
Go to the documentation of this file.
22 m_kin =
other.kinematics();
23 m_sumEt =
other.sumEt();
24 m_sumE =
other.sumE();
25 m_mask =
other.masked();
63 m_kin +=
other.kinematics();
64 m_sumEt +=
other.sumEt();
65 m_sumE +=
other.sumE();
70 m_kin -=
other.kinematics();
71 m_sumEt -=
other.sumEt();
72 m_sumE -=
other.sumE();
102 throw std::invalid_argument(
"Grid parameters do not match!");
118 bool outOfRange =
false;
127 bool outOfRange =
false;
135 const std::pair<std::size_t, std::size_t> &
indices)
140 const std::pair<std::size_t, std::size_t> &
indices)
const
177 for (
const Tower &tower : *
this)
181 for (
const Tower &tower : *
this)
186 for (
const Tower &tower : *
this)
197 throw std::invalid_argument(
"Grid parameters do not match");
199 auto otherItr =
other.begin();
200 for (; itr !=
end(); ++itr, ++otherItr)
207 throw std::invalid_argument(
"Grid parameters do not match");
209 auto otherItr =
other.begin();
210 for (; itr !=
end(); ++itr, ++otherItr)
237 return grids[displacement];
241 return grids[displacement];
bool displacePhi() const
Whether or not this is displaced in phi.
JetConstituentVector::iterator iterator
Bins energy deposits into a grid.
Tower & operator-=(const SignedKinematics &kin)
Remove the energy of a signed object from this tower.
Tower & operator=(const Tower &other)
Copy assignment operator.
std::size_t nPhiTowers() const
The number of phi bins.
bool masked() const
Whether or not this tower was masked.
void reset()
Reset the internal storage.
METComponent sum(SumStrategy strategy=SumStrategy::All) const
std::pair< long int, long int > indices
Helper struct to contain a full set of grids.
PufitGrid & operator-=(const SignedKinematics &kin)
Remove the energy of a signed object from this grid.
std::size_t getIndex(double eta, double phi, bool &outOfRange) const
Get the index for the given eta, phi values.
double pt() const
(signed) pt
constexpr int nPhi
Default bin number of phi for vertex map.
PufitGrid & operator+=(const SignedKinematics &kin)
Add a signed object to this grid.
PufitGridSet(double maxEta, std::size_t nEta, std::size_t nPhi)
bool displaceEta() const
Whether or not this is displaced in eta.
GridDisplacement
Enum to describe the positioning of the grid.
PufitGrid & operator=(const PufitGrid &other)
Assignment operator.
Class to describe the kinematics of an object that can have negative energies.
Tower & operator+=(const SignedKinematics &kin)
Add a signed object to this tower.
const GridParameters & parameters() const
The grid parameters.
double ey() const
The y-component of this tower's energy.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
std::vector< Tower >::iterator end()
Iterator end point.
std::array< PufitGrid, 4 > grids
PufitGridSet & operator-=(const SignedKinematics &kin)
Subtract kinematics.
double sumEt() const
The total sumEt in this tower.
Describes a single element of the grid.
std::vector< Tower > m_towers
double eta() const
This tower's kinematic eta.
std::vector< Tower >::iterator begin()
Access by iterator.
void fill(H5::Group &out_file, size_t iterations)
PufitGrid & operator[](GridDisplacement displacement)
Select a grid.
double maxEta() const
The maximum eta range for the grid.
Helper struct to build up MET values before moving them into the EDM.
std::size_t globalIndex(std::size_t iEta, std::size_t iPhi) const
Convert eta and phi to a global index.
PufitGrid(double maxEta, std::size_t nEtaTowers, std::size_t nPhiTowers, bool displaceEta=false, bool displacePhi=false)
Create a new tower grid.
Base class for grids used in some of the pufit algorithms.
virtual const PufitGrid * grid() const override
The parent grid of this tower.
double sumE() const
The total sumE in this tower.
Tower & operator[](const std::pair< std::size_t, std::size_t > &indices)
Access stored value by eta/phi index (access is bounds-checked)
double ez() const
The z-component of this tower's energy.
SignedKinematics kinematics() const
Build a kinematics object from this tower.
double ex() const
The x-component of this tower's energy.
Parameters describing a grid.
std::size_t nTowers() const
The number of bins.
Tower(const PufitGrid *parent, std::size_t index)
Create a tower with its parent.
PufitGrid operator-(const PufitGrid &lhs, const PufitGrid &rhs)
Elementwise subtraction.
PufitGridSet & operator+=(const SignedKinematics &kin)
Add kinematics.
double energy() const
Energy values (signed) energy.
constexpr int nEta
Default bin number of eta for vertex map.
void mask(bool value=true)
Set the mask on this tower.
SumStrategy
Helper enum to describe how to sum over towers.
double phi() const
This tower's kinematic phi.
METComponent operator+(const METComponent &lhs, const METComponent &rhs)
double eta() const
Direction.
std::size_t nEtaTowers() const
The number of eta bins.