Kinematic weight descriptor. More...
#include <MissingETComponent_v1.h>
Public Member Functions | |
Weight () | |
Default constructor. | |
Weight (double wpx, double wpy, double wet) | |
Constructor with parameters. | |
~Weight () | |
Data class destructor. | |
Accessors | |
double | wpx () const |
Returns . | |
double | wpy () const |
Returns . | |
double | wet () const |
Returns . | |
Setters | |
void | setWpx (double wpx) |
Set . | |
void | setWpy (double wpy) |
Set . | |
void | setWet (double wet) |
Set . | |
Modifiers for kinematic weights | |
double & | wpx () |
Returns reference to modifiable dataword storing . | |
double & | wpy () |
Returns reference to modifiable data word storing . | |
double & | wet () |
Returns reference to modifiable data word storing . | |
Weight & | operator+= (const Weight &wght) |
Add another weight. | |
Weight & | operator-= (const Weight &wght) |
Subtract another weight. | |
Weight & | operator*= (const Weight &wght) |
Multiply two weights. | |
Weight & | operator*= (double scale) |
Scale weight by multiplication. | |
Weight & | operator/= (const Weight &wght) |
Divide two weights. | |
Weight & | operator/= (double scale) |
Scale weight by division. | |
Comparators | |
bool | operator== (const Weight &wght) const |
Equality comparator. | |
bool | operator!= (const Weight &wght) const |
Inequality operator. |
Kinematic weight descriptor.
This object is purely transient. It allows a compact extraction and setting of kinematic weights for component descriptions for MET. In addition, it helps to implement a clean and well defined algebra for these weights. This structure is not used in the auxiliary data store holding the data for a MissingETComponent_v1 object.
xAOD::MissingETComponent_v1::Weight::Weight | ( | ) | [inline] |
Default constructor.
Constructs a kinematic weight object with settings .
xAOD::MissingETComponent_v1::Weight::Weight | ( | double | wpx, | |
double | wpy, | |||
double | wet | |||
) | [inline] |
Constructor with parameters.
Construct a kinematic weight object with client provided weights. All numerical values are accepted, there is no consistency or numerical range check on the weights.
[in] | wpx | |
[in] | wpy | |
[in] | wet |
xAOD::MissingETComponent_v1::Weight & xAOD::MissingETComponent_v1::Weight::operator*= | ( | double | scale | ) |
Scale weight by multiplication.
This operation updates the internal store of this
object and yields
for weight multiplied by a scale factor . The internal data content of is modified.
[in] | scale | scale factor . |
xAOD::MissingETComponent_v1::Weight & xAOD::MissingETComponent_v1::Weight::operator*= | ( | const Weight & | wght | ) |
Multiply two weights.
This operation updates the internal store of this
object and yields
for weight multiplied by another weight . The internal data content of is modified.
[in] | wght | weight |
xAOD::MissingETComponent_v1::Weight::operator+= | ( | const Weight & | wght | ) |
Add another weight.
This operation updates the internal store of this
object and yields
for two weights added. The result replaces the data content of .
[in] | wght | reference to non-modifiable Weight object to be added. |
xAOD::MissingETComponent_v1::Weight & xAOD::MissingETComponent_v1::Weight::operator-= | ( | const Weight & | wght | ) |
Subtract another weight.
This operation updates the internal store of this
object and yields
for weight subtracted from . The result replaces the data content of .
[in] | wght | reference to non-modifiable Weight object to be subtracted. |
xAOD::MissingETComponent_v1::Weight & xAOD::MissingETComponent_v1::Weight::operator/= | ( | double | scale | ) |
Scale weight by division.
This operation updates the internal store of this
object and yields
for weight divided by a scale factor . The internal data content of is modified.
[in] | scale | scale factor . |