CMS 3D CMS Logo

Public Member Functions | Private Attributes

TtDecaySelection Class Reference

#include <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.

                                                            :
  src_( cfg.getParameter<edm::InputTag>( "src" ) ),
  sel_( cfg )
{
}
TtDecaySelection::~TtDecaySelection ( )

Definition at line 9 of file TtDecaySelection.cc.

{
}

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

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

Member Data Documentation

Definition at line 22 of file TtDecaySelection.h.

Referenced by filter().

Definition at line 21 of file TtDecaySelection.h.

Referenced by filter().