Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TopQuarkAnalysis
TopEventProducers
src
TtDecaySelection.cc
Go to the documentation of this file.
1
#include "
TopQuarkAnalysis/TopEventProducers/interface/TtDecaySelection.h
"
2
3
TtDecaySelection::TtDecaySelection
(
const
edm::ParameterSet
& cfg):
4
src_( cfg.getParameter<edm::InputTag>(
"src"
) ),
5
sel_( cfg )
6
{
7
}
8
9
TtDecaySelection::~TtDecaySelection
()
10
{
11
}
12
13
bool
TtDecaySelection::filter
(
edm::Event
& evt,
const
edm::EventSetup
& setup)
14
{
15
edm::Handle<TtGenEvent>
genEvt
;
16
evt.
getByLabel
(
src_
, genEvt );
17
return
sel_
( genEvt->particles(),
src_
.
label
() );
18
}
TtDecaySelection::TtDecaySelection
TtDecaySelection(const edm::ParameterSet &)
Definition:
TtDecaySelection.cc:3
edm::Handle
Definition:
AssociativeIterator.h:48
TtGenEvtProducer_cfi.genEvt
tuple genEvt
Definition:
TtGenEvtProducer_cfi.py:7
TtDecaySelection::src_
edm::InputTag src_
Definition:
TtDecaySelection.h:21
TtDecaySelection::filter
virtual bool filter(edm::Event &, const edm::EventSetup &)
Definition:
TtDecaySelection.cc:13
edm::EventSetup
Definition:
EventSetup.h:44
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:359
TtDecaySelection.h
edm::InputTag::label
std::string const & label() const
Definition:
InputTag.h:25
edm::ParameterSet
Definition:
ParameterSet.h:31
edm::Event
Definition:
Event.h:49
TtDecaySelection::~TtDecaySelection
~TtDecaySelection()
Definition:
TtDecaySelection.cc:9
TtDecaySelection::sel_
TtDecayChannelSelector sel_
Definition:
TtDecaySelection.h:22
Generated for CMSSW Reference Manual by
1.8.5