1 #ifndef PFProducer_PFElectronAlgo_H
2 #define PFProducer_PFElectronAlgo_H
14 #include "TMVA/Reader.h"
29 std::string mvaWeightFileEleID,
30 const boost::shared_ptr<PFSCEnergyCalibration>& thePFSCEnergyCalibration,
31 bool applyCrackCorrections,
48 std::vector<bool>& active)
67 typedef std::map< unsigned int, std::vector<unsigned int> >
AssMap;
70 std::vector<bool>& active);
73 std::multimap<double, unsigned int>& Elems,
75 std::vector<bool>& active,
80 AssMap& associatedToBrems_,
82 std::vector<bool>& active);
86 AssMap& associatedToBrems_,
87 AssMap& associatedToEcal_);
91 AssMap& associatedToBrems_,
92 AssMap& associatedToEcal_);
96 AssMap& associatedToBrems_,
98 std::vector<bool>& active);
std::vector< std::pair< unsigned int, unsigned int > > fifthStepKfTrack_
void SetIDOutputs(const reco::PFBlockRef &blockRef, AssMap &associatedToGsf_, AssMap &associatedToBrems_, AssMap &associatedToEcal_)
std::map< unsigned int, std::vector< unsigned int > > AssMap
tuple coneTrackIsoForEgammaSC
tuple coneEcalIsoForEgammaSC
tuple sumEtEcalIsoForEgammaSC_barrel
const std::vector< reco::PFCandidate > & getAllElectronCandidates()
float EtotBremPinPoutMode
void SetCandidates(const reco::PFBlockRef &blockRef, AssMap &associatedToGsf_, AssMap &associatedToBrems_, AssMap &associatedToEcal_)
std::vector< std::pair< unsigned int, unsigned int > > convGsfTrack_
bool isElectronValidCandidate(const reco::PFBlockRef &blockRef, std::vector< bool > &active)
const char * mvaWeightFile_
std::vector< reco::PFCandidateElectronExtra > electronExtra_
tuple sumEtEcalIsoForEgammaSC_endcap
const std::vector< reco::GsfElectron > * theGsfElectrons_
bool isPrimaryTrack(const reco::PFBlockElementTrack &KfEl, const reco::PFBlockElementGsfTrack &GsfEl)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
double coneEcalIsoForEgammaSC_
TMVA::Reader * tmvaReader_
void SetActive(const reco::PFBlockRef &blockRef, AssMap &associatedToGsf_, AssMap &associatedToBrems_, AssMap &associatedToEcal_, std::vector< bool > &active)
void RunPFElectron(const reco::PFBlockRef &blockRef, std::vector< bool > &active)
tuple nTrackIsoForEgammaSC
const std::vector< reco::PFCandidateElectronExtra > & getElectronExtra()
double sumEtEcalIsoForEgammaSC_barrel_
std::vector< bool > lockExtraKf_
std::vector< double > BDToutput_
unsigned int FindClosestElement(const unsigned int iele, std::multimap< double, unsigned int > &Elems, float &chi2cut, std::vector< bool > &active, const reco::PFBlockRef &blockRef)
double sumEtEcalIsoForEgammaSC_endcap_
tuple sumPtTrackIsoForEgammaSC_endcap
std::map< unsigned int, std::vector< reco::PFCandidate > > electronConstituents_
const std::vector< reco::PFCandidate > & getElectronCandidates()
double sumPtTrackIsoForEgammaSC_endcap_
unsigned int whichTrackAlgo(const reco::TrackRef &trackRef)
boost::shared_ptr< PFSCEnergyCalibration > thePFSCEnergyCalibration_
tuple useEGammaSupercluster
tuple sumPtTrackIsoForEgammaSC_barrel
double coneTrackIsoForEgammaSC_
bool SetLinks(const reco::PFBlockRef &blockRef, AssMap &associatedToGsf_, AssMap &associatedToBrems_, AssMap &associatedToEcal_, std::vector< bool > &active)
std::vector< bool > GsfTrackSingleEcal_
PFElectronAlgo(const double mvaEleCut, std::string mvaWeightFileEleID, const boost::shared_ptr< PFSCEnergyCalibration > &thePFSCEnergyCalibration, bool applyCrackCorrections, bool usePFSCEleCalib, bool useEGElectrons, bool useEGammaSupercluster, double sumEtEcalIsoForEgammaSC_barrel, double sumEtEcalIsoForEgammaSC_endcap, double coneEcalIsoForEgammaSC, double sumPtTrackIsoForEgammaSC_barrel, double sumPtTrackIsoForEgammaSC_endcap, unsigned int nTrackIsoForEgammaSC, double coneTrackIsoForEgammaSC)
double sumPtTrackIsoForEgammaSC_barrel_
unsigned int nTrackIsoForEgammaSC_
std::vector< reco::PFCandidate > elCandidate_
bool applyCrackCorrections_
void setEGElectronCollection(const reco::GsfElectronCollection &egelectrons)
bool useEGammaSupercluster_
std::vector< reco::PFCandidate > allElCandidate_