![]() |
ATLAS Offline Software
|
Principal data object for Missing ET. More...
#include <MissingET_v1.h>
Public Member Functions | |
Constructors and destructor | |
| MissingET_v1 (bool createStore=false) | |
| Default constructor. | |
| MissingET_v1 (const std::string &name, MissingETBase::Types::bitmask_t src=MissingETBase::Source::unknown()) | |
| Constructor with identifiers. | |
| MissingET_v1 (const IParticle *particle, const std::string &name=s_defaultName, MissingETBase::Types::bitmask_t src=MissingETBase::Source::unknown()) | |
| Constructor with particle. | |
| MissingET_v1 (float mpx, float mpy, float sumet, const std::string &name=s_defaultName, MissingETBase::Types::bitmask_t src=MissingETBase::Source::unknown()) | |
| Constructor with initial kinematics. | |
| MissingET_v1 (const MissingET_v1 &met) | |
| Copy constructor. | |
| ~MissingET_v1 () | |
| Implementation class destructor. | |
Kinematic accessors | |
| float | mpx () const |
| Returns \( p_{x}^{\rm miss} \). | |
| float | mpy () const |
| Returns \( p_{y}^{\rm miss} \). | |
| float | met () const |
| Returns \( E_{\rm T}^{\rm miss} = \sqrt{(p_{x}^{\rm miss})^{2} + (p_{y}^{\rm miss})^{2}} \). | |
| float | phi () const |
| Returns \( \phi(E_{\rm T}^{\rm miss}) \). | |
| float | sumet () const |
| Returns. | |
Kinematic setters | |
| void | setMpx (float value) |
| Set the \( p_{x}^{\rm miss} \) component. | |
| void | setMpy (float value) |
| Set the \( p_{y}^{\rm miss} \) component. | |
| void | setSumet (float value) |
| Set \( \Sigma E_{\rm T} \). | |
| const std::string & | name () const |
| Identifier getters. | |
| MissingETBase::Types::bitmask_t | source () const |
| MET object source tag. | |
| std::size_t | nameHash () const |
| Return hash associated to the MET object name. | |
Identifier setters | |
| void | setName (const std::string &name) |
| Set the name of the MET object. | |
| void | setSource (MissingETBase::Types::bitmask_t src) |
| Set the source of the MET object. | |
| void | updateHash () |
| Update the hash to match the current name. | |
Manipulating the kinematic data | |
| void | add (const IParticle *particle) |
| Add particle kinematics to MET. | |
| void | add (const IParticle *particle, float scale) |
| Add scaled particle kinematics to MET. | |
| void | add (float px, float py, float pt) |
| Add kinematic variables to MET. | |
| MissingET_v1 & | operator= (const MissingET_v1 &met) |
| Add particle kinematics to MET. | |
| MissingET_v1 & | operator+= (const IParticle *particle) |
| Add particle kinematics to MET. | |
| MissingET_v1 & | operator-= (const IParticle *part) |
| Remove particle kinematics to MET. | |
MET object algebra | |
| MissingET_v1 & | operator+= (const MissingET_v1 &met) |
| Add another MET object. | |
| MissingET_v1 & | operator-= (const MissingET_v1 &met) |
| Subtract another MET object. | |
| MissingET_v1 & | operator*= (float scale) |
| Applying a scale factor. | |
| MissingET_v1 & | operator/= (float scale) |
| Dividing by a scale factor. | |
Stored data management | |
| void | clear () |
| Clear/reset the data store. | |
Comparators | |
| bool | operator== (const MissingET_v1 &met) const |
| Equality test. | |
| bool | operator!= (const MissingET_v1 &met) const |
| Inequality test. | |
Protected Member Functions | |
| void | createPrivateStore () |
| Function initialising the object to work in standalone mode. | |
Internal data modification support | |
| float & | f_mpx () |
| Returns reference to \( p_{x} \) store. | |
| float & | f_mpy () |
| Returns reference to \( p_{y} \) store. | |
| float & | f_sumet () |
| Returns reference to \( \Sigma E_{\rm T} \) store. | |
| std::string & | f_name () |
| Returns reference to MET object name store. | |
| const std::string & | f_nameConst () const |
| Returns const reference to the MET object name store. | |
| MissingETBase::Types::bitmask_t & | f_source () |
| Returns reference to MET object source store. | |
Private Attributes | |
| CxxUtils::CachedValue< std::size_t > | m_nameHash |
| Stores the hash for the current f_name string. | |
Static Private Attributes | |
| static const std::string | s_defaultName {"MissingET"} |
| static const SG::AuxElement::Accessor< float > | m_acc_mpx |
| static const SG::AuxElement::Accessor< float > | m_acc_mpy |
| static const SG::AuxElement::Accessor< float > | m_acc_sumet |
Principal data object for Missing ET.
Definition at line 24 of file MissingET_v1.h.
|
explicit |
Default constructor.
Definition at line 20 of file MissingET_v1.cxx.
| MissingET_v1::MissingET_v1 | ( | const std::string & | name, |
| MissingETBase::Types::bitmask_t | src = MissingETBase::Source::unknown() ) |
Constructor with identifiers.
Definition at line 29 of file MissingET_v1.cxx.
| MissingET_v1::MissingET_v1 | ( | const IParticle * | particle, |
| const std::string & | name = s_defaultName, | ||
| MissingETBase::Types::bitmask_t | src = MissingETBase::Source::unknown() ) |
Constructor with particle.
Definition at line 52 of file MissingET_v1.cxx.
| MissingET_v1::MissingET_v1 | ( | float | mpx, |
| float | mpy, | ||
| float | sumet, | ||
| const std::string & | name = s_defaultName, | ||
| MissingETBase::Types::bitmask_t | src = MissingETBase::Source::unknown() ) |
Constructor with initial kinematics.
Definition at line 39 of file MissingET_v1.cxx.
| MissingET_v1::MissingET_v1 | ( | const MissingET_v1 & | met | ) |
Copy constructor.
Definition at line 63 of file MissingET_v1.cxx.
| MissingET_v1::~MissingET_v1 | ( | ) |
Add particle kinematics to MET.
Definition at line 77 of file MissingET_v1.cxx.
Add scaled particle kinematics to MET.
Definition at line 86 of file MissingET_v1.cxx.
| void xAOD::MissingET_v1::clear | ( | ) |
Clear/reset the data store.
|
protected |
Function initialising the object to work in standalone mode.
This function is added because in standalone mode we can't use C++11.
So we can't rely on constructors calling each other. Which means that the same functionality is instead now implemented in this old style.
Definition at line 121 of file MissingET_v1.cxx.
|
protected |
Returns reference to \( p_{x} \) store.
|
protected |
Returns reference to \( p_{y} \) store.
|
protected |
Returns reference to MET object name store.
|
protected |
Returns const reference to the MET object name store.
|
protected |
Returns reference to MET object source store.
|
protected |
Returns reference to \( \Sigma E_{\rm T} \) store.
| float xAOD::MissingET_v1::met | ( | ) | const |
Returns \( E_{\rm T}^{\rm miss} = \sqrt{(p_{x}^{\rm miss})^{2} + (p_{y}^{\rm miss})^{2}} \).
| float xAOD::MissingET_v1::mpx | ( | ) | const |
Returns \( p_{x}^{\rm miss} \).
| float xAOD::MissingET_v1::mpy | ( | ) | const |
Returns \( p_{y}^{\rm miss} \).
| const std::string & xAOD::MissingET_v1::name | ( | ) | const |
Identifier getters.
MET object name
| std::size_t xAOD::MissingET_v1::nameHash | ( | ) | const |
Return hash associated to the MET object name.
| bool xAOD::MissingET_v1::operator!= | ( | const MissingET_v1 & | met | ) | const |
Inequality test.
| MissingET_v1 & xAOD::MissingET_v1::operator*= | ( | float | scale | ) |
Applying a scale factor.
| MissingET_v1 & xAOD::MissingET_v1::operator+= | ( | const IParticle * | particle | ) |
Add particle kinematics to MET.
| MissingET_v1 & xAOD::MissingET_v1::operator+= | ( | const MissingET_v1 & | met | ) |
Add another MET object.
| MissingET_v1 & MissingET_v1::operator-= | ( | const IParticle * | part | ) |
Remove particle kinematics to MET.
Definition at line 109 of file MissingET_v1.cxx.
| MissingET_v1 & xAOD::MissingET_v1::operator-= | ( | const MissingET_v1 & | met | ) |
Subtract another MET object.
| MissingET_v1 & xAOD::MissingET_v1::operator/= | ( | float | scale | ) |
Dividing by a scale factor.
| MissingET_v1 & MissingET_v1::operator= | ( | const MissingET_v1 & | met | ) |
| bool xAOD::MissingET_v1::operator== | ( | const MissingET_v1 & | met | ) | const |
Equality test.
| float xAOD::MissingET_v1::phi | ( | ) | const |
Returns \( \phi(E_{\rm T}^{\rm miss}) \).
| void xAOD::MissingET_v1::setSource | ( | MissingETBase::Types::bitmask_t | src | ) |
| MissingETBase::Types::bitmask_t xAOD::MissingET_v1::source | ( | ) | const |
MET object source tag.
| float xAOD::MissingET_v1::sumet | ( | ) | const |
Returns.
| void xAOD::MissingET_v1::updateHash | ( | ) |
Update the hash to match the current name.
Definition at line 119 of file MissingET_v1.h.
Definition at line 120 of file MissingET_v1.h.
Definition at line 121 of file MissingET_v1.h.
|
private |
Stores the hash for the current f_name string.
Definition at line 117 of file MissingET_v1.h.
|
inlinestaticprivate |
Definition at line 116 of file MissingET_v1.h.