CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
reco::PFCandidateEGammaExtra Class Reference

#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 ElementsInBlocksextraNonConvTracks () const
 
const ElementInBlockgsfElectronClusterRef () 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...
 

Detailed Description

extra information on the photon/electron particle candidate from particle flow

Definition at line 25 of file PFCandidateEGammaExtra.h.

Member Enumeration Documentation

◆ ElectronVetoes

Enumerator
kFailsMVA 
kKFTracksOnGSFCluster 
kFailsTrackAndHCALIso 
kKillAdditionalKFs 
kItIsAPion 
kCrazyEoverP 
kTooLargeAngle 
kN_EVETOS 

Definition at line 57 of file PFCandidateEGammaExtra.h.

◆ MvaVariable

Enumerator
MVA_FIRST 
MVA_LnPtGsf 
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 

Definition at line 36 of file PFCandidateEGammaExtra.h.

36  {
37  MVA_FIRST = 0,
39  MVA_EtaGsf,
41  MVA_Fbrem,
44  MVA_Chi2Kf,
53  MVA_MVA,
54  MVA_LAST
55  };

◆ PhotonVetoes

Enumerator
kFailsTrackIso 
kN_PHOVETOS 

Definition at line 68 of file PFCandidateEGammaExtra.h.

◆ StatusFlag

Enumerator
Selected 
ECALDrivenPreselected 
MVASelected 
Rejected 

Definition at line 27 of file PFCandidateEGammaExtra.h.

Constructor & Destructor Documentation

◆ PFCandidateEGammaExtra() [1/2]

PFCandidateEGammaExtra::PFCandidateEGammaExtra ( )

constructor

Definition at line 8 of file PFCandidateEGammaExtra.cc.

References gsfTrackRef_, hadEnergy_, kfTrackRef_, visualization-live-secondInstance_cfg::m, MVA_FIRST, MVA_LAST, mvaStatus_, mvaVariables_, pout_, sigmaEtaEta_, and status_.

8  {
9  status_ = 0;
10  mvaStatus_ = 0;
11  pout_ = math::XYZTLorentzVector(0., 0., 0., 0.);
12  hadEnergy_ = -9999.;
13  sigmaEtaEta_ = -9999.;
14 
15  for (MvaVariable m = MVA_FIRST; m < MVA_LAST; m = MvaVariable(m + 1))
16  mvaVariables_.push_back(-9999.);
17 
20 }
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
Definition: GsfTrackFwd.h:13
reco::TrackRef kfTrackRef_
Ref to the KF track.
int status_
Status of the electron.
int mvaStatus_
status of mva variables
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
std::vector< float > mvaVariables_
mva variables - transient !
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20

◆ PFCandidateEGammaExtra() [2/2]

PFCandidateEGammaExtra::PFCandidateEGammaExtra ( const GsfTrackRef gsfTrack)

constructor

Definition at line 22 of file PFCandidateEGammaExtra.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_.

22  {
23  status_ = 0;
24  mvaStatus_ = 0;
25  pout_ = math::XYZTLorentzVector(0., 0., 0., 0.);
26  hadEnergy_ = -9999.;
27  sigmaEtaEta_ = -9999.;
28 
29  for (MvaVariable m = MVA_FIRST; m < MVA_LAST; m = MvaVariable(m + 1))
30  mvaVariables_.push_back(-9999.);
31 
32  gsfTrackRef_ = gsfTrack;
34 
36  setVariable(MVA_EtaGsf, gsfTrackRef_->etaMode());
37  setVariable(MVA_Chi2Gsf, gsfTrackRef_->normalizedChi2());
38  float ptmodeerror = gsfTrackRef_->ptModeError();
39  if (ptmodeerror > 0.)
40  setVariable(MVA_SigmaPtOverPt, ptmodeerror / gsfTrackRef_->ptMode());
41  else
43 
44  setVariable(MVA_Fbrem, (gsfTrackRef_->ptMode() - pout_.pt()) / gsfTrackRef_->ptMode());
45 }
reco::TrackRef kfTrackRef_
Ref to the KF track.
int status_
Status of the electron.
int mvaStatus_
status of mva variables
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
std::vector< float > mvaVariables_
mva variables - transient !
void setVariable(MvaVariable type, float var)
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20

◆ ~PFCandidateEGammaExtra()

reco::PFCandidateEGammaExtra::~PFCandidateEGammaExtra ( )
inline

destructor

Definition at line 79 of file PFCandidateEGammaExtra.h.

79 { ; }

Member Function Documentation

◆ addConversionRef()

void PFCandidateEGammaExtra::addConversionRef ( const reco::ConversionRef convref)

add Conversions from PF

Definition at line 143 of file PFCandidateEGammaExtra.cc.

References assoConversionsRef_, and edm::RefVector< C, T, F >::push_back().

Referenced by PFEGammaAlgo::fillPFCandidates().

143  {
145 }
reco::ConversionRefVector assoConversionsRef_
vector of ConversionRef from PF
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67

◆ addExtraNonConvTrack()

void reco::PFCandidateEGammaExtra::addExtraNonConvTrack ( const reco::PFBlockRef blk,
const reco::PFBlockElementTrack tkref 
)
inline

track counting for electrons and photons

Definition at line 177 of file PFCandidateEGammaExtra.h.

References assoNonConvExtraTracks_, reco::PFBlockElement::index(), reco::PFBlockElement::T_FROM_GAMMACONV, and reco::PFBlockElementTrack::trackType().

Referenced by PFEGammaAlgo::fillExtraInfo().

177  {
179  assoNonConvExtraTracks_.push_back(std::make_pair(blk, tkref.index()));
180  }
181  }
bool trackType(TrackType trType) const override
unsigned index() const

◆ addSingleLegConversionRef()

void PFCandidateEGammaExtra::addSingleLegConversionRef ( const reco::ConversionRef convref)

add Conversions from PF

Definition at line 147 of file PFCandidateEGammaExtra.cc.

References edm::RefVector< C, T, F >::push_back(), and singleLegConversions_.

147  {
149 }
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
reco::ConversionRefVector singleLegConversions_

◆ addSingleLegConvTrackRefMva()

void PFCandidateEGammaExtra::addSingleLegConvTrackRefMva ( const std::pair< reco::TrackRef, float > &  trackrefmva)

add Single Leg Conversion TrackRef

Definition at line 139 of file PFCandidateEGammaExtra.cc.

References assoSingleLeg_.

Referenced by PFEGammaAlgo::fillPFCandidates().

139  {
140  assoSingleLeg_.push_back(trackrefmva);
141 }
std::vector< std::pair< reco::TrackRef, float > > assoSingleLeg_
vector of TrackRef from Single Leg conversions and associated mva value

◆ conversionRef()

reco::ConversionRefVector reco::PFCandidateEGammaExtra::conversionRef ( ) const
inline

return Conversions from PF

Definition at line 123 of file PFCandidateEGammaExtra.h.

References assoConversionsRef_.

123 { return assoConversionsRef_; }
reco::ConversionRefVector assoConversionsRef_
vector of ConversionRef from PF

◆ electronStatus() [1/2]

bool PFCandidateEGammaExtra::electronStatus ( StatusFlag  flag) const

access to the status

Definition at line 131 of file PFCandidateEGammaExtra.cc.

References RemoveAddSevLevel::flag, and status_.

131 { return status_ & (1 << flag); }
int status_
Status of the electron.

◆ electronStatus() [2/2]

int reco::PFCandidateEGammaExtra::electronStatus ( ) const
inline

access to the status

Definition at line 161 of file PFCandidateEGammaExtra.h.

References status_.

161 { return status_; }
int status_
Status of the electron.

◆ extraNonConvTracks()

const ElementsInBlocks& reco::PFCandidateEGammaExtra::extraNonConvTracks ( ) const
inline

Definition at line 182 of file PFCandidateEGammaExtra.h.

References assoNonConvExtraTracks_.

182 { return assoNonConvExtraTracks_; }

◆ gsfElectronClusterRef()

const ElementInBlock& reco::PFCandidateEGammaExtra::gsfElectronClusterRef ( ) const
inline

return a reference to the electron cluster ref

Definition at line 99 of file PFCandidateEGammaExtra.h.

References eleGsfCluster_.

99 { return eleGsfCluster_; }
ElementInBlock eleGsfCluster_
Ref to the electron gsf cluster;.

◆ gsfTrackRef()

reco::GsfTrackRef reco::PFCandidateEGammaExtra::gsfTrackRef ( ) const
inline

return a reference to the corresponding GSF track

Definition at line 93 of file PFCandidateEGammaExtra.h.

References gsfTrackRef_.

93 { return gsfTrackRef_; }
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.

◆ hadEnergy()

float reco::PFCandidateEGammaExtra::hadEnergy ( ) const
inline

access to specific variables

Definition at line 173 of file PFCandidateEGammaExtra.h.

References hadEnergy_.

◆ kfTrackRef()

reco::TrackRef reco::PFCandidateEGammaExtra::kfTrackRef ( ) const
inline

return a reference to the corresponding KF track

Definition at line 96 of file PFCandidateEGammaExtra.h.

References kfTrackRef_.

96 { return kfTrackRef_; }
reco::TrackRef kfTrackRef_
Ref to the KF track.

◆ mvaStatus()

bool PFCandidateEGammaExtra::mvaStatus ( MvaVariable  flag) const

access to mva variable status

Definition at line 133 of file PFCandidateEGammaExtra.cc.

References RemoveAddSevLevel::flag, and mvaStatus_.

Referenced by mvaVariable(), and reco::operator<<().

133 { return mvaStatus_ & (1 << (flag)); }
int mvaStatus_
status of mva variables

◆ mvaVariable()

float PFCandidateEGammaExtra::mvaVariable ( MvaVariable  var) const

access to any variable

Definition at line 135 of file PFCandidateEGammaExtra.cc.

References mvaStatus(), mvaVariables_, and trigObjTnPSource_cfi::var.

Referenced by reco::operator<<().

135  {
136  return (mvaStatus(var) ? mvaVariables_[var] : -9999.);
137 }
std::vector< float > mvaVariables_
mva variables - transient !
bool mvaStatus(MvaVariable flag) const
access to mva variable status

◆ mvaVariables()

const std::vector<float>& reco::PFCandidateEGammaExtra::mvaVariables ( ) const
inline

access to the mva variables

Definition at line 167 of file PFCandidateEGammaExtra.h.

References mvaVariables_.

167 { return mvaVariables_; }
std::vector< float > mvaVariables_
mva variables - transient !

◆ setClusterEnergies()

void PFCandidateEGammaExtra::setClusterEnergies ( const std::vector< float > &  energies)

set the cluster energies. the Pout should be saved first

Definition at line 90 of file PFCandidateEGammaExtra.cc.

References clusterEnergies_, gsfTrackRef_, hadEnergy_, MVA_EbremOverDeltaP, MVA_EseedOverPout, MVA_EtotOverPin, pout_, setHadEnergy(), setVariable(), and mathSSE::sqrt().

90  {
91  clusterEnergies_ = energies;
92 
93  if (pout_.t() != 0.)
95 
96  const float m_el2 = 0.00051 * 0.00051;
97  float Ein_gsf = sqrt(gsfTrackRef_->pMode() * gsfTrackRef_->pMode() + m_el2);
98 
99  float etot = 0;
100  unsigned size = clusterEnergies_.size();
101  // std::cout << " N clusters " << size << std::endl;
102  float ebrem = 0.;
103  for (unsigned ic = 0; ic < size; ++ic) {
104  etot += clusterEnergies_[ic];
105  if (ic > 0)
106  ebrem += clusterEnergies_[ic];
107  }
108  setVariable(MVA_EtotOverPin, etot / Ein_gsf);
109  setVariable(MVA_EbremOverDeltaP, ebrem / (Ein_gsf - pout_.t()));
110 
111  // recompute - as in PFElectronAglo, the had energy is filled before the cluster energies
112  if (hadEnergy_ != -9999.)
114 }
size
Write out results.
void setHadEnergy(float val)
set the had energy. The cluster energies should be entered before
T sqrt(T t)
Definition: SSEVec.h:23
void setVariable(MvaVariable type, float var)
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.

◆ setDeltaEta()

void PFCandidateEGammaExtra::setDeltaEta ( float  val)

◆ setEarlyBrem()

void PFCandidateEGammaExtra::setEarlyBrem ( float  val)

◆ setGsfElectronClusterRef()

void reco::PFCandidateEGammaExtra::setGsfElectronClusterRef ( const reco::PFBlockRef blk,
const reco::PFBlockElementCluster ref 
)
inline

set gsf electron cluster ref

Definition at line 88 of file PFCandidateEGammaExtra.h.

References eleGsfCluster_, and reco::PFBlockElement::index().

Referenced by PFEGammaAlgo::calculateEleMVA().

88  {
89  eleGsfCluster_ = ElementInBlock(blk, ref.index());
90  }
ElementInBlock eleGsfCluster_
Ref to the electron gsf cluster;.
unsigned index() const
std::pair< reco::PFBlockRef, unsigned > ElementInBlock

◆ setGsfTrackPout()

void PFCandidateEGammaExtra::setGsfTrackPout ( const math::XYZTLorentzVector pout)

set the pout (not trivial to get from the GSF track)

Definition at line 49 of file PFCandidateEGammaExtra.cc.

References pout_.

Referenced by PFEGammaAlgo::calculateEleMVA().

49 { pout_ = pout; }
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.

◆ setGsfTrackRef()

void PFCandidateEGammaExtra::setGsfTrackRef ( const reco::GsfTrackRef ref)

set gsftrack reference

Definition at line 47 of file PFCandidateEGammaExtra.cc.

References gsfTrackRef_.

Referenced by PFEGammaAlgo::fillPFCandidates().

47 { gsfTrackRef_ = ref; }
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.

◆ setHadEnergy()

void PFCandidateEGammaExtra::setHadEnergy ( float  val)

set the had energy. The cluster energies should be entered before

Definition at line 74 of file PFCandidateEGammaExtra.cc.

References clusterEnergies_, hadEnergy_, MVA_HOverHE, setVariable(), and heppy_batch::val.

Referenced by PFEGammaAlgo::calculateEleMVA(), and setClusterEnergies().

◆ setKfTrackRef()

void PFCandidateEGammaExtra::setKfTrackRef ( const reco::TrackRef ref)

set kf track reference

Definition at line 51 of file PFCandidateEGammaExtra.cc.

References nano_mu_digi_cff::float, edm::Ref< C, T, F >::isNonnull(), kfTrackRef_, MVA_Chi2Kf, MVA_NhitsKf, and setVariable().

Referenced by PFEGammaAlgo::fillPFCandidates().

51  {
52  kfTrackRef_ = ref;
53  float nhit_kf = 0;
54  float chi2_kf = -0.01;
55  // if the reference is null, it does not mean that the variables have not been set
56  if (kfTrackRef_.isNonnull()) {
57  nhit_kf = (float)kfTrackRef_->hitPattern().trackerLayersWithMeasurement();
58  chi2_kf = kfTrackRef_->normalizedChi2();
59  }
60  setVariable(MVA_NhitsKf, nhit_kf);
61  setVariable(MVA_Chi2Kf, chi2_kf);
62 }
reco::TrackRef kfTrackRef_
Ref to the KF track.
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
void setVariable(MvaVariable type, float var)

◆ setLateBrem()

void PFCandidateEGammaExtra::setLateBrem ( float  val)

◆ setMVA()

void PFCandidateEGammaExtra::setMVA ( float  val)

set the result (mostly for debugging)

Definition at line 116 of file PFCandidateEGammaExtra.cc.

References MVA_MVA, setVariable(), and heppy_batch::val.

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ setSigmaEtaEta()

void PFCandidateEGammaExtra::setSigmaEtaEta ( float  val)

◆ setStatus()

void PFCandidateEGammaExtra::setStatus ( StatusFlag  type,
bool  status = true 
)

set status

Definition at line 123 of file PFCandidateEGammaExtra.cc.

References mps_update::status, and status_.

123  {
124  if (status) {
125  status_ |= (1 << type);
126  } else {
127  status_ &= ~(1 << type);
128  }
129 }
int status_
Status of the electron.

◆ setSuperClusterPFECALRef()

void reco::PFCandidateEGammaExtra::setSuperClusterPFECALRef ( reco::SuperClusterRef  sc)
inline

set reference to the corresponding supercluster

Definition at line 111 of file PFCandidateEGammaExtra.h.

References scPFECALRef_.

Referenced by PFEGammaAlgo::fillPFCandidates().

111 { scPFECALRef_ = sc; }
reco::SuperClusterRef scPFECALRef_
Ref to PF-ECAL only supercluster.

◆ setSuperClusterRef()

void reco::PFCandidateEGammaExtra::setSuperClusterRef ( reco::SuperClusterRef  sc)
inline

set reference to the corresponding supercluster

Definition at line 108 of file PFCandidateEGammaExtra.h.

References scRef_.

Referenced by PFEGammaAlgo::fillPFCandidates(), and PFEGammaProducer::produce().

108 { scRef_ = sc; }
reco::SuperClusterRef scRef_
Ref to (refined) supercluster.

◆ setVariable()

void PFCandidateEGammaExtra::setVariable ( MvaVariable  type,
float  var 
)
private

◆ sigmaEtaEta()

float reco::PFCandidateEGammaExtra::sigmaEtaEta ( ) const
inline

Definition at line 174 of file PFCandidateEGammaExtra.h.

References sigmaEtaEta_.

◆ singleLegConversionRef()

reco::ConversionRefVector reco::PFCandidateEGammaExtra::singleLegConversionRef ( ) const
inline

return Conversions from PF

Definition at line 129 of file PFCandidateEGammaExtra.h.

References singleLegConversions_.

129 { return singleLegConversions_; }
reco::ConversionRefVector singleLegConversions_

◆ singleLegConvTrackRefMva()

const std::vector<std::pair<reco::TrackRef, float> >& reco::PFCandidateEGammaExtra::singleLegConvTrackRefMva ( ) const
inline

return vector of Single Leg Conversion TrackRef from

Definition at line 117 of file PFCandidateEGammaExtra.h.

References assoSingleLeg_.

117 { return assoSingleLeg_; }
std::vector< std::pair< reco::TrackRef, float > > assoSingleLeg_
vector of TrackRef from Single Leg conversions and associated mva value

◆ superClusterPFECALRef()

reco::SuperClusterRef reco::PFCandidateEGammaExtra::superClusterPFECALRef ( ) const
inline

return a reference to the corresponding box supercluster

Definition at line 105 of file PFCandidateEGammaExtra.h.

References scPFECALRef_.

105 { return scPFECALRef_; }
reco::SuperClusterRef scPFECALRef_
Ref to PF-ECAL only supercluster.

◆ superClusterRef()

reco::SuperClusterRef reco::PFCandidateEGammaExtra::superClusterRef ( ) const
inline

return a reference to the corresponding supercluster

Definition at line 102 of file PFCandidateEGammaExtra.h.

References scRef_.

102 { return scRef_; }
reco::SuperClusterRef scRef_
Ref to (refined) supercluster.

Member Data Documentation

◆ assoConversionsRef_

reco::ConversionRefVector reco::PFCandidateEGammaExtra::assoConversionsRef_
private

vector of ConversionRef from PF

Definition at line 208 of file PFCandidateEGammaExtra.h.

Referenced by addConversionRef(), and conversionRef().

◆ assoNonConvExtraTracks_

ElementsInBlocks reco::PFCandidateEGammaExtra::assoNonConvExtraTracks_
private

Definition at line 205 of file PFCandidateEGammaExtra.h.

Referenced by addExtraNonConvTrack(), and extraNonConvTracks().

◆ assoSingleLeg_

std::vector<std::pair<reco::TrackRef, float> > reco::PFCandidateEGammaExtra::assoSingleLeg_
private

vector of TrackRef from Single Leg conversions and associated mva value

Definition at line 202 of file PFCandidateEGammaExtra.h.

Referenced by addSingleLegConvTrackRefMva(), and singleLegConvTrackRefMva().

◆ clusterEnergies_

std::vector<float> reco::PFCandidateEGammaExtra::clusterEnergies_
private

energy of individual clusters (corrected). The first cluster is the seed

Definition at line 215 of file PFCandidateEGammaExtra.h.

Referenced by setClusterEnergies(), and setHadEnergy().

◆ deltaEta_

float reco::PFCandidateEGammaExtra::deltaEta_
private

Definition at line 232 of file PFCandidateEGammaExtra.h.

Referenced by setDeltaEta().

◆ earlyBrem_

float reco::PFCandidateEGammaExtra::earlyBrem_
private

Definition at line 228 of file PFCandidateEGammaExtra.h.

Referenced by setEarlyBrem().

◆ eleGsfCluster_

ElementInBlock reco::PFCandidateEGammaExtra::eleGsfCluster_
private

Ref to the electron gsf cluster;.

Definition at line 193 of file PFCandidateEGammaExtra.h.

Referenced by gsfElectronClusterRef(), and setGsfElectronClusterRef().

◆ gsfTrackRef_

reco::GsfTrackRef reco::PFCandidateEGammaExtra::gsfTrackRef_
private

Ref to the GSF track.

Definition at line 189 of file PFCandidateEGammaExtra.h.

Referenced by gsfTrackRef(), PFCandidateEGammaExtra(), setClusterEnergies(), and setGsfTrackRef().

◆ hadEnergy_

float reco::PFCandidateEGammaExtra::hadEnergy_
private

◆ kfTrackRef_

reco::TrackRef reco::PFCandidateEGammaExtra::kfTrackRef_
private

Ref to the KF track.

Definition at line 191 of file PFCandidateEGammaExtra.h.

Referenced by kfTrackRef(), PFCandidateEGammaExtra(), and setKfTrackRef().

◆ lateBrem_

float reco::PFCandidateEGammaExtra::lateBrem_
private

Definition at line 229 of file PFCandidateEGammaExtra.h.

Referenced by setLateBrem().

◆ mvaStatus_

int reco::PFCandidateEGammaExtra::mvaStatus_
private

status of mva variables

Definition at line 221 of file PFCandidateEGammaExtra.h.

Referenced by mvaStatus(), PFCandidateEGammaExtra(), and setVariable().

◆ mvaVariables_

std::vector<float> reco::PFCandidateEGammaExtra::mvaVariables_
private

mva variables - transient !

Definition at line 218 of file PFCandidateEGammaExtra.h.

Referenced by mvaVariable(), mvaVariables(), PFCandidateEGammaExtra(), and setVariable().

◆ pout_

math::XYZTLorentzVector reco::PFCandidateEGammaExtra::pout_
private

Variables entering the MVA that should be saved.

Definition at line 227 of file PFCandidateEGammaExtra.h.

Referenced by PFCandidateEGammaExtra(), setClusterEnergies(), and setGsfTrackPout().

◆ scPFECALRef_

reco::SuperClusterRef reco::PFCandidateEGammaExtra::scPFECALRef_
private

Ref to PF-ECAL only supercluster.

Definition at line 199 of file PFCandidateEGammaExtra.h.

Referenced by setSuperClusterPFECALRef(), and superClusterPFECALRef().

◆ scRef_

reco::SuperClusterRef reco::PFCandidateEGammaExtra::scRef_
private

Ref to (refined) supercluster.

Definition at line 196 of file PFCandidateEGammaExtra.h.

Referenced by setSuperClusterRef(), and superClusterRef().

◆ sigmaEtaEta_

float reco::PFCandidateEGammaExtra::sigmaEtaEta_
private

Definition at line 230 of file PFCandidateEGammaExtra.h.

Referenced by PFCandidateEGammaExtra(), setSigmaEtaEta(), and sigmaEtaEta().

◆ singleLegConversions_

reco::ConversionRefVector reco::PFCandidateEGammaExtra::singleLegConversions_
private

Definition at line 211 of file PFCandidateEGammaExtra.h.

Referenced by addSingleLegConversionRef(), and singleLegConversionRef().

◆ status_

int reco::PFCandidateEGammaExtra::status_
private

Status of the electron.

Definition at line 224 of file PFCandidateEGammaExtra.h.

Referenced by electronStatus(), PFCandidateEGammaExtra(), and setStatus().