#include <PFCandidateEGammaExtra.h>
Public Types | |
enum | ElectronVetoes { kFailsMVA, kKFTracksOnGSFCluster, kFailsTrackAndHCALIso, kKillAdditionalKFs, kItIsAPion, kCrazyEoverP, kTooLargeAngle, kN_EVETOS } |
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 | PhotonVetoes { kFailsTrackIso, kN_PHOVETOS } |
enum | StatusFlag { X =0, Selected, ECALDrivenPreselected, MVASelected, Rejected } |
Public Member Functions | |
void | addConversionRef (const reco::ConversionRef &convref) |
add Conversions from PF More... | |
void | addExtraNonConvTrack (const reco::PFBlockRef &blk, const reco::PFBlockElementTrack &tkref) |
track counting for electrons and photons More... | |
void | addSingleLegConversionRef (const reco::ConversionRef &convref) |
add Conversions from PF More... | |
void | addSingleLegConvTrackRefMva (const std::pair< reco::TrackRef, float > &trackrefmva) |
add Single Leg Conversion TrackRef More... | |
reco::ConversionRefVector | conversionRef () const |
return Conversions from PF More... | |
bool | electronStatus (StatusFlag) const |
access to the status More... | |
int | electronStatus () const |
access to the status More... | |
const ElementsInBlocks & | extraNonConvTracks () const |
const ElementInBlock & | gsfElectronClusterRef () const |
return a reference to the electron cluster ref 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... | |
PFCandidateEGammaExtra () | |
constructor More... | |
PFCandidateEGammaExtra (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 | setGsfElectronClusterRef (const reco::PFBlockRef &blk, const reco::PFBlockElementCluster &ref) |
set gsf electron cluster ref 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... | |
void | setSuperClusterPFECALRef (reco::SuperClusterRef sc) |
set reference to the corresponding supercluster More... | |
void | setSuperClusterRef (reco::SuperClusterRef sc) |
set reference to the corresponding supercluster More... | |
float | sigmaEtaEta () const |
reco::ConversionRefVector | singleLegConversionRef () const |
return Conversions from PF More... | |
const std::vector< std::pair< reco::TrackRef, float > > & | singleLegConvTrackRefMva () const |
return vector of Single Leg Conversion TrackRef from More... | |
reco::SuperClusterRef | superClusterPFECALRef () const |
return a reference to the corresponding box supercluster More... | |
reco::SuperClusterRef | superClusterRef () const |
return a reference to the corresponding supercluster More... | |
~PFCandidateEGammaExtra () | |
destructor More... | |
Private Member Functions | |
void | setVariable (MvaVariable type, float var) |
Private Attributes | |
reco::ConversionRefVector | assoConversionsRef_ |
vector of ConversionRef from PF More... | |
ElementsInBlocks | assoNonConvExtraTracks_ |
std::vector< std::pair< reco::TrackRef, float > > | assoSingleLeg_ |
vector of TrackRef from Single Leg conversions and associated mva value More... | |
std::vector< float > | clusterEnergies_ |
float | deltaEta_ |
float | earlyBrem_ |
ElementInBlock | eleGsfCluster_ |
Ref to the electron gsf cluster;. More... | |
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... | |
reco::SuperClusterRef | scPFECALRef_ |
Ref to PF-ECAL only supercluster. More... | |
reco::SuperClusterRef | scRef_ |
Ref to (refined) supercluster. More... | |
float | sigmaEtaEta_ |
reco::ConversionRefVector | singleLegConversions_ |
int | status_ |
Status of the electron. More... | |
extra information on the photon/electron particle candidate from particle flow
Definition at line 25 of file PFCandidateEGammaExtra.h.
Enumerator | |
---|---|
kFailsMVA | |
kKFTracksOnGSFCluster | |
kFailsTrackAndHCALIso | |
kKillAdditionalKFs | |
kItIsAPion | |
kCrazyEoverP | |
kTooLargeAngle | |
kN_EVETOS |
Definition at line 57 of file PFCandidateEGammaExtra.h.
Definition at line 36 of file PFCandidateEGammaExtra.h.
Enumerator | |
---|---|
X | |
Selected | |
ECALDrivenPreselected | |
MVASelected | |
Rejected |
Definition at line 27 of file PFCandidateEGammaExtra.h.
PFCandidateEGammaExtra::PFCandidateEGammaExtra | ( | ) |
constructor
Definition at line 8 of file PFCandidateEGammaExtra.cc.
References gsfTrackRef_, hadEnergy_, kfTrackRef_, funct::m, MVA_FIRST, MVA_LAST, mvaStatus_, mvaVariables_, pout_, sigmaEtaEta_, and status_.
PFCandidateEGammaExtra::PFCandidateEGammaExtra | ( | const GsfTrackRef & | gsfTrack | ) |
constructor
Definition at line 22 of file PFCandidateEGammaExtra.cc.
References gsfTrackRef_, hadEnergy_, kfTrackRef_, cmsBatch::log, funct::m, MVA_Chi2Gsf, MVA_EtaGsf, MVA_Fbrem, MVA_FIRST, MVA_LAST, MVA_LnPtGsf, MVA_SigmaPtOverPt, mvaStatus_, mvaVariables_, pout_, setVariable(), sigmaEtaEta_, and status_.
|
inline |
destructor
Definition at line 79 of file PFCandidateEGammaExtra.h.
References setGsfTrackRef(), and setKfTrackRef().
void PFCandidateEGammaExtra::addConversionRef | ( | const reco::ConversionRef & | convref | ) |
add Conversions from PF
Definition at line 160 of file PFCandidateEGammaExtra.cc.
References assoConversionsRef_, and edm::RefVector< C, T, F >::push_back().
Referenced by PFEGammaAlgo::fillPFCandidates(), and singleLegConvTrackRefMva().
|
inline |
track counting for electrons and photons
Definition at line 180 of file PFCandidateEGammaExtra.h.
References assoNonConvExtraTracks_, reco::PFBlockElement::index(), reco::PFBlockElement::T_FROM_GAMMACONV, and reco::PFBlockElementTrack::trackType().
Referenced by PFEGammaAlgo::fillExtraInfo().
void PFCandidateEGammaExtra::addSingleLegConversionRef | ( | const reco::ConversionRef & | convref | ) |
add Conversions from PF
Definition at line 164 of file PFCandidateEGammaExtra.cc.
References edm::RefVector< C, T, F >::push_back(), and singleLegConversions_.
Referenced by conversionRef().
void PFCandidateEGammaExtra::addSingleLegConvTrackRefMva | ( | const std::pair< reco::TrackRef, float > & | trackrefmva | ) |
add Single Leg Conversion TrackRef
Definition at line 156 of file PFCandidateEGammaExtra.cc.
References assoSingleLeg_.
Referenced by PFEGammaAlgo::fillPFCandidates(), and setSuperClusterPFECALRef().
|
inline |
return Conversions from PF
Definition at line 126 of file PFCandidateEGammaExtra.h.
References addSingleLegConversionRef(), and assoConversionsRef_.
bool PFCandidateEGammaExtra::electronStatus | ( | StatusFlag | flag | ) | const |
access to the status
Definition at line 144 of file PFCandidateEGammaExtra.cc.
References RemoveAddSevLevel::flag, and status_.
|
inline |
access to the status
Definition at line 164 of file PFCandidateEGammaExtra.h.
References RemoveAddSevLevel::flag, mvaStatus(), and status_.
Referenced by singleLegConversionRef().
|
inline |
Definition at line 186 of file PFCandidateEGammaExtra.h.
References assoNonConvExtraTracks_, and setVariable().
|
inline |
return a reference to the electron cluster ref
Definition at line 100 of file PFCandidateEGammaExtra.h.
References eleGsfCluster_.
|
inline |
return a reference to the corresponding GSF track
Definition at line 94 of file PFCandidateEGammaExtra.h.
References gsfTrackRef_.
|
inline |
access to specific variables
Definition at line 176 of file PFCandidateEGammaExtra.h.
References hadEnergy_.
|
inline |
return a reference to the corresponding KF track
Definition at line 97 of file PFCandidateEGammaExtra.h.
References kfTrackRef_.
bool PFCandidateEGammaExtra::mvaStatus | ( | MvaVariable | flag | ) | const |
access to mva variable status
Definition at line 148 of file PFCandidateEGammaExtra.cc.
References RemoveAddSevLevel::flag, and mvaStatus_.
Referenced by electronStatus(), mvaVariable(), and reco::operator<<().
float PFCandidateEGammaExtra::mvaVariable | ( | MvaVariable | var | ) | const |
access to any variable
Definition at line 152 of file PFCandidateEGammaExtra.cc.
References mvaStatus(), and mvaVariables_.
Referenced by mvaVariables(), and reco::operator<<().
|
inline |
access to the mva variables
Definition at line 170 of file PFCandidateEGammaExtra.h.
References mvaVariable(), mvaVariables_, and JetChargeProducer_cfi::var.
void PFCandidateEGammaExtra::setClusterEnergies | ( | const std::vector< float > & | energies | ) |
set the cluster energies. the Pout should be saved first
Definition at line 96 of file PFCandidateEGammaExtra.cc.
References clusterEnergies_, gsfTrackRef_, hadEnergy_, MVA_EbremOverDeltaP, MVA_EseedOverPout, MVA_EtotOverPin, pout_, setHadEnergy(), setVariable(), findQualityFiles::size, and mathSSE::sqrt().
Referenced by singleLegConversionRef().
void PFCandidateEGammaExtra::setDeltaEta | ( | float | val | ) |
set the delta eta
Definition at line 90 of file PFCandidateEGammaExtra.cc.
References deltaEta_, MVA_DeltaEtaTrackCluster, setVariable(), and heppy_batch::val.
Referenced by PFEGammaAlgo::calculateEleMVA(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setEarlyBrem | ( | float | val | ) |
set EarlyBrem
Definition at line 74 of file PFCandidateEGammaExtra.cc.
References earlyBrem_, MVA_FirstBrem, setVariable(), and heppy_batch::val.
Referenced by PFEGammaAlgo::calculateEleMVA(), and singleLegConversionRef().
|
inline |
set gsf electron cluster ref
Definition at line 88 of file PFCandidateEGammaExtra.h.
References eleGsfCluster_, and reco::PFBlockElement::index().
Referenced by PFEGammaAlgo::calculateEleMVA().
void PFCandidateEGammaExtra::setGsfTrackPout | ( | const math::XYZTLorentzVector & | pout | ) |
set the pout (not trivial to get from the GSF track)
Definition at line 51 of file PFCandidateEGammaExtra.cc.
References pout_.
Referenced by PFEGammaAlgo::calculateEleMVA(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setGsfTrackRef | ( | const reco::GsfTrackRef & | ref | ) |
set gsftrack reference
Definition at line 47 of file PFCandidateEGammaExtra.cc.
References gsfTrackRef_.
Referenced by PFEGammaAlgo::fillPFCandidates(), and ~PFCandidateEGammaExtra().
void PFCandidateEGammaExtra::setHadEnergy | ( | float | val | ) |
set the had energy. The cluster energies should be entered before
Definition at line 79 of file PFCandidateEGammaExtra.cc.
References clusterEnergies_, hadEnergy_, MVA_HOverHE, setVariable(), and heppy_batch::val.
Referenced by PFEGammaAlgo::calculateEleMVA(), setClusterEnergies(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setKfTrackRef | ( | const reco::TrackRef & | ref | ) |
set kf track reference
Definition at line 56 of file PFCandidateEGammaExtra.cc.
References objects.autophobj::float, edm::Ref< C, T, F >::isNonnull(), kfTrackRef_, MVA_Chi2Kf, MVA_NhitsKf, and setVariable().
Referenced by PFEGammaAlgo::fillPFCandidates(), and ~PFCandidateEGammaExtra().
void PFCandidateEGammaExtra::setLateBrem | ( | float | val | ) |
set LateBrem
Definition at line 69 of file PFCandidateEGammaExtra.cc.
References lateBrem_, MVA_LateBrem, setVariable(), and heppy_batch::val.
Referenced by PFEGammaAlgo::calculateEleMVA(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setMVA | ( | float | val | ) |
set the result (mostly for debugging)
Definition at line 124 of file PFCandidateEGammaExtra.cc.
References MVA_MVA, and setVariable().
Referenced by PFEGammaAlgo::fillPFCandidates(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setSigmaEtaEta | ( | float | val | ) |
set the sigmaetaeta
Definition at line 85 of file PFCandidateEGammaExtra.cc.
References MVA_LogSigmaEtaEta, setVariable(), sigmaEtaEta_, and heppy_batch::val.
Referenced by PFEGammaAlgo::calculateEleMVA(), and singleLegConversionRef().
void PFCandidateEGammaExtra::setStatus | ( | StatusFlag | type, |
bool | status = true |
||
) |
set status
Definition at line 135 of file PFCandidateEGammaExtra.cc.
References status_.
Referenced by singleLegConversionRef().
|
inline |
set reference to the corresponding supercluster
Definition at line 114 of file PFCandidateEGammaExtra.h.
References addSingleLegConvTrackRefMva(), SimDataFormats::CaloAnalysis::sc, and scPFECALRef_.
Referenced by PFEGammaAlgo::fillPFCandidates().
|
inline |
set reference to the corresponding supercluster
Definition at line 111 of file PFCandidateEGammaExtra.h.
References SimDataFormats::CaloAnalysis::sc, and scRef_.
Referenced by PFEGammaAlgo::fillPFCandidates(), and PFEGammaProducer::produce().
|
private |
Definition at line 128 of file PFCandidateEGammaExtra.cc.
References mvaStatus_, mvaVariables_, and heppy_batch::val.
Referenced by extraNonConvTracks(), PFCandidateEGammaExtra(), setClusterEnergies(), setDeltaEta(), setEarlyBrem(), setHadEnergy(), setKfTrackRef(), setLateBrem(), setMVA(), and setSigmaEtaEta().
|
inline |
Definition at line 177 of file PFCandidateEGammaExtra.h.
References sigmaEtaEta_.
|
inline |
return Conversions from PF
Definition at line 132 of file PFCandidateEGammaExtra.h.
References electronStatus(), setClusterEnergies(), setDeltaEta(), setEarlyBrem(), setGsfTrackPout(), setHadEnergy(), setLateBrem(), setMVA(), setSigmaEtaEta(), setStatus(), singleLegConversions_, mps_update::status, and heppy_batch::val.
|
inline |
return vector of Single Leg Conversion TrackRef from
Definition at line 120 of file PFCandidateEGammaExtra.h.
References addConversionRef(), and assoSingleLeg_.
|
inline |
return a reference to the corresponding box supercluster
Definition at line 108 of file PFCandidateEGammaExtra.h.
References scPFECALRef_.
|
inline |
return a reference to the corresponding supercluster
Definition at line 105 of file PFCandidateEGammaExtra.h.
References scRef_.
|
private |
vector of ConversionRef from PF
Definition at line 214 of file PFCandidateEGammaExtra.h.
Referenced by addConversionRef(), and conversionRef().
|
private |
Definition at line 211 of file PFCandidateEGammaExtra.h.
Referenced by addExtraNonConvTrack(), and extraNonConvTracks().
|
private |
vector of TrackRef from Single Leg conversions and associated mva value
Definition at line 208 of file PFCandidateEGammaExtra.h.
Referenced by addSingleLegConvTrackRefMva(), and singleLegConvTrackRefMva().
|
private |
energy of individual clusters (corrected). The first cluster is the seed
Definition at line 221 of file PFCandidateEGammaExtra.h.
Referenced by setClusterEnergies(), and setHadEnergy().
|
private |
Definition at line 238 of file PFCandidateEGammaExtra.h.
Referenced by setDeltaEta().
|
private |
Definition at line 234 of file PFCandidateEGammaExtra.h.
Referenced by setEarlyBrem().
|
private |
Ref to the electron gsf cluster;.
Definition at line 199 of file PFCandidateEGammaExtra.h.
Referenced by gsfElectronClusterRef(), and setGsfElectronClusterRef().
|
private |
Ref to the GSF track.
Definition at line 195 of file PFCandidateEGammaExtra.h.
Referenced by gsfTrackRef(), PFCandidateEGammaExtra(), setClusterEnergies(), and setGsfTrackRef().
|
private |
Definition at line 237 of file PFCandidateEGammaExtra.h.
Referenced by hadEnergy(), PFCandidateEGammaExtra(), setClusterEnergies(), and setHadEnergy().
|
private |
Ref to the KF track.
Definition at line 197 of file PFCandidateEGammaExtra.h.
Referenced by kfTrackRef(), PFCandidateEGammaExtra(), and setKfTrackRef().
|
private |
Definition at line 235 of file PFCandidateEGammaExtra.h.
Referenced by setLateBrem().
|
private |
status of mva variables
Definition at line 227 of file PFCandidateEGammaExtra.h.
Referenced by mvaStatus(), PFCandidateEGammaExtra(), and setVariable().
|
private |
mva variables - transient !
Definition at line 224 of file PFCandidateEGammaExtra.h.
Referenced by mvaVariable(), mvaVariables(), PFCandidateEGammaExtra(), and setVariable().
|
private |
Variables entering the MVA that should be saved.
Definition at line 233 of file PFCandidateEGammaExtra.h.
Referenced by PFCandidateEGammaExtra(), setClusterEnergies(), and setGsfTrackPout().
|
private |
Ref to PF-ECAL only supercluster.
Definition at line 205 of file PFCandidateEGammaExtra.h.
Referenced by setSuperClusterPFECALRef(), and superClusterPFECALRef().
|
private |
Ref to (refined) supercluster.
Definition at line 202 of file PFCandidateEGammaExtra.h.
Referenced by setSuperClusterRef(), and superClusterRef().
|
private |
Definition at line 236 of file PFCandidateEGammaExtra.h.
Referenced by PFCandidateEGammaExtra(), setSigmaEtaEta(), and sigmaEtaEta().
|
private |
Definition at line 217 of file PFCandidateEGammaExtra.h.
Referenced by addSingleLegConversionRef(), and singleLegConversionRef().
|
private |
Status of the electron.
Definition at line 230 of file PFCandidateEGammaExtra.h.
Referenced by electronStatus(), PFCandidateEGammaExtra(), and setStatus().