54 packP4_( iConfig.getParameter<bool>(
"packP4") )
56 produces<TriggerObjectStandAloneCollection>();
58 produces<std::vector<std::string>>(
"filterLabels");
69 auto slimmed = std::make_unique<TriggerObjectStandAloneCollection>(*src);
72 std::set<std::string> allLabels;
73 for (
auto &
obj : *slimmed) {
74 obj.packFilterLabels(iEvent,*triggerResults);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Packs filter labels and/or 4-vectors of a pat::TriggerObjectStandAloneCollection. ...
static std::string const triggerResults
~PATTriggerObjectStandAloneSlimmer()
const edm::EDGetTokenT< TriggerObjectStandAloneCollection > srcToken_
PATTriggerObjectStandAloneSlimmer(const edm::ParameterSet &iConfig)
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Analysis-level trigger object class (stand-alone)