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