#include <RecoBTag/SoftLepton/plugin/SoftLepton.h>
Classes | |
struct | TrackCompare |
Public Types | |
typedef std::map< unsigned int, float > | LeptonIds |
typedef std::map < edm::RefToBase< reco::Track > , LeptonIds, TrackCompare > | Leptons |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
SoftLepton (const edm::ParameterSet &iConfig) | |
reco::SoftLeptonTagInfo | tag (const edm::RefToBase< reco::Jet > &jet, const reco::TrackRefVector &tracks, const Leptons &leptons, const reco::Vertex &primaryVertex) const |
~SoftLepton () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Protected Member Functions | |
GlobalVector | refineJetAxis (const edm::RefToBase< reco::Jet > &jet, const reco::TrackRefVector &tracks, const edm::RefToBase< reco::Track > &exclude=edm::RefToBase< reco::Track >()) const |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Static Protected Member Functions | |
static double | boostedPPar (const math::XYZVector &vector, const math::XYZVector &axis) |
static double | relativeEta (const math::XYZVector &vector, const math::XYZVector &axis) |
Private Member Functions | |
virtual void | produce (edm::Event &event, const edm::EventSetup &setup) |
Private Attributes | |
double | m_chi2Cut |
double | m_deltaRCut |
const edm::InputTag | m_jets |
const edm::InputTag | m_leptonCands |
const edm::InputTag | m_leptonId |
const edm::InputTag | m_leptons |
muon::SelectionType | m_muonSelection |
const edm::InputTag | m_primaryVertex |
unsigned int | m_refineJetAxis |
const TransientTrackBuilder * | m_transientTrackBuilder |
Static Private Attributes | |
static const reco::Vertex | s_nominalBeamSpot |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Description: CMSSW EDProducer for soft lepton b tagging.
Implementation:
Description: CMSSW EDProducer wrapper for sot lepton b tagging.
Implementation: The actual tagging is performed by SoftLeptonAlgorithm.
Definition at line 44 of file SoftLepton.h.
typedef std::map<unsigned int, float> SoftLepton::LeptonIds |
Definition at line 57 of file SoftLepton.h.
typedef std::map<edm::RefToBase<reco::Track>, LeptonIds, TrackCompare> SoftLepton::Leptons |
Definition at line 58 of file SoftLepton.h.
|
explicit |
Definition at line 94 of file SoftLepton.cc.
SoftLepton::~SoftLepton | ( | void | ) |
Definition at line 110 of file SoftLepton.cc.
|
staticprotected |
Definition at line 412 of file SoftLepton.cc.
References metsig::jet.
Referenced by tag().
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 115 of file SoftLepton.cc.
References metsig::electron, edm::hlt::Exception, edm::EventSetup::get(), i, errorMatrix2Lands_multiChannel::id, muon::isGoodMuon(), edm::HandleBase::isValid(), fwrapper::jets, EgammaValidation_Wenu_cff::leptons, m_jets, m_leptonCands, m_leptonId, m_leptons, m_muonSelection, m_primaryVertex, m_transientTrackBuilder, metsig::muon, edm::errors::NotFound, edm::ESHandle< class >::product(), query::result, s_nominalBeamSpot, findQualityFiles::size, tag(), and testEve_cfg::tracks.
|
protected |
Definition at line 329 of file SoftLepton.cc.
References AXIS_CALORIMETRIC_NOLEPTON, AXIS_CHARGED_AVERAGE, AXIS_CHARGED_AVERAGE_NOLEPTON, AXIS_CHARGED_SUM, AXIS_CHARGED_SUM_NOLEPTON, edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), reco::TrackBase::eta(), edm::RefToBase< T >::isNonnull(), M_PI, m_refineJetAxis, reco::LeafCandidate::momentum(), reco::TrackBase::momentum(), or, perp(), reco::TrackBase::phi(), and reco::TrackBase::pt().
Referenced by tag().
|
staticprotected |
Definition at line 405 of file SoftLepton.cc.
References dot(), create_public_lumi_plots::log, and mag().
Referenced by tag().
reco::SoftLeptonTagInfo SoftLepton::tag | ( | const edm::RefToBase< reco::Jet > & | jet, |
const reco::TrackRefVector & | tracks, | ||
const Leptons & | leptons, | ||
const reco::Vertex & | primaryVertex | ||
) | const |
Definition at line 287 of file SoftLepton.cc.
References boostedPPar(), TransientTrackBuilder::build(), reco::SoftLeptonProperties::deltaR, reco::SoftLeptonProperties::etaRel, info, reco::SoftLeptonTagInfo::insert(), m_chi2Cut, m_deltaRCut, m_transientTrackBuilder, reco::SoftLeptonProperties::p0Par, reco::SoftLeptonProperties::ptRel, reco::SoftLeptonProperties::ratio, reco::SoftLeptonProperties::ratioRel, refineJetAxis(), relativeEta(), reco::JetTagInfo::setJetRef(), reco::SoftLeptonProperties::setQuality(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), reco::SoftLeptonProperties::sip2d, reco::SoftLeptonProperties::sip3d, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by produce().
|
private |
Definition at line 103 of file SoftLepton.h.
Referenced by tag().
|
private |
Definition at line 102 of file SoftLepton.h.
Referenced by tag().
|
private |
Definition at line 91 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 94 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 95 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 93 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 106 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 92 of file SoftLepton.h.
Referenced by produce().
|
private |
Definition at line 101 of file SoftLepton.h.
Referenced by refineJetAxis().
|
private |
Definition at line 98 of file SoftLepton.h.
|
staticprivate |
Definition at line 109 of file SoftLepton.h.
Referenced by produce().