|
| PhotonIDValueMapProducer (const edm::ParameterSet &) |
|
| ~PhotonIDValueMapProducer () override |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| 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 |
|
std::vector< bool > const & | recordProvenanceList () 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) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | 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<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
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) |
|
template<Transition B> |
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 (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 82 of file PhotonIDValueMapProducer.cc.
Definition at line 355 of file PhotonIDValueMapProducer.cc.
361 float worstIsolation = 0.0;
365 std::vector<CachingPtrCandidate> chargedCands;
366 chargedCands.reserve(pfCands.
size());
367 for (
auto const& aCand : pfCands) {
376 chargedCands.emplace_back(&aCand,
isAOD);
380 for (
unsigned int ivtx = 0; ivtx <
vertices.size(); ++ivtx) {
387 const float phoWrtVtxPhi = phoWrtVtx.phi();
388 const float phoWrtVtxEta = phoWrtVtx.eta();
392 for (
auto const& aCCand : chargedCands) {
393 auto iCand = aCCand.candidate;
394 float dR2 =
deltaR2(phoWrtVtxEta, phoWrtVtxPhi, iCand->eta(), iCand->phi());
401 getImpactParameters(aCCand,
pv,
dxy,
dz);
403 getImpactParameters(aCCand, *
vtx,
dxy,
dz);
411 worstIsolation =
std::max(sum, worstIsolation);
414 return worstIsolation;
References coneSizeDR2, HLTMuonOfflineAnalyzer_cfi::deltaR2, DR_VETO, dRveto2Barrel, dRveto2Endcap, PVValHelper::dxy, dxyMax, PVValHelper::dz, dzMax, reco::PFCandidate::h, HLTEGTnPMonitor_cfi::isAOD, SiStripPI::max, muons2muons_cfi::photon, PT_MIN_THRESH, ptMin, MetAnalyzer::pv(), PV_CONSTRAINT, edm::View< T >::size(), pwdgSkimBPark_cfi::vertices, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by produce().
Implements edm::global::EDProducerBase.
Definition at line 175 of file PhotonIDValueMapProducer.cc.
184 }
else if (!
src->empty()) {
186 if (
test.isNull() || !
test.isAvailable()) {
188 <<
"DataFormat is detected as miniAOD but cannot cast to pat::Photon!";
204 for (
auto const& iPho :
src->ptrs()) {
208 const auto&
seed = *(iPho->superCluster()->seed());
214 std::vector<float> vCov = lazyToolnoZS.localCovariances(
seed);
216 vars[1].push_back(vCov[1]);
217 vars[2].push_back(lazyToolnoZS.e1x3(
seed));
218 vars[3].push_back(lazyToolnoZS.e2x2(
seed));
219 vars[4].push_back(lazyToolnoZS.e2x5Max(
seed));
220 vars[5].push_back(lazyToolnoZS.e5x5(
seed));
221 vars[6].push_back(lazyToolnoZS.eseffsirir(*(iPho->superCluster())));
232 iPho->superCluster()->x() -
pv.x(), iPho->superCluster()->y() -
pv.y(), iPho->superCluster()->z() -
pv.z());
235 float chargedIsoSum = 0.;
236 float neutralHadronIsoSum = 0.;
237 float photonIsoSum = 0.;
240 for (
auto const& iCand : pfCandsHandle->ptrs()) {
261 float dR2 =
deltaR2(phoWrtVtx.Eta(), phoWrtVtx.Phi(), iCand->eta(), iCand->phi());
267 if (isInFootprint((*particleBasedIsolationMap)[iPho], iCand))
271 if (isInFootprint(
patPhotonPtr->associatedPackedPFCandidates(), iCand))
285 getImpactParameters(CachingPtrCandidate(&*iCand,
isAOD_),
pv,
dxy,
dz);
291 chargedIsoSum += iCand->pt();
295 neutralHadronIsoSum += iCand->pt();
298 photonIsoSum += iCand->pt();
301 vars[10].push_back(chargedIsoSum);
302 vars[11].push_back(neutralHadronIsoSum);
303 vars[12].push_back(photonIsoSum);
318 vars[16].push_back(iPho->trkSumPtSolidConeDR04());
320 vars[17].push_back(0.
f);
321 vars[18].push_back(0.
f);
331 auto valMap = std::make_unique<edm::ValueMap<float>>();
References begin, computeWorstPFChargedIsolation(), coneSizeDR2, HLTMuonOfflineAnalyzer_cfi::deltaR2, DR_VETO, PVValHelper::dxy, dxyMax, PVValHelper::dz, dzMax, ebRecHits_, eeRecHits_, end, esRecHits_, Exception, f, trigObjTnPSource_cfi::filler, reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, mps_fire::i, iEvent, isAOD_, edm::isNotFinite(), eostools::move(), names, nVars_, particleBasedIsolationToken_, pfCandsToken_, PT_MIN_THRESH, MetAnalyzer::pv(), PV_CONSTRAINT, SurveyInfoScenario_cff::seed, mathSSE::sqrt(), TrackRefitter_38T_cff::src, src_, ctpps_dqm_sourceclient-live_cfg::test, usesES_, pwdgSkimBPark_cfi::vertices, and vtxToken_.