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...
 
int electronStatus () const
 access to the status More...
 
bool electronStatus (StatusFlag) 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.

57  {
58  kFailsMVA,
59  kKFTracksOnGSFCluster, // any number of additional tracks on GSF cluster
60  kFailsTrackAndHCALIso, // > 3 kfs on Gsf-cluster, bad h/e
61  kKillAdditionalKFs, // tracks with hcal linkbut good gsf etot/p_in
62  kItIsAPion, // bad H/P_in, H/H+E, and E_tot/P_in
63  kCrazyEoverP, // screwey track linking / weird GSFs
64  kTooLargeAngle, // angle between GSF and RSC centroid too large
65  kN_EVETOS
66  };

◆ 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.

◆ PhotonVetoes

Enumerator
kFailsTrackIso 
kN_PHOVETOS 

Definition at line 68 of file PFCandidateEGammaExtra.h.

68  {
69  kFailsTrackIso, // the photon fails tracker isolation
71  };

◆ StatusFlag

Enumerator
Selected 
ECALDrivenPreselected 
MVASelected 
Rejected 

Definition at line 27 of file PFCandidateEGammaExtra.h.

27  {
28  X = 0, // undefined
29  Selected, // selected
30  ECALDrivenPreselected, // ECAL-driven electron pre-selected
31  MVASelected, // Passed the internal particle-flow selection (mva selection)
32  Rejected // Rejected
33  };

Constructor & Destructor Documentation

◆ PFCandidateEGammaExtra() [1/2]

PFCandidateEGammaExtra::PFCandidateEGammaExtra ( )

constructor

Definition at line 8 of file PFCandidateEGammaExtra.cc.

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 }

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

◆ PFCandidateEGammaExtra() [2/2]

PFCandidateEGammaExtra::PFCandidateEGammaExtra ( const GsfTrackRef gsfTrack)

constructor

Definition at line 22 of file PFCandidateEGammaExtra.cc.

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 }

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_.

◆ ~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.

143  {
145 }

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

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ 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.

177  {
179  assoNonConvExtraTracks_.push_back(std::make_pair(blk, tkref.index()));
180  }
181  }

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

Referenced by PFEGammaAlgo::fillExtraInfo().

◆ addSingleLegConversionRef()

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

add Conversions from PF

Definition at line 147 of file PFCandidateEGammaExtra.cc.

147  {
149 }

References edm::RefVector< C, T, F >::push_back(), and 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.

139  {
140  assoSingleLeg_.push_back(trackrefmva);
141 }

References assoSingleLeg_.

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ conversionRef()

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

return Conversions from PF

Definition at line 123 of file PFCandidateEGammaExtra.h.

123 { return assoConversionsRef_; }

References assoConversionsRef_.

◆ electronStatus() [1/2]

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

access to the status

Definition at line 161 of file PFCandidateEGammaExtra.h.

161 { return status_; }

References status_.

◆ electronStatus() [2/2]

bool PFCandidateEGammaExtra::electronStatus ( StatusFlag  flag) const

access to the status

Definition at line 131 of file PFCandidateEGammaExtra.cc.

131 { return status_ & (1 << flag); }

References RemoveAddSevLevel::flag, and status_.

◆ extraNonConvTracks()

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

Definition at line 182 of file PFCandidateEGammaExtra.h.

182 { return assoNonConvExtraTracks_; }

References 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.

99 { return eleGsfCluster_; }

References eleGsfCluster_.

◆ gsfTrackRef()

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

return a reference to the corresponding GSF track

Definition at line 93 of file PFCandidateEGammaExtra.h.

93 { return gsfTrackRef_; }

References gsfTrackRef_.

◆ hadEnergy()

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

access to specific variables

Definition at line 173 of file PFCandidateEGammaExtra.h.

173 { return hadEnergy_; }

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.

96 { return kfTrackRef_; }

References kfTrackRef_.

◆ mvaStatus()

bool PFCandidateEGammaExtra::mvaStatus ( MvaVariable  flag) const

access to mva variable status

Definition at line 133 of file PFCandidateEGammaExtra.cc.

133 { return mvaStatus_ & (1 << (flag)); }

References RemoveAddSevLevel::flag, and mvaStatus_.

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

◆ mvaVariable()

float PFCandidateEGammaExtra::mvaVariable ( MvaVariable  var) const

access to any variable

Definition at line 135 of file PFCandidateEGammaExtra.cc.

135  {
136  return (mvaStatus(var) ? mvaVariables_[var] : -9999.);
137 }

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

Referenced by reco::operator<<().

◆ mvaVariables()

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

access to the mva variables

Definition at line 167 of file PFCandidateEGammaExtra.h.

167 { return mvaVariables_; }

References mvaVariables_.

◆ 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.

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 }

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

◆ setDeltaEta()

void PFCandidateEGammaExtra::setDeltaEta ( float  val)

set the delta eta

Definition at line 85 of file PFCandidateEGammaExtra.cc.

85  {
86  deltaEta_ = val;
88 }

References deltaEta_, MVA_DeltaEtaTrackCluster, setVariable(), and heppy_batch::val.

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ setEarlyBrem()

void PFCandidateEGammaExtra::setEarlyBrem ( float  val)

set EarlyBrem

Definition at line 69 of file PFCandidateEGammaExtra.cc.

69  {
70  earlyBrem_ = val;
72 }

References earlyBrem_, MVA_FirstBrem, setVariable(), and heppy_batch::val.

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ 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.

88  {
89  eleGsfCluster_ = ElementInBlock(blk, ref.index());
90  }

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

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ 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.

49 { pout_ = pout; }

References pout_.

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ setGsfTrackRef()

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

set gsftrack reference

Definition at line 47 of file PFCandidateEGammaExtra.cc.

47 { gsfTrackRef_ = ref; }

References gsfTrackRef_.

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ 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.

74  {
75  hadEnergy_ = val;
76  if (!clusterEnergies_.empty())
78 }

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.

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 }

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

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ setLateBrem()

void PFCandidateEGammaExtra::setLateBrem ( float  val)

set LateBrem

Definition at line 64 of file PFCandidateEGammaExtra.cc.

64  {
65  lateBrem_ = val;
67 }

References lateBrem_, MVA_LateBrem, setVariable(), and heppy_batch::val.

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ setMVA()

void PFCandidateEGammaExtra::setMVA ( float  val)

set the result (mostly for debugging)

Definition at line 116 of file PFCandidateEGammaExtra.cc.

116 { setVariable(MVA_MVA, val); }

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

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ setSigmaEtaEta()

void PFCandidateEGammaExtra::setSigmaEtaEta ( float  val)

set the sigmaetaeta

Definition at line 80 of file PFCandidateEGammaExtra.cc.

80  {
81  sigmaEtaEta_ = val;
83 }

References MVA_LogSigmaEtaEta, setVariable(), sigmaEtaEta_, and heppy_batch::val.

Referenced by PFEGammaAlgo::calculateEleMVA().

◆ setStatus()

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

set status

Definition at line 123 of file PFCandidateEGammaExtra.cc.

123  {
124  if (status) {
125  status_ |= (1 << type);
126  } else {
127  status_ &= ~(1 << type);
128  }
129 }

References mps_update::status, and status_.

◆ setSuperClusterPFECALRef()

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

set reference to the corresponding supercluster

Definition at line 111 of file PFCandidateEGammaExtra.h.

111 { scPFECALRef_ = sc; }

References scPFECALRef_.

Referenced by PFEGammaAlgo::fillPFCandidates().

◆ setSuperClusterRef()

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

set reference to the corresponding supercluster

Definition at line 108 of file PFCandidateEGammaExtra.h.

108 { scRef_ = sc; }

References scRef_.

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

◆ setVariable()

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

◆ sigmaEtaEta()

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

Definition at line 174 of file PFCandidateEGammaExtra.h.

174 { return sigmaEtaEta_; }

References sigmaEtaEta_.

◆ singleLegConversionRef()

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

return Conversions from PF

Definition at line 129 of file PFCandidateEGammaExtra.h.

129 { return singleLegConversions_; }

References 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.

117 { return assoSingleLeg_; }

References assoSingleLeg_.

◆ superClusterPFECALRef()

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

return a reference to the corresponding box supercluster

Definition at line 105 of file PFCandidateEGammaExtra.h.

105 { return scPFECALRef_; }

References scPFECALRef_.

◆ superClusterRef()

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

return a reference to the corresponding supercluster

Definition at line 102 of file PFCandidateEGammaExtra.h.

102 { return scRef_; }

References scRef_.

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().

reco::PFBlockElementTrack::trackType
bool trackType(TrackType trType) const override
Definition: PFBlockElementTrack.h:28
reco::PFCandidateEGammaExtra::kN_EVETOS
Definition: PFCandidateEGammaExtra.h:65
reco::PFCandidateEGammaExtra::setHadEnergy
void setHadEnergy(float val)
set the had energy. The cluster energies should be entered before
Definition: PFCandidateEGammaExtra.cc:74
reco::PFCandidateEGammaExtra::eleGsfCluster_
ElementInBlock eleGsfCluster_
Ref to the electron gsf cluster;.
Definition: PFCandidateEGammaExtra.h:193
reco::GsfTrackRef
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
Definition: GsfTrackFwd.h:13
reco::PFCandidateEGammaExtra::kItIsAPion
Definition: PFCandidateEGammaExtra.h:62
reco::PFCandidateEGammaExtra::MVA_LnPtGsf
Definition: PFCandidateEGammaExtra.h:38
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
reco::PFCandidateEGammaExtra::MVA_LAST
Definition: PFCandidateEGammaExtra.h:54
reco::PFCandidateEGammaExtra::pout_
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.
Definition: PFCandidateEGammaExtra.h:227
reco::PFCandidateEGammaExtra::kKFTracksOnGSFCluster
Definition: PFCandidateEGammaExtra.h:59
mps_update.status
status
Definition: mps_update.py:69
reco::PFCandidateEGammaExtra::ECALDrivenPreselected
Definition: PFCandidateEGammaExtra.h:30
reco::PFCandidateEGammaExtra::deltaEta_
float deltaEta_
Definition: PFCandidateEGammaExtra.h:232
reco::PFCandidateEGammaExtra::kFailsTrackAndHCALIso
Definition: PFCandidateEGammaExtra.h:60
reco::PFCandidateEGammaExtra::MVA_MVA
Definition: PFCandidateEGammaExtra.h:53
reco::PFCandidateEGammaExtra::mvaVariables_
std::vector< float > mvaVariables_
mva variables - transient !
Definition: PFCandidateEGammaExtra.h:218
reco::PFCandidateEGammaExtra::MVA_NhitsKf
Definition: PFCandidateEGammaExtra.h:43
reco::PFCandidateEGammaExtra::kfTrackRef_
reco::TrackRef kfTrackRef_
Ref to the KF track.
Definition: PFCandidateEGammaExtra.h:191
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
reco::PFCandidateEGammaExtra::lateBrem_
float lateBrem_
Definition: PFCandidateEGammaExtra.h:229
reco::PFCandidateEGammaExtra::scPFECALRef_
reco::SuperClusterRef scPFECALRef_
Ref to PF-ECAL only supercluster.
Definition: PFCandidateEGammaExtra.h:199
reco::PFCandidateEGammaExtra::assoNonConvExtraTracks_
ElementsInBlocks assoNonConvExtraTracks_
Definition: PFCandidateEGammaExtra.h:205
reco::PFCandidateEGammaExtra::gsfTrackRef_
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
Definition: PFCandidateEGammaExtra.h:189
reco::PFCandidateEGammaExtra::kFailsMVA
Definition: PFCandidateEGammaExtra.h:58
reco::PFCandidateEGammaExtra::MVA_Chi2Gsf
Definition: PFCandidateEGammaExtra.h:42
reco::PFCandidateEGammaExtra::kTooLargeAngle
Definition: PFCandidateEGammaExtra.h:64
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::PFCandidateEGammaExtra::MVA_HOverHE
Definition: PFCandidateEGammaExtra.h:50
reco::PFCandidateEGammaExtra::MVA_EbremOverDeltaP
Definition: PFCandidateEGammaExtra.h:47
reco::PFCandidateEGammaExtra::Selected
Definition: PFCandidateEGammaExtra.h:29
reco::TrackRef
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20
reco::PFCandidateEGammaExtra::X
Definition: PFCandidateEGammaExtra.h:28
reco::PFCandidateEGammaExtra::hadEnergy_
float hadEnergy_
Definition: PFCandidateEGammaExtra.h:231
reco::PFCandidateEGammaExtra::earlyBrem_
float earlyBrem_
Definition: PFCandidateEGammaExtra.h:228
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
reco::PFCandidateEGammaExtra::kFailsTrackIso
Definition: PFCandidateEGammaExtra.h:69
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:39
reco::PFCandidateEGammaExtra::MVA_LogSigmaEtaEta
Definition: PFCandidateEGammaExtra.h:49
reco::PFBlockElement::T_FROM_GAMMACONV
Definition: PFBlockElement.h:47
reco::PFCandidateEGammaExtra::Rejected
Definition: PFCandidateEGammaExtra.h:32
reco::PFCandidateEGammaExtra::sigmaEtaEta_
float sigmaEtaEta_
Definition: PFCandidateEGammaExtra.h:230
reco::PFCandidateEGammaExtra::mvaStatus
bool mvaStatus(MvaVariable flag) const
access to mva variable status
Definition: PFCandidateEGammaExtra.cc:133
reco::PFCandidateEGammaExtra::kN_PHOVETOS
Definition: PFCandidateEGammaExtra.h:70
reco::PFCandidateEGammaExtra::setVariable
void setVariable(MvaVariable type, float var)
Definition: PFCandidateEGammaExtra.cc:118
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
reco::PFCandidateEGammaExtra::status_
int status_
Status of the electron.
Definition: PFCandidateEGammaExtra.h:224
reco::PFCandidateEGammaExtra::singleLegConversions_
reco::ConversionRefVector singleLegConversions_
Definition: PFCandidateEGammaExtra.h:211
reco::PFCandidateEGammaExtra::assoSingleLeg_
std::vector< std::pair< reco::TrackRef, float > > assoSingleLeg_
vector of TrackRef from Single Leg conversions and associated mva value
Definition: PFCandidateEGammaExtra.h:202
reco::PFCandidateEGammaExtra::mvaStatus_
int mvaStatus_
status of mva variables
Definition: PFCandidateEGammaExtra.h:221
reco::PFCandidateEGammaExtra::MVA_Fbrem
Definition: PFCandidateEGammaExtra.h:41
reco::PFCandidateEGammaExtra::MVA_SigmaPtOverPt
Definition: PFCandidateEGammaExtra.h:40
reco::PFCandidateEGammaExtra::MVA_EtaGsf
Definition: PFCandidateEGammaExtra.h:39
heppy_batch.val
val
Definition: heppy_batch.py:351
reco::PFCandidateEGammaExtra::MVA_EtotOverPin
Definition: PFCandidateEGammaExtra.h:45
reco::PFCandidateEGammaExtra::MVASelected
Definition: PFCandidateEGammaExtra.h:31
reco::PFCandidateEGammaExtra::MVA_Chi2Kf
Definition: PFCandidateEGammaExtra.h:44
reco::PFCandidateEGammaExtra::MvaVariable
MvaVariable
Definition: PFCandidateEGammaExtra.h:36
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
reco::ElementInBlock
std::pair< reco::PFBlockRef, unsigned > ElementInBlock
Definition: PFCandidateEGammaExtra.h:22
reco::PFCandidateEGammaExtra::assoConversionsRef_
reco::ConversionRefVector assoConversionsRef_
vector of ConversionRef from PF
Definition: PFCandidateEGammaExtra.h:208
reco::PFCandidateEGammaExtra::MVA_DeltaEtaTrackCluster
Definition: PFCandidateEGammaExtra.h:48
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
reco::PFCandidateEGammaExtra::MVA_LateBrem
Definition: PFCandidateEGammaExtra.h:51
reco::PFCandidateEGammaExtra::clusterEnergies_
std::vector< float > clusterEnergies_
Definition: PFCandidateEGammaExtra.h:215
reco::PFCandidateEGammaExtra::scRef_
reco::SuperClusterRef scRef_
Ref to (refined) supercluster.
Definition: PFCandidateEGammaExtra.h:196
reco::PFCandidateEGammaExtra::MVA_FirstBrem
Definition: PFCandidateEGammaExtra.h:52
reco::PFCandidateEGammaExtra::MVA_FIRST
Definition: PFCandidateEGammaExtra.h:37
reco::PFBlockElement::index
unsigned index() const
Definition: PFBlockElement.h:86
reco::PFCandidateEGammaExtra::kCrazyEoverP
Definition: PFCandidateEGammaExtra.h:63
reco::PFCandidateEGammaExtra::kKillAdditionalKFs
Definition: PFCandidateEGammaExtra.h:61
reco::PFCandidateEGammaExtra::MVA_EseedOverPout
Definition: PFCandidateEGammaExtra.h:46
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443