#include <PFCandidateElectronExtra.h>
Public Types | |
enum | MvaVariable { MVA_FIRST = 0, MVA_LnPtGsf = MVA_FIRST, MVA_EtaGsf, MVA_SigmaPtOverPt, MVA_Fbrem, MVA_Chi2Gsf, MVA_NhitsKf, MVA_Chi2Kf, MVA_EtotOverPin, MVA_EseedOverPout, MVA_EbremOverDeltaP, MVA_DeltaEtaTrackCluster, MVA_LogSigmaEtaEta, MVA_HOverHE, MVA_LateBrem, MVA_FirstBrem, MVA_MVA, MVA_LAST } |
enum | StatusFlag { X = 0, Selected, ECALDrivenPreselected, MVASelected, Rejected } |
Public Member Functions | |
bool | electronStatus (StatusFlag) const |
access to the status More... | |
int | electronStatus () const |
access to the status More... | |
reco::GsfTrackRef | gsfTrackRef () const |
return a reference to the corresponding GSF track More... | |
float | hadEnergy () const |
access to specific variables More... | |
reco::TrackRef | kfTrackRef () const |
return a reference to the corresponding KF track More... | |
bool | mvaStatus (MvaVariable flag) const |
access to mva variable status More... | |
float | mvaVariable (MvaVariable var) const |
access to any variable More... | |
const std::vector< float > & | mvaVariables () const |
access to the mva variables More... | |
PFCandidateElectronExtra () | |
constructor More... | |
PFCandidateElectronExtra (const GsfTrackRef &) | |
constructor More... | |
void | setClusterEnergies (const std::vector< float > &energies) |
set the cluster energies. the Pout should be saved first More... | |
void | setDeltaEta (float val) |
set the delta eta More... | |
void | setEarlyBrem (float val) |
set EarlyBrem More... | |
void | setGsfTrackPout (const math::XYZTLorentzVector &pout) |
set the pout (not trivial to get from the GSF track) More... | |
void | setGsfTrackRef (const reco::GsfTrackRef &ref) |
set gsftrack reference More... | |
void | setHadEnergy (float val) |
set the had energy. The cluster energies should be entered before More... | |
void | setKfTrackRef (const reco::TrackRef &ref) |
set kf track reference More... | |
void | setLateBrem (float val) |
set LateBrem More... | |
void | setMVA (float val) |
set the result (mostly for debugging) More... | |
void | setSigmaEtaEta (float val) |
set the sigmaetaeta More... | |
void | setStatus (StatusFlag type, bool status=true) |
set status More... | |
float | sigmaEtaEta () const |
~PFCandidateElectronExtra () | |
destructor More... | |
Private Member Functions | |
void | setVariable (MvaVariable type, float var) |
Private Attributes | |
std::vector< float > | clusterEnergies_ |
energy of individual clusters (corrected). The first cluster is the seed More... | |
float | deltaEta_ |
float | earlyBrem_ |
reco::GsfTrackRef | gsfTrackRef_ |
Ref to the GSF track. More... | |
float | hadEnergy_ |
reco::TrackRef | kfTrackRef_ |
Ref to the KF track. More... | |
float | lateBrem_ |
int | mvaStatus_ |
status of mva variables More... | |
std::vector< float > | mvaVariables_ |
mva variables - transient ! More... | |
math::XYZTLorentzVector | pout_ |
Variables entering the MVA that should be saved. More... | |
float | sigmaEtaEta_ |
int | status_ |
Status of the electron. More... | |
extra information on the electron particle candidate from particle flow
Definition at line 16 of file PFCandidateElectronExtra.h.
Definition at line 27 of file PFCandidateElectronExtra.h.
Enumerator | |
---|---|
X | |
Selected | |
ECALDrivenPreselected | |
MVASelected | |
Rejected |
Definition at line 18 of file PFCandidateElectronExtra.h.
PFCandidateElectronExtra::PFCandidateElectronExtra | ( | ) |
constructor
Definition at line 8 of file PFCandidateElectronExtra.cc.
References gsfTrackRef_, hadEnergy_, kfTrackRef_, visualization-live-secondInstance_cfg::m, MVA_FIRST, MVA_LAST, mvaStatus_, mvaVariables_, pout_, sigmaEtaEta_, and status_.
PFCandidateElectronExtra::PFCandidateElectronExtra | ( | const GsfTrackRef & | gsfTrack | ) |
constructor
Definition at line 22 of file PFCandidateElectronExtra.cc.
References gsfTrackRef_, hadEnergy_, kfTrackRef_, dqm-mbProfile::log, visualization-live-secondInstance_cfg::m, MVA_Chi2Gsf, MVA_EtaGsf, MVA_Fbrem, MVA_FIRST, MVA_LAST, MVA_LnPtGsf, MVA_SigmaPtOverPt, mvaStatus_, mvaVariables_, pout_, setVariable(), sigmaEtaEta_, and status_.
|
inline |
bool PFCandidateElectronExtra::electronStatus | ( | StatusFlag | flag | ) | const |
access to the status
Definition at line 131 of file PFCandidateElectronExtra.cc.
References RemoveAddSevLevel::flag, and status_.
|
inline |
access to the status
Definition at line 98 of file PFCandidateElectronExtra.h.
References status_.
|
inline |
return a reference to the corresponding GSF track
Definition at line 63 of file PFCandidateElectronExtra.h.
References gsfTrackRef_.
Referenced by PFElectronExtraEqual::operator()().
|
inline |
access to specific variables
Definition at line 110 of file PFCandidateElectronExtra.h.
References hadEnergy_.
|
inline |
return a reference to the corresponding KF track
Definition at line 66 of file PFCandidateElectronExtra.h.
References kfTrackRef_.
bool PFCandidateElectronExtra::mvaStatus | ( | MvaVariable | flag | ) | const |
access to mva variable status
Definition at line 133 of file PFCandidateElectronExtra.cc.
References RemoveAddSevLevel::flag, and mvaStatus_.
Referenced by mvaVariable(), and reco::operator<<().
float PFCandidateElectronExtra::mvaVariable | ( | MvaVariable | var | ) | const |
access to any variable
Definition at line 135 of file PFCandidateElectronExtra.cc.
References mvaStatus(), mvaVariables_, and trigObjTnPSource_cfi::var.
Referenced by reco::operator<<().
|
inline |
access to the mva variables
Definition at line 104 of file PFCandidateElectronExtra.h.
References mvaVariables_.
void PFCandidateElectronExtra::setClusterEnergies | ( | const std::vector< float > & | energies | ) |
set the cluster energies. the Pout should be saved first
Definition at line 90 of file PFCandidateElectronExtra.cc.
References clusterEnergies_, gsfTrackRef_, hadEnergy_, MVA_EbremOverDeltaP, MVA_EseedOverPout, MVA_EtotOverPin, pout_, setHadEnergy(), setVariable(), and mathSSE::sqrt().
void PFCandidateElectronExtra::setDeltaEta | ( | float | val | ) |
set the delta eta
Definition at line 85 of file PFCandidateElectronExtra.cc.
References deltaEta_, MVA_DeltaEtaTrackCluster, setVariable(), and heppy_batch::val.
void PFCandidateElectronExtra::setEarlyBrem | ( | float | val | ) |
set EarlyBrem
Definition at line 69 of file PFCandidateElectronExtra.cc.
References earlyBrem_, MVA_FirstBrem, setVariable(), and heppy_batch::val.
void PFCandidateElectronExtra::setGsfTrackPout | ( | const math::XYZTLorentzVector & | pout | ) |
set the pout (not trivial to get from the GSF track)
Definition at line 49 of file PFCandidateElectronExtra.cc.
References pout_.
void PFCandidateElectronExtra::setGsfTrackRef | ( | const reco::GsfTrackRef & | ref | ) |
set gsftrack reference
Definition at line 47 of file PFCandidateElectronExtra.cc.
References gsfTrackRef_.
void PFCandidateElectronExtra::setHadEnergy | ( | float | val | ) |
set the had energy. The cluster energies should be entered before
Definition at line 74 of file PFCandidateElectronExtra.cc.
References clusterEnergies_, hadEnergy_, MVA_HOverHE, setVariable(), and heppy_batch::val.
Referenced by setClusterEnergies().
void PFCandidateElectronExtra::setKfTrackRef | ( | const reco::TrackRef & | ref | ) |
set kf track reference
Definition at line 51 of file PFCandidateElectronExtra.cc.
References nano_mu_digi_cff::float, edm::Ref< C, T, F >::isNonnull(), kfTrackRef_, MVA_Chi2Kf, MVA_NhitsKf, and setVariable().
void PFCandidateElectronExtra::setLateBrem | ( | float | val | ) |
set LateBrem
Definition at line 64 of file PFCandidateElectronExtra.cc.
References lateBrem_, MVA_LateBrem, setVariable(), and heppy_batch::val.
void PFCandidateElectronExtra::setMVA | ( | float | val | ) |
set the result (mostly for debugging)
Definition at line 116 of file PFCandidateElectronExtra.cc.
References MVA_MVA, setVariable(), and heppy_batch::val.
void PFCandidateElectronExtra::setSigmaEtaEta | ( | float | val | ) |
set the sigmaetaeta
Definition at line 80 of file PFCandidateElectronExtra.cc.
References MVA_LogSigmaEtaEta, setVariable(), sigmaEtaEta_, and heppy_batch::val.
void PFCandidateElectronExtra::setStatus | ( | StatusFlag | type, |
bool | status = true |
||
) |
set status
Definition at line 123 of file PFCandidateElectronExtra.cc.
References mps_update::status, and status_.
|
private |
Definition at line 118 of file PFCandidateElectronExtra.cc.
References mvaStatus_, mvaVariables_, and heppy_batch::val.
Referenced by PFCandidateElectronExtra(), setClusterEnergies(), setDeltaEta(), setEarlyBrem(), setHadEnergy(), setKfTrackRef(), setLateBrem(), setMVA(), and setSigmaEtaEta().
|
inline |
Definition at line 111 of file PFCandidateElectronExtra.h.
References sigmaEtaEta_.
|
private |
energy of individual clusters (corrected). The first cluster is the seed
Definition at line 123 of file PFCandidateElectronExtra.h.
Referenced by setClusterEnergies(), and setHadEnergy().
|
private |
Definition at line 140 of file PFCandidateElectronExtra.h.
Referenced by setDeltaEta().
|
private |
Definition at line 136 of file PFCandidateElectronExtra.h.
Referenced by setEarlyBrem().
|
private |
Ref to the GSF track.
Definition at line 118 of file PFCandidateElectronExtra.h.
Referenced by gsfTrackRef(), PFCandidateElectronExtra(), setClusterEnergies(), and setGsfTrackRef().
|
private |
Definition at line 139 of file PFCandidateElectronExtra.h.
Referenced by hadEnergy(), PFCandidateElectronExtra(), setClusterEnergies(), and setHadEnergy().
|
private |
Ref to the KF track.
Definition at line 120 of file PFCandidateElectronExtra.h.
Referenced by kfTrackRef(), PFCandidateElectronExtra(), and setKfTrackRef().
|
private |
Definition at line 137 of file PFCandidateElectronExtra.h.
Referenced by setLateBrem().
|
private |
status of mva variables
Definition at line 129 of file PFCandidateElectronExtra.h.
Referenced by mvaStatus(), PFCandidateElectronExtra(), and setVariable().
|
private |
mva variables - transient !
Definition at line 126 of file PFCandidateElectronExtra.h.
Referenced by mvaVariable(), mvaVariables(), PFCandidateElectronExtra(), and setVariable().
|
private |
Variables entering the MVA that should be saved.
Definition at line 135 of file PFCandidateElectronExtra.h.
Referenced by PFCandidateElectronExtra(), setClusterEnergies(), and setGsfTrackPout().
|
private |
Definition at line 138 of file PFCandidateElectronExtra.h.
Referenced by PFCandidateElectronExtra(), setSigmaEtaEta(), and sigmaEtaEta().
|
private |
Status of the electron.
Definition at line 132 of file PFCandidateElectronExtra.h.
Referenced by electronStatus(), PFCandidateElectronExtra(), and setStatus().