62 nhit_kf=(float)
kfTrackRef_->hitPattern().trackerLayersWithMeasurement();
102 static float m_el2=0.00051*0.00051;
110 for(
unsigned ic=0;ic<
size;++ic) {
162 static std::vector<std::string> listVar;
163 if(listVar.size()==0) {
164 listVar.push_back(
"LogPt");
165 listVar.push_back(
"Eta");
166 listVar.push_back(
"SigmaPtOverPt");
167 listVar.push_back(
"fbrem");
168 listVar.push_back(
"Chi2Gsf");
169 listVar.push_back(
"NhitsKf");
170 listVar.push_back(
"Chi2Kf");
171 listVar.push_back(
"EtotOverPin");
172 listVar.push_back(
"EseedOverPout");
173 listVar.push_back(
"EbremOverDeltaP");
174 listVar.push_back(
"DeltaEtaTrackCluster");
175 listVar.push_back(
"LogSigmaEtaEta");
176 listVar.push_back(
"H/(H+E)");
177 listVar.push_back(
"LateBrem");
178 listVar.push_back(
"FirstBrem");
179 listVar.push_back(
"MVA");
181 out << std::setiosflags(std::ios::left)<< std::setw(20) <<
"Variable index" << std::setw(20) <<
"Name" << std::setw(10) <<
"Set(0/1)" << std::setw(8) <<
"value" << std::endl;
184 out << std::setw(20)<<
i << std::setw(20) << listVar[
i] << std::setw(10) << extra.
mvaStatus(
i) << std::setw(8) << extra.
mvaVariable(
i) << std::endl;
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
std::vector< float > clusterEnergies_
energy of individual clusters (corrected). The first cluster is the seed
void setGsfTrackRef(const reco::GsfTrackRef &ref)
set gsftrack reference
void setMVA(float val)
set the result (mostly for debugging)
void setLateBrem(float val)
set LateBrem
void setVariable(MvaVariable type, float var)
math::XYZTLorentzVector pout_
Variables entering the MVA that should be saved.
void setSigmaEtaEta(float val)
set the sigmaetaeta
void setGsfTrackPout(const math::XYZTLorentzVector &pout)
set the pout (not trivial to get from the GSF track)
void setClusterEnergies(const std::vector< float > &energies)
set the cluster energies. the Pout should be saved first
void setEarlyBrem(float val)
set EarlyBrem
int mvaStatus_
status of mva variables
int electronStatus() const
access to the status
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
reco::TrackRef kfTrackRef_
Ref to the KF track.
bool isNonnull() const
Checks for non-null.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
reco::GsfTrackRef gsfTrackRef_
Ref to the GSF track.
void setStatus(StatusFlag type, bool status=true)
set status
void setDeltaEta(float val)
set the delta eta
int status_
Status of the electron.
std::vector< float > mvaVariables_
mva variables - transient !
void setKfTrackRef(const reco::TrackRef &ref)
set kf track reference
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
bool mvaStatus(MvaVariable flag) const
access to mva variable status
PFCandidateElectronExtra()
constructor
float mvaVariable(MvaVariable var) const
access to any variable
tuple size
Write out results.
void setHadEnergy(float val)
set the had energy. The cluster energies should be entered before