28 enum DecisionType { beforeBxMaskAndPrescale, beforePrescale,
final };
46 decisionEnum_(decisionName_ ==
"beforeBxMaskAndPrescale" ? beforeBxMaskAndPrescale
47 : decisionName_ ==
"beforePrescale" ? beforePrescale
49 produces<edm::TriggerResults>();
59 bool fillAlgoNames =
false;
62 algoNames_ = std::vector<std::string>(algoBlockMap.size());
66 std::size_t algoIdx = 0;
67 for (
const auto& [
algoName, algoBlock] : algoBlockMap) {
70 : algoBlock.decisionFinal();
79 event.put(std::make_unique<edm::TriggerResults>(gtDecisions,
algoNames_));
87 edm::allowedValues<std::string>(
"beforeBxMaskAndPrescale",
"beforePrescale",
"final"));
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > algoNames_
std::map< std::string, P2GTAlgoBlock > P2GTAlgoBlockMap
const std::string prefix_
const std::string decisionName_
const edm::EDGetTokenT< P2GTAlgoBlockMap > algoBlockToken_
void produce(edm::Event &, const edm::EventSetup &) override
P2GTTriggerResultsConverter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void beginRun(const edm::Run &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const DecisionType decisionEnum_