Stores a four-momentum, charge and identifier, and is the base class for most other physics objects. More...
#include "UserCode/ICHiggsTauTau/interface/Candidate.hh"
Public Member Functions | |
Candidate () | |
virtual | ~Candidate () |
virtual void | Print () const |
ClassDef (Candidate, 2) | |
Properties | |
Vector const & | vector () const |
Four-momentum. More... | |
std::size_t | id () const |
Unique identifier. More... | |
double | pt () const |
Direct access to the \( p_{\text{T}} \). More... | |
double | eta () const |
Direct access to \( \eta \). More... | |
double | phi () const |
Direct access to \( \phi \). More... | |
double | energy () const |
Direct access to the energy. More... | |
int | charge () const |
Electric charge. More... | |
double | M () const |
Calculates the candidate mass. More... | |
Setters | |
void | set_vector (Vector const &vector) |
Four-momentum. More... | |
void | set_id (std::size_t const &id) |
Unique identifier. More... | |
void | set_pt (double const &pt) |
Direct access to the \( p_{\text{T}} \). More... | |
void | set_eta (double const &eta) |
Direct access to \( \eta \). More... | |
void | set_phi (double const &phi) |
Direct access to \( \phi \). More... | |
void | set_energy (double const &energy) |
Direct access to the energy. More... | |
void | set_charge (int const &charge) |
Electric charge. More... | |
Stores a four-momentum, charge and identifier, and is the base class for most other physics objects.
Definition at line 13 of file Candidate.hh.
ic::Candidate::Candidate | ( | ) |
Definition at line 5 of file Candidate.cc.
|
virtual |
Definition at line 7 of file Candidate.cc.
|
virtual |
Reimplemented in ic::GenParticle, ic::PFCandidate, ic::Electron, ic::CompositeCandidate, ic::Met, ic::Muon, ic::Jet, ic::Tau, ic::CaloJet, ic::GenJet, ic::JPTJet, ic::PFJet, ic::TriggerObject, ic::L1TObject, and ic::Photon.
Definition at line 9 of file Candidate.cc.
|
inline |
Four-momentum.
Returns the underlying ROOT PtEtaPhiEVector, from which a large number of kinematic variables can be calculated. Please note, specific getter functions are provided by the Candidate class for the most commonly used variables: pt, eta, phi, energy and mass.
Definition at line 31 of file Candidate.hh.
|
inline |
Unique identifier.
Each Candidate object (and any object deriving from it) typically has a unique id assigned by its Producer. This provides a lightweight mechanism for objects to refer to each other. For example, A GenJet may store the id of each GenParticle constituents. As another example, a PFJet may store the id of its constituent tracks.
Definition at line 39 of file Candidate.hh.
|
inline |
Direct access to the \( p_{\text{T}} \).
Definition at line 42 of file Candidate.hh.
|
inline |
Direct access to \( \eta \).
Definition at line 45 of file Candidate.hh.
|
inline |
Direct access to \( \phi \).
Definition at line 48 of file Candidate.hh.
|
inline |
Direct access to the energy.
Definition at line 51 of file Candidate.hh.
|
inline |
Electric charge.
Definition at line 54 of file Candidate.hh.
|
inline |
Calculates the candidate mass.
Definition at line 57 of file Candidate.hh.
|
inline |
Four-momentum.
Definition at line 63 of file Candidate.hh.
|
inline |
Unique identifier.
Definition at line 66 of file Candidate.hh.
|
inline |
Direct access to the \( p_{\text{T}} \).
Definition at line 69 of file Candidate.hh.
|
inline |
Direct access to \( \eta \).
Definition at line 72 of file Candidate.hh.
|
inline |
Direct access to \( \phi \).
Definition at line 75 of file Candidate.hh.
|
inline |
Direct access to the energy.
Definition at line 78 of file Candidate.hh.
|
inline |
Electric charge.
Definition at line 81 of file Candidate.hh.
ic::Candidate::ClassDef | ( | Candidate | , |
2 | |||
) |