54 float chi2_kf = -0.01;
57 nhit_kf = (float)
kfTrackRef_->hitPattern().trackerLayersWithMeasurement();
96 const float m_el2 = 0.00051 * 0.00051;
103 for (
unsigned ic = 0; ic <
size; ++ic) {
151 static const char*
const listVar[] = {
"LogPt",
161 "DeltaEtaTrackCluster",
172 out << std::setiosflags(std::ios::left) << std::setw(20) <<
"Variable index" << std::setw(20) <<
"Name"
173 << std::setw(10) <<
"Set(0/1)" << std::setw(8) <<
"value" << std::endl;
176 out << std::setw(20) <<
i << std::setw(20) <<
listVar[
i] << std::setw(10) << extra.
mvaStatus(
i) << std::setw(8)
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
static std::vector< std::string > checklist log
bool isNonnull() const
Checks for non-null.
std::vector< float > clusterEnergies_
reco::TrackRef kfTrackRef_
Ref to the KF track.
void setStatus(StatusFlag type, bool status=true)
set status
int status_
Status of the electron.
void addSingleLegConvTrackRefMva(const std::pair< reco::TrackRef, float > &trackrefmva)
add Single Leg Conversion TrackRef
void setHadEnergy(float val)
set the had energy. The cluster energies should be entered before
PFCandidateEGammaExtra()
constructor
int mvaStatus_
status of mva variables
std::vector< std::pair< reco::TrackRef, float > > assoSingleLeg_
vector of TrackRef from Single Leg conversions and associated mva value
static const char *const listVar[]
void setGsfTrackRef(const reco::GsfTrackRef &ref)
set gsftrack reference
reco::ConversionRefVector assoConversionsRef_
vector of ConversionRef from PF
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
void setSigmaEtaEta(float val)
set the sigmaetaeta
std::vector< float > mvaVariables_
mva variables - transient !
std::ostream & operator<<(std::ostream &, BeamSpot beam)
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
void setEarlyBrem(float val)
set EarlyBrem
void setVariable(MvaVariable type, float var)
void setGsfTrackPout(const math::XYZTLorentzVector &pout)
set the pout (not trivial to get from the GSF track)
void addSingleLegConversionRef(const reco::ConversionRef &convref)
add Conversions from PF
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
int electronStatus() const
access to the status
void setClusterEnergies(const std::vector< float > &energies)
set the cluster energies. the Pout should be saved first
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.
void setDeltaEta(float val)
set the delta eta
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
bool mvaStatus(MvaVariable flag) const
access to mva variable status
void addConversionRef(const reco::ConversionRef &convref)
add Conversions from PF
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
void setKfTrackRef(const reco::TrackRef &ref)
set kf track reference
void setMVA(float val)
set the result (mostly for debugging)
void setLateBrem(float val)
set LateBrem
reco::ConversionRefVector singleLegConversions_
float mvaVariable(MvaVariable var) const
access to any variable
tuple size
Write out results.