|
| HLTScoutingPFProducer (const edm::ParameterSet &) |
|
| ~HLTScoutingPFProducer () override |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
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 |
|
typedef ProductLabels | Labels |
|
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 () |
|
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) |
|
Description: Producer for ScoutingPFJets from reco::PFJet objects, ScoutingVertexs from reco::Vertexs and ScoutingParticles from reco::PFCandidates
Definition at line 46 of file HLTScoutingPFProducer.cc.
Implements edm::global::EDProducerBase.
Definition at line 109 of file HLTScoutingPFProducer.cc.
References funct::abs(), reco::deltaR2(), doCandidates_, doCandIndsForJets_, doJetTags_, doMet_, doTrackVars_, PVValHelper::dxy, PVValHelper::dz, Exception, iEvent, metsig::jet, btagbtvdeep::lost_inner_hits_from_pfcand(), mantissaPrecision_, susyDQM_cfi::metCollection, metCollection_, eostools::move(), HLT_2022v15_cff::pfCandidateCollection, pfCandidateCollection_, pfCandidateEtaCut_, pfCandidatePtCut_, ExoticaDQM_cfi::pfJetCollection, pfJetCollection_, pfJetEtaCut_, pfJetPtCut_, HLT_2022v15_cff::pfJetTagCollection, pfJetTagCollection_, funct::pow(), quality, btagbtvdeep::quality_from_pfcand(), MiniFloatConverter::reduceMantissaToNbitsRounding(), relativeTrackVars_, rho, rho_, makeGlobalPositionRcd_cfg::tag, spclusmultinvestigator_cfi::vertexCollection, vertexCollection_, and extraflags_cff::vtx.
114 auto outVertices = std::make_unique<Run3ScoutingVertexCollection>();
132 auto outRho = std::make_unique<double>(-999);
139 auto outMetPt = std::make_unique<double>(-999);
140 auto outMetPhi = std::make_unique<double>(-999);
142 outMetPt = std::make_unique<double>(
metCollection->front().pt());
143 outMetPhi = std::make_unique<double>(
metCollection->front().phi());
148 auto outPFCandidates = std::make_unique<Run3ScoutingParticleCollection>();
152 int vertex_index = -1;
153 int index_counter = 0;
155 for (
auto const &
vtx : *outVertices) {
159 vertex_index = index_counter;
165 float normchi2{0},
dz{0},
dxy{0}, dzError{0}, dxyError{0}, trk_pt{0}, trk_eta{0}, trk_phi{0};
166 uint8_t lostInnerHits{0},
quality{0};
168 const auto *trk =
cand.bestTrack();
169 if (trk !=
nullptr) {
185 dz = trk->dz(
pv.position());
189 dxy = trk->dxy(
pv.position());
219 auto outPFJets = std::make_unique<Run3ScoutingPFJetCollection>();
223 bool haveJetTags =
false;
232 float tagValue = -20;
239 tagValue =
tag.second;
244 std::vector<int> candIndices;
246 for (
auto const &
cand :
jet.getPFConstituents()) {
247 if (not(
cand.isNonnull() and
cand.isAvailable())) {
249 <<
"invalid reference to reco::PFCandidate from reco::PFJet::getPFConstituents()";
253 float minDR2 = 0.0001;
256 for (
auto &outCand : *outPFCandidates) {
260 matchIndex = outIndex;
267 candIndices.push_back(matchIndex);
271 outPFJets->emplace_back(
284 jet.chargedHadronMultiplicity(),
285 jet.neutralHadronMultiplicity(),
286 jet.photonMultiplicity(),
287 jet.electronMultiplicity(),
288 jet.muonMultiplicity(),
289 jet.HFHadronMultiplicity(),
290 jet.HFEMMultiplicity(),
float quality_from_pfcand(const reco::PFCandidate &pfcand)
const int mantissaPrecision_
const edm::EDGetTokenT< reco::PFMETCollection > metCollection_
const double pfCandidateEtaCut_
const double pfJetEtaCut_
const edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidateCollection_
const double pfCandidatePtCut_
const edm::EDGetTokenT< reco::VertexCollection > vertexCollection_
Abs< T >::type abs(const T &t)
const edm::EDGetTokenT< reco::PFJetCollection > pfJetCollection_
const edm::EDGetTokenT< reco::JetTagCollection > pfJetTagCollection_
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const edm::EDGetTokenT< double > rho_
float lost_inner_hits_from_pfcand(const reco::PFCandidate &pfcand)
static float reduceMantissaToNbitsRounding(const float &f)
const bool doCandIndsForJets_
const bool relativeTrackVars_
Power< A, B >::type pow(const A &a, const B &b)