Mēnsūra
|
Represents a general object with a four-momentum. More...
#include <PhysicsObjects.hpp>
Public Member Functions | |
Candidate () noexcept | |
Default constructor. | |
Candidate (TLorentzVector const &p4_) noexcept | |
Constructor from a 4-momentum. | |
void | SetP4 (TLorentzVector const &p4_) noexcept |
Sets four-momentum. | |
void | SetPtEtaPhiM (double pt, double eta, double phi, double mass) noexcept |
Sets four-momentum. | |
void | SetPxPyPzE (double px, double py, double pz, double E) noexcept |
Sets four-momentum. | |
void | SetUserFloat (std::string const &label, double value) |
Sets or changes value of a user-defined real-valued property. | |
void | SetUserInt (std::string const &label, long value) |
Sets or changes value of a user-defined integer-valued property. | |
TLorentzVector const & | P4 () const noexcept |
Four-momentum. | |
double | Pt () const noexcept |
Transverse momentum, GeV/c. | |
double | Eta () const noexcept |
Pseudorapidity. | |
double | Phi () const noexcept |
Azimuthal angle. | |
double | M () const noexcept |
Mass, GeV/c^2. | |
double | E () const noexcept |
Energy, GeV. | |
double | UserFloat (std::string const &label) const |
Returns value of the user-defined property with the given label. More... | |
long | UserInt (std::string const &label) const |
Returns value of the user-defined property with the given label. More... | |
bool | operator< (Candidate const &rhs) const noexcept |
Ordering operator. | |
Represents a general object with a four-momentum.
An object of this class can also contain an arbitrary number of real- and integer-valued properties defined by user.
double Candidate::UserFloat | ( | std::string const & | label | ) | const |
Returns value of the user-defined property with the given label.
An exception of thrown if no property with the given label is defined.
long Candidate::UserInt | ( | std::string const & | label | ) | const |
Returns value of the user-defined property with the given label.
An exception of thrown if no property with the given label is defined.