#include <MyElectron.h>
Inheritance diagram for MyElectron:
Public Member Functions | |
MyElectron (void) | |
Default constructor: all private variables are set to 0. | |
MyElectron (const TLorentzVector &p, const TLorentzVector &p_track, const double &echarge, const bool &egamma_flag, const bool &softe_flag, const double &eoverp, const double &isem, const double &neuralnet, const int &index, const double et_cone[4], const double ethad1, const std::vector< double > *et_track_cone=0, int vertex_index=-1, const std::vector< double > *trackIsolationEnergy=0) | |
bool | e_gamma_flag (void) const |
int | is_em (void) const |
returns the is_em value | |
double | NeuralNet (void) const |
returns the NeuralNet value | |
bool | soft_e_flag (void) const |
double | e_over_p (void) const |
get E(calorimeter)/p(inner tracker) | |
double | Et_in_cone (const int &delta_R_index) const |
double | ethad1 (void) const |
get ethad1 | |
double | track_Et_in_cone (const int &delta_r_index) const |
double | trackIsolationEnergy (const int &delta_r_index) const |
int | id_flag (void) const |
void | set_e_gamma_flag (const bool &flag) |
void | set_soft_e_flag (const bool &flag) |
void | set_e_over_p (const double &eoverp) |
void | set_Et_in_cone (const double et_in_cone[4]) |
void | set_ethad1 (const double ðad1) |
set ethad1 | |
void | set_track_Et_in_cone (const double et_in_cone[4]) |
void | set_trackIsolationEnergy (const double et_in_cone[4]) |
void | set_id_flag (const int &flag) |
void | PrintParticle (std::string option="") |
print electron properties | |
TLorentzVector | tlv_track (void) const |
Private Member Functions | |
void | init (const TLorentzVector &p, const TLorentzVector &p_track, const double &echarge, const bool &egamma_flag, const bool &softe_flag, const double &eoverp, const double &isem, const double &neuralnet, const int &index, const double et_cone[4], const double ðad1, const std::vector< double > *track_et_cone, int vertex_index, const std::vector< double > *trackIsolationEnergy) |
Private Attributes | |
bool | m_egamma_flag |
bool | m_softe_flag |
double | m_E_over_p |
int | m_isEM |
double | m_NeuralNet |
double | m_Et_in_cone [4] |
double | m_ethad1 |
double | m_track_Et_in_cone [4] |
double | m_trackIsolationEnergy [4] |
int | m_id_flag |
TLorentzVector | m_tlv_track |
Definition at line 34 of file MyElectron.h.
MyElectron::MyElectron | ( | const TLorentzVector & | p, | |
const TLorentzVector & | p_track, | |||
const double & | echarge, | |||
const bool & | egamma_flag, | |||
const bool & | softe_flag, | |||
const double & | eoverp, | |||
const double & | isem, | |||
const double & | neuralnet, | |||
const int & | index, | |||
const double | et_cone[4], | |||
const double | ethad1, | |||
const std::vector< double > * | et_track_cone = 0 , |
|||
int | vertex_index = -1 , |
|||
const std::vector< double > * | trackIsolationEnergy = 0 | |||
) | [inline] |
Constructor: store the fourmomentum p of the electron (from calo). p_track: fourmomentum from track echarge: charge of the electron/positron; egamma_flag = true, if the particle was identified as electron by the e-gamma algorithm; softe_flag = true, if the particle was identified as soft electron; eoverp = E(calorimeter)/p(inner tracker); Et in et_cone[0]: a cone of 0.20, Et in et_cone[1]: a cone of 0.30, Et in et_cone[2]: a cone of 0.40, Et in et_cone[3]: a cone of 0.45 ethad1 The et_track_cone variables is set to 0 if the electron is not associated with any primary vertex. vertex_index: index of the associated primary vertex.
Definition at line 43 of file MyElectron.h.
bool MyElectron::e_gamma_flag | ( | void | ) | const [inline] |
returns true, the e-gamma algorithm identifies the particle as an electron
Definition at line 103 of file MyElectron.ixx.
bool MyElectron::soft_e_flag | ( | void | ) | const [inline] |
returns true, if the particle was identified as a soft electron
Definition at line 137 of file MyElectron.ixx.
double MyElectron::Et_in_cone | ( | const int & | delta_R_index | ) | const [inline] |
get the transverse energy in a cone around the electron; delta_R_index = 0: a cone of 0.20, delta_R_index = 1: a cone of 0.30, delta_R_index = 2: a cone of 0.40, delta_R_index = 3: a cone of 0.45
Definition at line 161 of file MyElectron.ixx.
double MyElectron::track_Et_in_cone | ( | const int & | delta_r_index | ) | const [inline] |
get the transverse energy of tracks from the same vertex in a cone around the electron; delta_R_index = 0: a cone of 0.20, delta_R_index = 1: a cone of 0.30, delta_R_index = 2: a cone of 0.40, delta_R_index = 3: a cone of 0.45; 0 is returned, if the electron is not associated with any primary vertex.
Definition at line 202 of file MyElectron.ixx.
double MyElectron::trackIsolationEnergy | ( | const int & | delta_r_index | ) | const [inline] |
get the transverse energy of tracks (computed by trackIsolationTools) delta_R_index = 0: a cone of 0.20, delta_R_index = 1: a cone of 0.30, delta_R_index = 2: a cone of 0.40, delta_R_index = 3: a cone of 0.45;
Definition at line 231 of file MyElectron.ixx.
void MyElectron::set_e_gamma_flag | ( | const bool & | flag | ) | [inline] |
set the flag indicating whether the e-gamma algorithm identifies the particle as an electron to flag
Definition at line 272 of file MyElectron.ixx.
void MyElectron::set_soft_e_flag | ( | const bool & | flag | ) | [inline] |
set the flag indicating whether the particle was identified as a soft electron to flag
Definition at line 285 of file MyElectron.ixx.
void MyElectron::set_e_over_p | ( | const double & | eoverp | ) | [inline] |
set E(calorimeter)/p(inner tracker) to eoverp
Definition at line 298 of file MyElectron.ixx.
void MyElectron::set_Et_in_cone | ( | const double | et_in_cone[4] | ) | [inline] |
set the transverse energy in a cone around the electron; et_in_cone[0]: a cone of 0.20, et_in_cone[1]: a cone of 0.30, et_in_cone[2]: a cone of 0.40, et_in_cone[3]: a cone of 0.45
Definition at line 311 of file MyElectron.ixx.
void MyElectron::set_track_Et_in_cone | ( | const double | et_in_cone[4] | ) | [inline] |
set the transverse energy of tracks from the same vertex in a cone around the electron; et_in_cone[0]: a cone of 0.20, et_in_cone[1]: a cone of 0.30, et_in_cone[2]: a cone of 0.40, et_in_cone[3]: a cone of 0.45; 0 should be set, if the electron is not associated with any primary vertex.
Definition at line 341 of file MyElectron.ixx.
void MyElectron::set_trackIsolationEnergy | ( | const double | et_in_cone[4] | ) | [inline] |
set the transverse energy of tracks et_in_cone[0]: a cone of 0.20, et_in_cone[1]: a cone of 0.30, et_in_cone[2]: a cone of 0.40, et_in_cone[3]: a cone of 0.45;
Definition at line 357 of file MyElectron.ixx.