57 produces< TriggerObjectStandAloneCollection >();
67 auto patTriggerObjectsStandAloneUnpacked = std::make_unique<TriggerObjectStandAloneCollection>();
69 for (
size_t iTrigObj = 0; iTrigObj < patTriggerObjectsStandAlone->size(); ++iTrigObj ) {
72 patTriggerObjectStandAloneUnpacked.unpackPathNames( names );
73 if (
unpackFilterLabels_) patTriggerObjectStandAloneUnpacked.unpackFilterLabels(iEvent,*triggerResults );
74 patTriggerObjectsStandAloneUnpacked->push_back( patTriggerObjectStandAloneUnpacked );
77 iEvent.
put(
std::move(patTriggerObjectsStandAloneUnpacked) );
const edm::EDGetTokenT< std::vector< std::string > > filterLabelsToken_
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)
patTriggerObjectsStandAlone
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
static std::string const triggerResults
PATTriggerObjectStandAloneUnpacker(const edm::ParameterSet &iConfig)
virtual void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
Unpacks a pat::TriggerObjectStandAloneCollection with packed path names.
const edm::EDGetTokenT< TriggerObjectStandAloneCollection > patTriggerObjectsStandAloneToken_
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
Analysis-level trigger object class (stand-alone)