#include <RecoBTag/SoftLepton/src/SoftLepton.cc>
Classes | |
struct | TrackCompare |
Public Types | |
using | LeptonIds = std::map< unsigned int, float > |
using | Leptons = std::map< edm::RefToBase< reco::Track >, LeptonIds, TrackCompare > |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
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 | |
void | produce (edm::StreamID, edm::Event &event, const edm::EventSetup &setup) const final |
Static Private Attributes | |
static const reco::Vertex | s_nominalBeamSpot |
Description: CMSSW EDProducer for soft lepton b tagging.
Implementation: The actual tagging is performed by SoftLeptonAlgorithm.
Definition at line 65 of file SoftLepton.cc.
using SoftLepton::LeptonIds = std::map<unsigned int, float> |
Definition at line 77 of file SoftLepton.cc.
using SoftLepton::Leptons = std::map<edm::RefToBase<reco::Track>, LeptonIds, TrackCompare> |
Definition at line 78 of file SoftLepton.cc.
|
explicit |
Definition at line 165 of file SoftLepton.cc.
|
staticprotected |
Definition at line 499 of file SoftLepton.cc.
References metsig::jet, and trackerHitRTTI::vector.
Referenced by tag().
|
static |
Definition at line 510 of file SoftLepton.cc.
References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, and HLT_2022v15_cff::InputTag.
|
finalprivatevirtual |
Implements edm::global::EDProducerBase.
Definition at line 188 of file SoftLepton.cc.
References edm::View< T >::begin(), HPSPFTauProducerPuppi_cfi::electron, edm::View< T >::end(), Exception, edm::ValueMap< T >::get(), mps_fire::i, l1ctLayer2EG_cff::id, HLT_2022v15_cff::InputTag, muon::isGoodMuon(), edm::HandleBase::isValid(), PDWG_EXODelayedJetMET_cff::jets, HLT_2022v15_cff::leptonId, HLT_2022v15_cff::leptons, m_jets, m_leptonCands, m_leptonId, m_leptons, m_muonSelection, eostools::move(), HLT_2022v15_cff::muon, edm::errors::NotFound, edm::View< T >::refAt(), mps_fire::result, s_nominalBeamSpot, singleTopDQM_cfi::setup, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::size(), findQualityFiles::size, tag(), token_builder, token_electrons, token_gsfElectrons, token_jets, token_jtas, token_leptonCands, token_leptonId, token_muons, token_pfElectrons, token_primaryVertex, token_put, token_tracks, pwdgSkimBPark_cfi::tracks, and bphysicsOniaDQM_cfi::vertex.
|
protected |
Definition at line 415 of file SoftLepton.cc.
References AXIS_CALORIMETRIC_NOLEPTON, AXIS_CHARGED_AVERAGE, AXIS_CHARGED_AVERAGE_NOLEPTON, AXIS_CHARGED_SUM, AXIS_CHARGED_SUM_NOLEPTON, edm::RefToBase< T >::isNonnull(), metsig::jet, M_PI, m_refineJetAxis, reco::TrackBase::momentum(), or, perp(), HLT_2022v15_cff::track, and pwdgSkimBPark_cfi::tracks.
Referenced by tag().
|
staticprotected |
Definition at line 492 of file SoftLepton.cc.
References dot(), dqm-mbProfile::log, mag(), and trackerHitRTTI::vector.
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 TransientTrackBuilder & | builder | ||
) | const |
Definition at line 370 of file SoftLepton.cc.
References boostedPPar(), TransientTrackBuilder::build(), reco::SoftLeptonProperties::deltaR, PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::SoftLeptonProperties::etaRel, info(), electrons_cff::ip3d, metsig::jet, HLT_2022v15_cff::leptons, m_chi2Cut, m_deltaRCut, reco::SoftLeptonProperties::p0Par, BeamMonitor_cff::primaryVertex, reco::SoftLeptonProperties::ptRel, reco::SoftLeptonProperties::ratio, reco::SoftLeptonProperties::ratioRel, refineJetAxis(), relativeEta(), reco::SoftLeptonProperties::setQuality(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), Measurement1D::significance(), reco::SoftLeptonProperties::sip2d, reco::SoftLeptonProperties::sip2dsig, reco::SoftLeptonProperties::sip3d, reco::SoftLeptonProperties::sip3dsig, pwdgSkimBPark_cfi::tracks, Measurement1D::value(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by produce().
|
private |
Definition at line 124 of file SoftLepton.cc.
Referenced by tag().
|
private |
Definition at line 123 of file SoftLepton.cc.
Referenced by tag().
|
private |
Definition at line 102 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 112 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 114 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 106 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 127 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 122 of file SoftLepton.cc.
Referenced by refineJetAxis().
|
staticprivate |
Definition at line 130 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 118 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 108 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 107 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 104 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 103 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 113 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 115 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 110 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 109 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 105 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 120 of file SoftLepton.cc.
Referenced by produce().
|
private |
Definition at line 111 of file SoftLepton.cc.
Referenced by produce().