|
| HLTScoutingCaloProducer (const edm::ParameterSet &) |
|
| ~HLTScoutingCaloProducer () 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 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<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) |
|
Description: Producer for ScoutingCaloJets from reco::CaloJet objects
Definition at line 39 of file HLTScoutingCaloProducer.cc.
Implements edm::global::EDProducerBase.
Definition at line 91 of file HLTScoutingCaloProducer.cc.
References caloJetBTagCollection_, caloJetCollection_, caloJetEtaCut, caloJetIDTagCollection_, caloJetPtCut, reco::deltaR2(), doJetBTags, doJetIDTags, doMet, edm::Event::getByToken(), metsig::jet, MT2Analyzer::metCollection, metCollection_, eostools::move(), edm::Event::put(), rho, rho_, and GlobalPosition_Frontier_DevDB_cff::tag.
101 bool haveJetBTags =
false;
106 bool haveJetIDTags =
false;
108 haveJetIDTags =
true;
111 for(
auto &
jet : *caloJetCollection){
114 float bTagValue = -20;
115 float bTagMinDR2 = 0.01;
117 for(
auto &
tag : *caloJetBTagCollection){
119 if(dR2 < bTagMinDR2){
121 bTagValue =
tag.second;
125 float idTagValue = -20;
126 float idTagMinDR2 = 0.01;
128 for(
auto &
tag : *caloJetIDTagCollection){
130 if(dR2 < idTagMinDR2){
132 idTagValue =
tag.second;
136 outCaloJets->emplace_back(
138 jet.jetArea(),
jet.maxEInEmTowers(),
jet.maxEInHadTowers(),
139 jet.hadEnergyInHB(),
jet.hadEnergyInHE(),
jet.hadEnergyInHF(),
140 jet.emEnergyInEB(),
jet.emEnergyInEE(),
jet.emEnergyInHF(),
141 jet.towersArea(), idTagValue, bTagValue
149 std::unique_ptr<double> outRho(
new double(-999));
151 outRho.reset(
new double(*rho));
156 std::unique_ptr<double> outMetPt(
new double(-999));
157 std::unique_ptr<double> outMetPhi(
new double(-999));
159 outMetPt.reset(
new double(metCollection->front().pt()));
160 outMetPhi.reset(
new double(metCollection->front().phi()));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< reco::CaloMETCollection > metCollection_
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
const edm::EDGetTokenT< reco::CaloJetCollection > caloJetCollection_
const edm::EDGetTokenT< double > rho_
const double caloJetPtCut
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const double caloJetEtaCut
const edm::EDGetTokenT< reco::JetTagCollection > caloJetIDTagCollection_
const edm::EDGetTokenT< reco::JetTagCollection > caloJetBTagCollection_