This class stores a subset of the reco::GsfElectron properties which are most commonly used in analysis. More...
#include "UserCode/ICHiggsTauTau/interface/Electron.hh"
Public Member Functions | |
Electron () | |
virtual | ~Electron () |
virtual void | Print () const |
ClassDef (Electron, 5) | |
Properties | |
std::vector< std::size_t > const & | gen_particles () const |
A vector to refer to ic::GenParticle::id() values. More... | |
Point const & | ref_point () const |
Point-of-closest-approach (PCA) of the electron track to the beamspot. More... | |
float | dr03_tk_sum_pt () const |
Tracker isolation in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_ecal_rechit_sum_et () const |
ECAL isolation in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_hcal_tower_sum_et () const |
HCAL isolation in a cone with \( \Delta R = 0.3 \). More... | |
float | ecal_pf_cluster_iso () const |
ECAL PF cluster isolation. More... | |
float | hcal_pf_cluster_iso () const |
HCAL PF cluster isolation. More... | |
float | dr03_pfiso_charged_all () const |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_pfiso_charged () const |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_pfiso_neutral () const |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_pfiso_gamma () const |
PF isolation, using photons in a cone with \( \Delta R = 0.3 \). More... | |
float | dr03_pfiso_pu () const |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.3 \). More... | |
float | dr04_pfiso_charged_all () const |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.4 \). More... | |
float | dr04_pfiso_charged () const |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.4 \). More... | |
float | dr04_pfiso_neutral () const |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.4 \). More... | |
float | dr04_pfiso_gamma () const |
PF isolation, using photons in a cone with \( \Delta R = 0.4 \). More... | |
float | dr04_pfiso_pu () const |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.4 \). More... | |
float | hadronic_over_em () const |
Ratio of HCAL to supercluster energy in the region of the electron hit. More... | |
float | full5x5_sigma_IetaIeta () const |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal. More... | |
float | sigma_IetaIeta () const |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal [this method needs updated description as it does differ from full5x5_sigma_IetaIeta]. More... | |
float | dphi_sc_tk_at_vtx () const |
\(\Delta\phi\) between the supercluster and track, where the latter is evaluated from the vertex position More... | |
float | deta_sc_tk_at_vtx () const |
\(\Delta\eta\) between the supercluster and track, where the latter is evaluated from the vertex position More... | |
int | gsf_tk_nhits () const |
Number of tracker layers between the vertex and the first detected hit the electron should have traversed. More... | |
float | conv_dist () const |
Minimum distance between conversion tracks (if found) More... | |
float | conv_dcot () const |
\(\Delta\cot\theta\) between conversion tracks at the conversion vertex More... | |
float | f_brem () const |
Fraction of momentum lost as bremsstrahlung, as measured in the GSF fit. More... | |
float | sc_eta () const |
Supercluster \(\eta\). More... | |
float | sc_seed_eta () const |
Supercluster seed \(\eta\). More... | |
float | sc_theta () const |
Supercluster \(\theta\). More... | |
float | sc_energy () const |
Supercluster energy. More... | |
float | sc_e_over_p () const |
Ratio of supercluster energy to track momentum, where the latter is evaluated at the PCA to the beamspot. More... | |
float | r9 () const |
The ratio of the energy in the 3x3 crystal array centred on the seed over the energy of the complete supercluster. More... | |
float | hcal_sum () const |
Calorimeter tower isolation sum. More... | |
float | ecal_energy () const |
The corrected supercluster energy. More... | |
bool | has_matched_conversion () const |
True if electron is matched to a conversion vertex. More... | |
double | vx () const |
The x-coordinate of the ref_point() More... | |
double | vy () const |
The y-coordinate of the ref_point() More... | |
double | vz () const |
The z-coordinate of the ref_point() More... | |
double | dxy_vertex () const |
Transverse impact parameter of the GSF track with the primary vertex. More... | |
double | dz_vertex () const |
Longitudinal impact parameter of the GSF track with the primary vertex. More... | |
double | dxy_beamspot () const |
Transverse impact parameter of the GSF track with the beamspot. More... | |
Setters | |
void | set_gen_particles (std::vector< std::size_t > const &gen_particles) |
A vector to refer to ic::GenParticle::id() values. More... | |
void | set_ref_point (Point const &ref_point) |
Point-of-closest-approach (PCA) of the electron track to the beamspot. More... | |
void | set_dr03_tk_sum_pt (float const &dr03_tk_sum_pt) |
Tracker isolation in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_ecal_rechit_sum_et (float const &dr03_ecal_rechit_sum_et) |
ECAL isolation in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_hcal_tower_sum_et (float const &dr03_hcal_tower_sum_et) |
HCAL isolation in a cone with \( \Delta R = 0.3 \). More... | |
void | set_ecal_pf_cluster_iso (float const &ecal_pf_cluster_iso) |
ECAL PF cluster isolation. More... | |
void | set_hcal_pf_cluster_iso (float const &hcal_pf_cluster_iso) |
HCAL PF cluster isolation. More... | |
void | set_dr03_pfiso_charged_all (float const &dr03_pfiso_charged_all) |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_pfiso_charged (float const &dr03_pfiso_charged) |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_pfiso_neutral (float const &dr03_pfiso_neutral) |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_pfiso_gamma (float const &dr03_pfiso_gamma) |
PF isolation, using photons in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr03_pfiso_pu (float const &dr03_pfiso_pu) |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.3 \). More... | |
void | set_dr04_pfiso_charged_all (float const &dr04_pfiso_charged_all) |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.4 \). More... | |
void | set_dr04_pfiso_charged (float const &dr04_pfiso_charged) |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.4 \). More... | |
void | set_dr04_pfiso_neutral (float const &dr04_pfiso_neutral) |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.4 \). More... | |
void | set_dr04_pfiso_gamma (float const &dr04_pfiso_gamma) |
PF isolation, using photons in a cone with \( \Delta R = 0.4 \). More... | |
void | set_dr04_pfiso_pu (float const &dr04_pfiso_pu) |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.4 \). More... | |
void | set_hadronic_over_em (float const &hadronic_over_em) |
Ratio of HCAL to supercluster energy in the region of the electron hit. More... | |
void | set_full5x5_sigma_IetaIeta (float const &full5x5_sigma_IetaIeta) |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal. More... | |
void | set_sigma_IetaIeta (float const &sigma_IetaIeta) |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal [this method needs updated description as it does differ from full5x5_sigma_IetaIeta]. More... | |
void | set_dphi_sc_tk_at_vtx (float const &dphi_sc_tk_at_vtx) |
\(\Delta\phi\) between the supercluster and track, where the latter is evaluated from the vertex position More... | |
void | set_deta_sc_tk_at_vtx (float const &deta_sc_tk_at_vtx) |
\(\Delta\eta\) between the supercluster and track, where the latter is evaluated from the vertex position More... | |
void | set_gsf_tk_nhits (int const &gsf_tk_nhits) |
Number of tracker layers between the vertex and the first detected hit the electron should have traversed. More... | |
void | set_conv_dist (float const &conv_dist) |
Minimum distance between conversion tracks (if found) More... | |
void | set_conv_dcot (float const &conv_dcot) |
\(\Delta\cot\theta\) between conversion tracks at the conversion vertex More... | |
void | set_f_brem (float const &f_brem) |
Fraction of momentum lost as bremsstrahlung, as measured in the GSF fit. More... | |
void | set_sc_eta (float const &sc_eta) |
Supercluster \(\eta\). More... | |
void | set_sc_seed_eta (float const &sc_seed_eta) |
Supercluster seed \(\eta\). More... | |
void | set_sc_theta (float const &sc_theta) |
Supercluster \(\theta\). More... | |
void | set_sc_energy (float const &sc_energy) |
Supercluster energy. More... | |
void | set_sc_e_over_p (float const &sc_e_over_p) |
Ratio of supercluster energy to track momentum, where the latter is evaluated at the PCA to the beamspot. More... | |
void | set_r9 (float const &r9) |
The ratio of the energy in the 3x3 crystal array centred on the seed over the energy of the complete supercluster. More... | |
void | set_hcal_sum (float const &hcal_sum) |
Calorimeter tower isolation sum. More... | |
void | set_ecal_energy (float const &ecal_energy) |
The corrected supercluster energy. More... | |
void | set_has_matched_conversion (bool const &has_matched_conversion) |
True if electron is matched to a conversion vertex. More... | |
void | set_vx (double const &x) |
The x-coordinate of the ref_point() More... | |
void | set_vy (double const &y) |
The y-coordinate of the ref_point() More... | |
void | set_vz (double const &z) |
The z-coordinate of the ref_point() More... | |
void | set_dxy_vertex (double const &dxy_vertex) |
Transverse impact parameter of the GSF track with the primary vertex. More... | |
void | set_dz_vertex (double const &dz_vertex) |
Longitudinal impact parameter of the GSF track with the primary vertex. More... | |
void | set_dxy_beamspot (double const &dxy_beamspot) |
Transverse impact parameter of the GSF track with the beamspot. More... | |
Extra ID and isolation properties | |
The Electron class contains a map for storing arbitrary pairs of hashed strings and floats. The most common usage for this is to add additional ID and isolation values, for example the output of an MVA selection. | |
void | SetIdIso (std::string const &name, float const &value) |
Add a new entry, overwriting any existing one with the same name. More... | |
bool | HasIdIso (std::string const &name) const |
Check if a value with label name has already been defined. More... | |
float | GetIdIso (std::string const &name) const |
Get the value associated to a label. More... | |
Public Member Functions inherited from ic::Candidate | |
Candidate () | |
virtual | ~Candidate () |
ClassDef (Candidate, 2) | |
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... | |
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... | |
This class stores a subset of the reco::GsfElectron properties which are most commonly used in analysis.
Useful links:
Definition at line 26 of file Electron.hh.
ic::Electron::Electron | ( | ) |
Definition at line 7 of file Electron.cc.
|
virtual |
Definition at line 46 of file Electron.cc.
|
virtual |
Reimplemented from ic::Candidate.
Definition at line 67 of file Electron.cc.
|
inline |
A vector to refer to ic::GenParticle::id() values.
Definition at line 45 of file Electron.hh.
|
inline |
Point-of-closest-approach (PCA) of the electron track to the beamspot.
Definition at line 50 of file Electron.hh.
|
inline |
Tracker isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 53 of file Electron.hh.
|
inline |
ECAL isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 56 of file Electron.hh.
|
inline |
HCAL isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 61 of file Electron.hh.
|
inline |
ECAL PF cluster isolation.
Definition at line 66 of file Electron.hh.
|
inline |
HCAL PF cluster isolation.
Definition at line 71 of file Electron.hh.
|
inline |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.3 \).
Definition at line 77 of file Electron.hh.
|
inline |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.3 \).
Definition at line 82 of file Electron.hh.
|
inline |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.3 \).
Definition at line 85 of file Electron.hh.
|
inline |
PF isolation, using photons in a cone with \( \Delta R = 0.3 \).
Definition at line 88 of file Electron.hh.
|
inline |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.3 \).
Definition at line 91 of file Electron.hh.
|
inline |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.4 \).
Definition at line 95 of file Electron.hh.
|
inline |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.4 \).
Definition at line 100 of file Electron.hh.
|
inline |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.4 \).
Definition at line 103 of file Electron.hh.
|
inline |
PF isolation, using photons in a cone with \( \Delta R = 0.4 \).
Definition at line 106 of file Electron.hh.
|
inline |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.4 \).
Definition at line 109 of file Electron.hh.
|
inline |
Ratio of HCAL to supercluster energy in the region of the electron hit.
Definition at line 112 of file Electron.hh.
|
inline |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal.
Definition at line 116 of file Electron.hh.
|
inline |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal [this method needs updated description as it does differ from full5x5_sigma_IetaIeta].
Definition at line 121 of file Electron.hh.
|
inline |
\(\Delta\phi\) between the supercluster and track, where the latter is evaluated from the vertex position
Definition at line 125 of file Electron.hh.
|
inline |
\(\Delta\eta\) between the supercluster and track, where the latter is evaluated from the vertex position
Definition at line 129 of file Electron.hh.
|
inline |
Number of tracker layers between the vertex and the first detected hit the electron should have traversed.
Definition at line 133 of file Electron.hh.
|
inline |
Minimum distance between conversion tracks (if found)
Definition at line 136 of file Electron.hh.
|
inline |
\(\Delta\cot\theta\) between conversion tracks at the conversion vertex
Definition at line 140 of file Electron.hh.
|
inline |
Fraction of momentum lost as bremsstrahlung, as measured in the GSF fit.
Definition at line 143 of file Electron.hh.
|
inline |
Supercluster \(\eta\).
Definition at line 146 of file Electron.hh.
|
inline |
Supercluster seed \(\eta\).
Definition at line 149 of file Electron.hh.
|
inline |
Supercluster \(\theta\).
Definition at line 152 of file Electron.hh.
|
inline |
Supercluster energy.
Definition at line 155 of file Electron.hh.
|
inline |
Ratio of supercluster energy to track momentum, where the latter is evaluated at the PCA to the beamspot.
Definition at line 159 of file Electron.hh.
|
inline |
The ratio of the energy in the 3x3 crystal array centred on the seed over the energy of the complete supercluster.
Definition at line 163 of file Electron.hh.
|
inline |
Calorimeter tower isolation sum.
Definition at line 166 of file Electron.hh.
|
inline |
The corrected supercluster energy.
Definition at line 169 of file Electron.hh.
|
inline |
True if electron is matched to a conversion vertex.
Definition at line 172 of file Electron.hh.
|
inline |
The x-coordinate of the ref_point()
Definition at line 175 of file Electron.hh.
|
inline |
The y-coordinate of the ref_point()
Definition at line 178 of file Electron.hh.
|
inline |
The z-coordinate of the ref_point()
Definition at line 181 of file Electron.hh.
|
inline |
Transverse impact parameter of the GSF track with the primary vertex.
Definition at line 184 of file Electron.hh.
|
inline |
Longitudinal impact parameter of the GSF track with the primary vertex.
Definition at line 187 of file Electron.hh.
|
inline |
Transverse impact parameter of the GSF track with the beamspot.
Definition at line 190 of file Electron.hh.
|
inline |
A vector to refer to ic::GenParticle::id() values.
Definition at line 196 of file Electron.hh.
|
inline |
Point-of-closest-approach (PCA) of the electron track to the beamspot.
Definition at line 201 of file Electron.hh.
|
inline |
Tracker isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 204 of file Electron.hh.
|
inline |
ECAL isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 209 of file Electron.hh.
|
inline |
HCAL isolation in a cone with \( \Delta R = 0.3 \).
Definition at line 215 of file Electron.hh.
|
inline |
ECAL PF cluster isolation.
Definition at line 220 of file Electron.hh.
|
inline |
HCAL PF cluster isolation.
Definition at line 225 of file Electron.hh.
|
inline |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.3 \).
Definition at line 230 of file Electron.hh.
|
inline |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.3 \).
Definition at line 235 of file Electron.hh.
|
inline |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.3 \).
Definition at line 240 of file Electron.hh.
|
inline |
PF isolation, using photons in a cone with \( \Delta R = 0.3 \).
Definition at line 245 of file Electron.hh.
|
inline |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.3 \).
Definition at line 250 of file Electron.hh.
|
inline |
PF isolation, using all charged particles in a cone with \( \Delta R = 0.4 \).
Definition at line 255 of file Electron.hh.
|
inline |
PF isolation, using charged hadrons in a cone with \( \Delta R = 0.4 \).
Definition at line 260 of file Electron.hh.
|
inline |
PF isolation, using neutral hadrons in a cone with \( \Delta R = 0.4 \).
Definition at line 265 of file Electron.hh.
|
inline |
PF isolation, using photons in a cone with \( \Delta R = 0.4 \).
Definition at line 270 of file Electron.hh.
|
inline |
PF isolation, using charged pileup in a cone with \( \Delta R = 0.4 \).
Definition at line 275 of file Electron.hh.
|
inline |
Ratio of HCAL to supercluster energy in the region of the electron hit.
Definition at line 280 of file Electron.hh.
|
inline |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal.
Definition at line 285 of file Electron.hh.
|
inline |
Weighted cluster RMS in the \(\eta\)-direction, measured in units of crystals in a 5x5 block centred on the seed crystal [this method needs updated description as it does differ from full5x5_sigma_IetaIeta].
Definition at line 291 of file Electron.hh.
|
inline |
\(\Delta\phi\) between the supercluster and track, where the latter is evaluated from the vertex position
Definition at line 296 of file Electron.hh.
|
inline |
\(\Delta\eta\) between the supercluster and track, where the latter is evaluated from the vertex position
Definition at line 301 of file Electron.hh.
|
inline |
Number of tracker layers between the vertex and the first detected hit the electron should have traversed.
Definition at line 306 of file Electron.hh.
|
inline |
Minimum distance between conversion tracks (if found)
Definition at line 312 of file Electron.hh.
|
inline |
\(\Delta\cot\theta\) between conversion tracks at the conversion vertex
Definition at line 315 of file Electron.hh.
|
inline |
Fraction of momentum lost as bremsstrahlung, as measured in the GSF fit.
Definition at line 318 of file Electron.hh.
|
inline |
Supercluster \(\eta\).
Definition at line 321 of file Electron.hh.
|
inline |
Supercluster seed \(\eta\).
Definition at line 324 of file Electron.hh.
|
inline |
Supercluster \(\theta\).
Definition at line 327 of file Electron.hh.
|
inline |
Supercluster energy.
Definition at line 330 of file Electron.hh.
|
inline |
Ratio of supercluster energy to track momentum, where the latter is evaluated at the PCA to the beamspot.
Definition at line 333 of file Electron.hh.
|
inline |
The ratio of the energy in the 3x3 crystal array centred on the seed over the energy of the complete supercluster.
Definition at line 338 of file Electron.hh.
|
inline |
Calorimeter tower isolation sum.
Definition at line 341 of file Electron.hh.
|
inline |
The corrected supercluster energy.
Definition at line 344 of file Electron.hh.
|
inline |
True if electron is matched to a conversion vertex.
Definition at line 349 of file Electron.hh.
|
inline |
The x-coordinate of the ref_point()
Definition at line 354 of file Electron.hh.
|
inline |
The y-coordinate of the ref_point()
Definition at line 357 of file Electron.hh.
|
inline |
The z-coordinate of the ref_point()
Definition at line 360 of file Electron.hh.
|
inline |
Transverse impact parameter of the GSF track with the primary vertex.
Definition at line 363 of file Electron.hh.
|
inline |
Longitudinal impact parameter of the GSF track with the primary vertex.
Definition at line 368 of file Electron.hh.
|
inline |
Transverse impact parameter of the GSF track with the beamspot.
Definition at line 371 of file Electron.hh.
void ic::Electron::SetIdIso | ( | std::string const & | name, |
float const & | value | ||
) |
Add a new entry, overwriting any existing one with the same name.
name | A label to identify the value, will be stored as a hash |
value | The value to associate to the label name |
Definition at line 48 of file Electron.cc.
bool ic::Electron::HasIdIso | ( | std::string const & | name | ) | const |
Check if a value with label name has already been defined.
name | The label to check |
Definition at line 52 of file Electron.cc.
float ic::Electron::GetIdIso | ( | std::string const & | name | ) | const |
Get the value associated to a label.
name | The label to retrieve |
Definition at line 56 of file Electron.cc.
ic::Electron::ClassDef | ( | Electron | , |
5 | |||
) |