#include <TtDecaySelection.h>
Public Member Functions | |
virtual bool | filter (edm::Event &, const edm::EventSetup &) |
TtDecaySelection (const edm::ParameterSet &) | |
~TtDecaySelection () | |
Private Attributes | |
TtDecayChannelSelector | sel_ |
edm::InputTag | src_ |
Definition at line 12 of file TtDecaySelection.h.
TtDecaySelection::TtDecaySelection | ( | const edm::ParameterSet & | cfg | ) | [explicit] |
Definition at line 3 of file TtDecaySelection.cc.
: src_( cfg.getParameter<edm::InputTag>( "src" ) ), sel_( cfg ) { }
TtDecaySelection::~TtDecaySelection | ( | ) |
Definition at line 9 of file TtDecaySelection.cc.
{ }
bool TtDecaySelection::filter | ( | edm::Event & | evt, |
const edm::EventSetup & | setup | ||
) | [virtual] |
Implements edm::EDFilter.
Definition at line 13 of file TtDecaySelection.cc.
References TtGenEvtProducer_cfi::genEvt, edm::Event::getByLabel(), edm::InputTag::label(), sel_, and src_.
{ edm::Handle<TtGenEvent> genEvt; evt.getByLabel( src_, genEvt ); return sel_( genEvt->particles(), src_.label() ); }
TtDecayChannelSelector TtDecaySelection::sel_ [private] |
Definition at line 22 of file TtDecaySelection.h.
Referenced by filter().
edm::InputTag TtDecaySelection::src_ [private] |
Definition at line 21 of file TtDecaySelection.h.
Referenced by filter().