|
| BJetEnergyRegressionMVA (const edm::ParameterSet &iConfig) |
|
void | fillAdditionalVariables (const pat::Jet &j) override |
|
void | readAdditionalCollections (edm::Event &iEvent, const edm::EventSetup &) override |
| to be implemented in derived classes, filling values for additional variables More...
|
|
| BaseMVAValueMapProducer (const edm::ParameterSet &iConfig) |
|
void | setValue (const std::string var, float val) |
|
| ~BaseMVAValueMapProducer () override |
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef CacheContexts< T... > | CacheTypes |
|
typedef CacheTypes::GlobalCache | GlobalCache |
|
typedef AbilityChecker< T... > | HasAbility |
|
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
|
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
|
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
|
typedef CacheTypes::RunCache | RunCache |
|
typedef RunContextT< RunCache, GlobalCache > | RunContext |
|
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
|
typedef EDProducerAdaptorBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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 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) |
|
Definition at line 31 of file BJetEnergyRegressionMVA.cc.
void BJetEnergyRegressionMVA::fillAdditionalVariables |
( |
const pat::Jet & |
j | ) |
|
|
inlineoverridevirtual |
Reimplemented from BaseMVAValueMapProducer< pat::Jet >.
Definition at line 47 of file BJetEnergyRegressionMVA.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), edmIntegrityCheck::d, pat::Jet::daughterPtrVector(), reco::deltaR2(), VertexDistance3D::distance(), edm::PtrVectorBase::empty(), Measurement1D::error(), pat::PATObject< ObjectType >::overlaps(), AlignmentTrackSelector_cfi::ptMax, MetAnalyzer::pv(), pvs_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), BaseMVAValueMapProducer< pat::Jet >::setValue(), BaseMVAValueMapProducer< T >::setValue(), Measurement1D::significance(), svs_, and Measurement1D::value().
66 float maxFoundSignificance=0;
67 const auto &
pv = (*pvs_)[0];
74 for(
const auto &sv: *
svs_){
75 GlobalVector flightDir(sv.vertex().x() -
pv.x(), sv.vertex().y() -
pv.y(),sv.vertex().z() -
pv.z());
82 this->
setValue(
"Jet_vtxMass",sv.p4().M());
85 this->
setValue(
"Jet_vtxNtrk",sv.numberOfSourceCandidatePtrs());
reco::Vertex::Point convertPos(const GlobalPoint &p)
double px() const final
x coordinate of momentum vector
bool empty() const
Is the RefVector empty.
reco::Vertex::Error convertError(const GlobalError &ge)
void setValue(const std::string var, float val)
const reco::CandidatePtrVector & overlaps(const std::string &label) const
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
double pz() const final
z coordinate of momentum vector
edm::Handle< std::vector< reco::Vertex > > pvs_
edm::Handle< edm::View< reco::VertexCompositePtrCandidate > > svs_
double significance() const
Analysis-level electron class.
double py() const final
y coordinate of momentum vector
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const reco::CompositePtrCandidate::daughters & daughterPtrVector() const override
references to daughtes
Analysis-level muon class.