47 iConfig.getParameter<edm::
InputTag>(
"patTriggerObjectsStandAlone"))),
48 triggerResultsToken_(consumes<edm::TriggerResults>(iConfig.getParameter<edm::
InputTag>(
"triggerResults"))),
49 unpackFilterLabels_(iConfig.getParameter<bool>(
"unpackFilterLabels")) {
50 produces<TriggerObjectStandAloneCollection>();
61 auto patTriggerObjectsStandAloneUnpacked = std::make_unique<TriggerObjectStandAloneCollection>();
63 for (
size_t iTrigObj = 0; iTrigObj < patTriggerObjectsStandAlone->size(); ++iTrigObj) {
66 patTriggerObjectStandAloneUnpacked.unpackPathNames(names);
68 patTriggerObjectStandAloneUnpacked.unpackFilterLabels(iEvent, *triggerResults);
69 patTriggerObjectsStandAloneUnpacked->push_back(patTriggerObjectStandAloneUnpacked);
72 iEvent.
put(
std::move(patTriggerObjectsStandAloneUnpacked));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~PATTriggerObjectStandAloneUnpacker() override
string patTriggerObjectsStandAlone
const std::string names[nVars_]
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
static std::string const triggerResults
PATTriggerObjectStandAloneUnpacker(const edm::ParameterSet &iConfig)
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Unpacks a pat::TriggerObjectStandAloneCollection with packed path names.
const edm::EDGetTokenT< TriggerObjectStandAloneCollection > patTriggerObjectsStandAloneToken_
Analysis-level trigger object class (stand-alone)
const edm::EDGetTokenT< std::vector< std::string > > filterLabelsToken_