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