|
| L1GTAlgoBlockProducer (const edm::ParameterSet &) |
|
| ~L1GTAlgoBlockProducer () override=default |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~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) |
|
Definition at line 315 of file L1GTAlgoBlockProducer.cc.
Definition at line 365 of file L1GTAlgoBlockProducer.cc.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::algoConfig, algoDefinitions_, L1GTAlgoBlockProducer::AlgoDefinition::bunchMask_, edm::ProducerBase::callWhenNewProductsRegistered(), edm::EDConsumerBase::consumesCollector(), L1GTAlgoBlockProducer::AlgoDefinition::evaluator_, Exception, pathStatusExpression::ShuntingYardAlgorithm::finish(), getterOfPassedReferences_, L1GTAlgoBlockProducer::AlgoDefinition::isVeto_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, hltDoubleTkMuon157L1TkMuonFilter_cfi::logicalExpression, eostools::move(), mergeVDriftHistosByStation::name, hltMonBTagIPClient_cfi::pathName, pathStatusExpression::ShuntingYardAlgorithm::pathNames(), L1GTAlgoBlockProducer::AlgoDefinition::pathNames_, funct::pow(), L1GTAlgoBlockProducer::AlgoDefinition::prescale_, L1GTAlgoBlockProducer::AlgoDefinition::prescalePreview_, AlCaHLTBitMon_QueryRunRegistry::string, ClusterTask_cfi::triggerTypes, and L1GTAlgoBlockProducer::AlgoDefinition::triggerTypes_.
381 throw cms::Exception(
"Configuration") <<
"Syntax error in logical expression. Here is an example of how\n" 382 <<
"the syntax should look:\n" 383 <<
" \"path1 and not (path2 or not path3)\"\n" 384 <<
"The expression must contain alternating appearances of operands\n" 385 <<
"which are path names and binary operators which can be \'and\'\n" 386 <<
"or \'or\', with a path name at the beginning and end. There\n" 387 <<
"must be at least one path name. In addition to the alternating\n" 388 <<
"path names and binary operators, the unary operator \'not\' can\n" 389 <<
"be inserted before a path name or a begin parenthesis.\n" 390 <<
"Parentheses are allowed. Parentheses must come in matching pairs.\n" 391 <<
"Matching begin and end parentheses must contain a complete and\n" 392 <<
"syntactically correct logical expression. There must be at least\n" 393 <<
"one space or parenthesis between operators and path names. Extra\n" 394 <<
"space is ignored and OK. Path names can only contain upper and\n" 395 <<
"lower case letters, numbers, and underscores. A path name cannot\n" 396 <<
"be the same as an operator name.\n";
399 AlgoDefinition definition;
402 definition.pathNames_.push_back(
pathName);
405 definition.evaluator_ = shuntingYardAlgorithm.
finish();
406 double dPrescale =
algoConfig.getParameter<
double>(
"prescale");
407 if ((dPrescale < 1. || dPrescale >=
std::pow(2, 24) / 100 - 1) && dPrescale != 0) {
409 <<
"Prescale value error. Expected prescale value between 1 and 2^24/100 - 1 or 0 got " << dPrescale <<
"." 413 definition.prescale_ = std::round(dPrescale * 100);
415 double dPrescalePreview =
algoConfig.getParameter<
double>(
"prescalePreview");
416 if ((dPrescalePreview < 1. || dPrescalePreview >=
std::pow(2, 24) / 100 - 1) && dPrescalePreview != 0) {
418 <<
"PrescalePreview value error. Expected prescale value between 1 and 2^24/100 - 1 or 0 got " 419 << dPrescalePreview <<
"." << std::endl;
422 definition.prescalePreview_ = std::round(dPrescalePreview * 100);
424 std::vector<unsigned int> vBunchMask =
algoConfig.getParameter<std::vector<unsigned int>>(
"bunchMask");
425 definition.bunchMask_ =
426 std::set<unsigned int>(std::make_move_iterator(vBunchMask.begin()), std::make_move_iterator(vBunchMask.end()));
428 definition.isVeto_ =
algoConfig.getParameter<
bool>(
"veto");
429 definition.triggerTypes_ = 0;
432 definition.triggerTypes_ |=
type;
435 definition.evaluator_->init(iC);
439 <<
"Algorithm " << iter->first <<
" already exists. Algorithm names must be unique." << std::endl;
444 produces<P2GTAlgoBlockMap>();
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
std::map< std::string, AlgoDefinition > algoDefinitions_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::GetterOfProducts< P2GTCandidateVectorRef > getterOfPassedReferences_
const std::vector< std::string > & pathNames()
std::unique_ptr< Evaluator > finish()
Power< A, B >::type pow(const A &a, const B &b)
Implements edm::one::EDProducerBase.
Definition at line 502 of file L1GTAlgoBlockProducer.cc.
References correctedPhotons_cfi::algoCollection, algoDefinitions_, bunchCrossingEmu_, edm::GetterOfProducts< T >::fillHandles(), getterOfPassedReferences_, patZpeak::handle, init(), initialized_, instance, eostools::move(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.
508 std::vector<edm::Handle<P2GTCandidateVectorRef>>
handles;
511 std::unique_ptr<P2GTAlgoBlockMap>
algoCollection = std::make_unique<P2GTAlgoBlockMap>();
513 std::unordered_map<std::string, unsigned int>& prescaleCounters = *runCache(
event.getRun().index());
515 int bunchCrossing =
event.isRealData() ?
event.bunchCrossing() :
bunchCrossingEmu_ + 1;
518 bool decisionBeforeBxAndPrescale = algoDef.evaluator_->evaluate(
event);
519 bool decisionBeforePrescale = decisionBeforeBxAndPrescale && algoDef.bunchMask_.count(bunchCrossing) == 0;
520 bool decisionFinal =
false;
521 bool decisionFinalPreview =
false;
523 if (algoDef.prescale_ != 0 && decisionBeforePrescale) {
524 if (prescaleCounters.count(
name) > 0) {
525 prescaleCounters[
name] += 100;
527 prescaleCounters[
name] = 100;
530 if (prescaleCounters[
name] >= algoDef.prescale_) {
531 decisionFinal =
true;
532 prescaleCounters[
name] -= algoDef.prescale_;
534 decisionFinal =
false;
538 if (algoDef.prescalePreview_ != 0 && decisionBeforePrescale) {
540 if (prescaleCounters.count(previewName) > 0) {
541 prescaleCounters[previewName] += 100;
543 prescaleCounters[previewName] = 100;
546 if (prescaleCounters[previewName] >= algoDef.prescalePreview_) {
547 decisionFinalPreview =
true;
548 prescaleCounters[previewName] -= algoDef.prescalePreview_;
550 decisionFinalPreview =
false;
561 if (algoDef.filtModules_.count({module, instance}) > 0) {
562 trigObjects.insert(trigObjects.end(),
handle->begin(),
handle->end());
569 decisionBeforePrescale,
571 decisionFinalPreview,
573 algoDef.triggerTypes_,
static PFTauRenderPlugin instance
std::map< std::string, AlgoDefinition > algoDefinitions_
std::vector< BaseVolumeHandle * > handles
edm::GetterOfProducts< P2GTCandidateVectorRef > getterOfPassedReferences_
void init(const edm::ProcessHistory &)
void fillHandles(ProductContainer const &productContainer, std::vector< edm::Handle< T >> &handles) const
std::vector< P2GTCandidateRef > P2GTCandidateVectorRef