CMS 3D CMS Logo

TtDecaySelection Class Reference

#include <TopQuarkAnalysis/TopEventProducers/interface/TtDecaySelection.h>

Inheritance diagram for TtDecaySelection:

edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual bool filter (edm::Event &, const edm::EventSetup &)
 TtDecaySelection (const edm::ParameterSet &)
 ~TtDecaySelection ()

Private Attributes

TtDecayChannelSelector sel_
edm::InputTag src_


Detailed Description

Definition at line 12 of file TtDecaySelection.h.


Constructor & Destructor Documentation

TtDecaySelection::TtDecaySelection ( const edm::ParameterSet cfg  )  [explicit]

Definition at line 3 of file TtDecaySelection.cc.

00003                                                             :
00004   src_( cfg.getParameter<edm::InputTag>( "src" ) ),
00005   sel_( cfg )
00006 {
00007 }

TtDecaySelection::~TtDecaySelection (  ) 

Definition at line 9 of file TtDecaySelection.cc.

00010 {
00011 }


Member Function Documentation

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_.

00014 {
00015   edm::Handle<TtGenEvent> genEvt;
00016   evt.getByLabel( src_, genEvt );
00017   return sel_( genEvt->particles(), src_.label() );
00018 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:42 2009 for CMSSW by  doxygen 1.5.4