CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/TopQuarkAnalysis/TopEventProducers/src/TtDecaySelection.cc

Go to the documentation of this file.
00001 #include "TopQuarkAnalysis/TopEventProducers/interface/TtDecaySelection.h"
00002 
00003 TtDecaySelection::TtDecaySelection(const edm::ParameterSet& cfg):
00004   src_( cfg.getParameter<edm::InputTag>( "src" ) ),
00005   sel_( cfg )
00006 {
00007 }
00008 
00009 TtDecaySelection::~TtDecaySelection()
00010 {
00011 }
00012 
00013 bool TtDecaySelection::filter(edm::Event& evt, const edm::EventSetup& setup)
00014 {
00015   edm::Handle<TtGenEvent> genEvt;
00016   evt.getByLabel( src_, genEvt );
00017   return sel_( genEvt->particles(), src_.label() );
00018 }