#include <SignPFSpecificAlgo.h>
Public Member Functions | |
void | addPFCandidate (reco::PFCandidatePtr pf) |
void | addPFJets (edm::Handle< edm::View< reco::PFJet > > PFJets) |
TMatrixD | getSignifMatrix () const |
void | setResolutions (metsig::SignAlgoResolutions *resolutions) |
SignPFSpecificAlgo () | |
~SignPFSpecificAlgo () | |
Private Attributes | |
metsig::significanceAlgo | algo_ |
std::set< reco::PFCandidatePtr > | clusteredParticlePtrs_ |
metsig::SignAlgoResolutions * | resolutions_ |
Definition at line 17 of file SignPFSpecificAlgo.h.
metsig::SignPFSpecificAlgo::SignPFSpecificAlgo | ( | ) |
Definition at line 10 of file SignPFSpecificAlgo.cc.
References clusteredParticlePtrs_.
: resolutions_(0), algo_() {clusteredParticlePtrs_.clear();}
metsig::SignPFSpecificAlgo::~SignPFSpecificAlgo | ( | ) |
Definition at line 15 of file SignPFSpecificAlgo.cc.
{}
void metsig::SignPFSpecificAlgo::addPFCandidate | ( | reco::PFCandidatePtr | pf | ) |
Definition at line 37 of file SignPFSpecificAlgo.cc.
{ if(clusteredParticlePtrs_.find(pf) != clusteredParticlePtrs_.end()) return; //pf candidate already added in jet collection std::vector<metsig::SigInputObj> vobj; vobj.push_back(resolutions_->evalPF(&(*pf))); algo_.addObjects(vobj); }
void metsig::SignPFSpecificAlgo::addPFJets | ( | edm::Handle< edm::View< reco::PFJet > > | PFJets | ) |
Definition at line 24 of file SignPFSpecificAlgo.cc.
References i, and metsig::jet.
{ std::vector<metsig::SigInputObj> vobj; for(edm::View<reco::PFJet>::const_iterator jet = PFJets->begin(); jet != PFJets->end(); ++jet){ vobj.push_back(resolutions_->evalPFJet(&(*jet))); //save jet constituents std::vector<reco::PFCandidatePtr> pfs = jet->getPFConstituents(); for(unsigned int i=0; i<pfs.size(); i++) clusteredParticlePtrs_.insert(pfs[i]); } algo_.addObjects(vobj); }
TMatrixD metsig::SignPFSpecificAlgo::getSignifMatrix | ( | ) | const [inline] |
Definition at line 27 of file SignPFSpecificAlgo.h.
References algo_, and metsig::significanceAlgo::getSignifMatrix().
{return algo_.getSignifMatrix();}
void metsig::SignPFSpecificAlgo::setResolutions | ( | metsig::SignAlgoResolutions * | resolutions | ) |
Definition at line 18 of file SignPFSpecificAlgo.cc.
{ resolutions_ = resolutions; }
Definition at line 33 of file SignPFSpecificAlgo.h.
Referenced by getSignifMatrix().
std::set<reco::PFCandidatePtr> metsig::SignPFSpecificAlgo::clusteredParticlePtrs_ [private] |
Definition at line 32 of file SignPFSpecificAlgo.h.
Referenced by SignPFSpecificAlgo().
Definition at line 31 of file SignPFSpecificAlgo.h.