#include <MuIsoByTrackPt.h>
Public Member Functions | |
virtual reco::isodeposit::IsoDepositExtractor * | extractor () |
virtual bool | isIsolated (const edm::Event &, const edm::EventSetup &, const reco::Track &muon) |
virtual bool | isIsolated (const edm::Event &ev, const edm::EventSetup &es, const reco::TrackRef &muon) |
virtual float | isolation (const edm::Event &, const edm::EventSetup &, const reco::Track &muon) |
The isolation result for one muon. | |
virtual float | isolation (const edm::Event &ev, const edm::EventSetup &es, const reco::TrackRef &muon) |
virtual muonisolation::IsolatorByDeposit * | isolator () |
MuIsoByTrackPt (const edm::ParameterSet &conf) | |
void | setConeSize (float dr) |
void | setCut (float cut) |
virtual | ~MuIsoByTrackPt () |
Private Attributes | |
float | theCut |
reco::isodeposit::IsoDepositExtractor * | theExtractor |
muonisolation::IsolatorByDeposit * | theIsolator |
Definition at line 15 of file MuIsoByTrackPt.h.
MuIsoByTrackPt::MuIsoByTrackPt | ( | const edm::ParameterSet & | conf | ) |
Definition at line 22 of file MuIsoByTrackPt.cc.
References reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), theCut, theExtractor, theIsolator, and create_public_pileup_plots::weights.
: theExtractor(0), theIsolator(0) { edm::ParameterSet extractorPSet = conf.getParameter<edm::ParameterSet>("ExtractorPSet"); string extractorName = extractorPSet.getParameter<string>("ComponentName"); theExtractor = IsoDepositExtractorFactory::get()->create(extractorName, extractorPSet); theCut = conf.getUntrackedParameter<double>("Threshold", 0.); float coneSize = conf.getUntrackedParameter<double>("ConeSize", 0.); vector<double> weights(1,1.); theIsolator = new IsolatorByDeposit(coneSize, weights); }
MuIsoByTrackPt::~MuIsoByTrackPt | ( | ) | [virtual] |
Definition at line 35 of file MuIsoByTrackPt.cc.
References theExtractor, and theIsolator.
{ delete theExtractor; delete theIsolator; }
virtual reco::isodeposit::IsoDepositExtractor* MuIsoByTrackPt::extractor | ( | ) | [inline, virtual] |
Definition at line 34 of file MuIsoByTrackPt.h.
References theExtractor.
Referenced by isolation().
{ return theExtractor; }
virtual bool MuIsoByTrackPt::isIsolated | ( | const edm::Event & | ev, |
const edm::EventSetup & | es, | ||
const reco::TrackRef & | muon | ||
) | [inline, virtual] |
Implements MuIsoBaseAlgorithm.
Definition at line 26 of file MuIsoByTrackPt.h.
References isIsolated().
{ return isIsolated(ev, es, *muon); }
bool MuIsoByTrackPt::isIsolated | ( | const edm::Event & | , |
const edm::EventSetup & | , | ||
const reco::Track & | muon | ||
) | [virtual] |
Return logical result of isolaton is all parameters and cuts are fixe (may remain not implemented for all types of isolation)
Implements MuIsoBaseAlgorithm.
Definition at line 58 of file MuIsoByTrackPt.cc.
References isolation(), and theCut.
Referenced by isIsolated().
virtual float MuIsoByTrackPt::isolation | ( | const edm::Event & | ev, |
const edm::EventSetup & | es, | ||
const reco::TrackRef & | muon | ||
) | [inline, virtual] |
Implements MuIsoBaseAlgorithm.
Definition at line 21 of file MuIsoByTrackPt.h.
References isolation().
{ return isolation(ev, es, *muon); }
float MuIsoByTrackPt::isolation | ( | const edm::Event & | , |
const edm::EventSetup & | , | ||
const reco::Track & | muon | ||
) | [virtual] |
The isolation result for one muon.
Implements MuIsoBaseAlgorithm.
Definition at line 46 of file MuIsoByTrackPt.cc.
References reco::isodeposit::IsoDepositExtractor::deposit(), extractor(), isolator(), and muonisolation::IsolatorByDeposit::result().
Referenced by isIsolated(), and isolation().
{ IsoDeposit dep = extractor()->deposit(ev,es,muon); MuIsoBaseIsolator::DepositContainer deposits; deposits.push_back(&dep); if (isolator()->resultType() == MuIsoBaseIsolator::ISOL_FLOAT_TYPE){ return isolator()->result(deposits).valFloat; } return -999.; }
virtual muonisolation::IsolatorByDeposit* MuIsoByTrackPt::isolator | ( | ) | [inline, virtual] |
Definition at line 35 of file MuIsoByTrackPt.h.
References theIsolator.
Referenced by isolation().
{ return theIsolator; }
void MuIsoByTrackPt::setConeSize | ( | float | dr | ) |
Definition at line 41 of file MuIsoByTrackPt.cc.
References muonisolation::IsolatorByDeposit::setConeSize(), and theIsolator.
{ theIsolator->setConeSize(dr); }
void MuIsoByTrackPt::setCut | ( | float | cut | ) | [inline] |
Definition at line 32 of file MuIsoByTrackPt.h.
References GOODCOLL_filter_cfg::cut, and theCut.
float MuIsoByTrackPt::theCut [private] |
Definition at line 38 of file MuIsoByTrackPt.h.
Referenced by isIsolated(), MuIsoByTrackPt(), and setCut().
Definition at line 39 of file MuIsoByTrackPt.h.
Referenced by extractor(), MuIsoByTrackPt(), and ~MuIsoByTrackPt().
Definition at line 40 of file MuIsoByTrackPt.h.
Referenced by isolator(), MuIsoByTrackPt(), setConeSize(), and ~MuIsoByTrackPt().