|
| 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices 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 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_, ALPAKA_ACCELERATOR_NAMESPACE::dR2(), PVValHelper::dxy, run3scouting_cff::dxyError, PVValHelper::dz, run3scouting_cff::dzError, Exception, iEvent, metsig::jet, btagbtvdeep::lost_inner_hits_from_pfcand(), mantissaPrecision_, susyDQM_cfi::metCollection, metCollection_, eostools::move(), run3scouting_cff::normchi2, HLT_2024v13_cff::pfCandidateCollection, pfCandidateCollection_, pfCandidateEtaCut_, pfCandidatePtCut_, ExoticaDQM_cfi::pfJetCollection, pfJetCollection_, pfJetEtaCut_, pfJetPtCut_, HLT_2024v13_cff::pfJetTagCollection, pfJetTagCollection_, funct::pow(), quality, btagbtvdeep::quality_from_pfcand(), MiniFloatConverter::reduceMantissaToNbitsRounding(), relativeTrackVars_, rho, rho_, makeGlobalPositionRcd_cfg::tag, run3scouting_cff::trk_eta, run3scouting_cff::trk_phi, run3scouting_cff::trk_pt, spclusmultinvestigator_cfi::vertexCollection, vertexCollection_, and L1BJetProducer_cff::vtx.
114 auto outVertices = std::make_unique<Run3ScoutingVertexCollection>();
117 outVertices->emplace_back(
136 auto outRho = std::make_unique<double>(-999);
143 auto outMetPt = std::make_unique<double>(-999);
144 auto outMetPhi = std::make_unique<double>(-999);
146 outMetPt = std::make_unique<double>(
metCollection->front().pt());
147 outMetPhi = std::make_unique<double>(
metCollection->front().phi());
152 auto outPFCandidates = std::make_unique<Run3ScoutingParticleCollection>();
156 int vertex_index = -1;
157 int index_counter = 0;
159 for (
auto const &
vtx : *outVertices) {
163 vertex_index = index_counter;
170 uint8_t lostInnerHits{0},
quality{0};
172 const auto *trk =
cand.bestTrack();
173 if (trk !=
nullptr) {
189 dz = trk->dz(
pv.position());
193 dxy = trk->dxy(
pv.position());
223 auto outPFJets = std::make_unique<Run3ScoutingPFJetCollection>();
227 bool haveJetTags =
false;
236 float tagValue = -20;
243 tagValue =
tag.second;
248 std::vector<int> candIndices;
250 for (
auto const &
cand :
jet.getPFConstituents()) {
251 if (not(
cand.isNonnull() and
cand.isAvailable())) {
253 <<
"invalid reference to reco::PFCandidate from reco::PFJet::getPFConstituents()";
257 float minDR2 = 0.0001;
260 for (
auto &outCand : *outPFCandidates) {
264 matchIndex = outIndex;
271 candIndices.push_back(matchIndex);
275 outPFJets->emplace_back(
288 jet.chargedHadronMultiplicity(),
289 jet.neutralHadronMultiplicity(),
290 jet.photonMultiplicity(),
291 jet.electronMultiplicity(),
292 jet.muonMultiplicity(),
293 jet.HFHadronMultiplicity(),
294 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_
ALPAKA_FN_ACC static ALPAKA_FN_INLINE float dR2(Position4 pos1, Position4 pos2)
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)