![]() |
![]() |
#include <RecoHcal/HcalHPDFilter/src/HcalHPDFilter.cc>
Public Member Functions | |
HcalHPDFilter (const edm::ParameterSet &) | |
~HcalHPDFilter () | |
Private Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
virtual bool | filter (edm::Event &, const edm::EventSetup &) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 39 of file HcalHPDFilter.cc.
HcalHPDFilter::HcalHPDFilter | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 63 of file HcalHPDFilter.cc.
{
//now do what ever initialization is needed
}
HcalHPDFilter::~HcalHPDFilter | ( | ) |
Definition at line 70 of file HcalHPDFilter.cc.
{ }
void HcalHPDFilter::beginJob | ( | void | ) | [private, virtual] |
void HcalHPDFilter::endJob | ( | void | ) | [private, virtual] |
bool HcalHPDFilter::filter | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDFilter.
Definition at line 82 of file HcalHPDFilter.cc.
References edm::Event::getByLabel().
{ using namespace edm; Handle<HBHERecHitCollection> hbhe; iEvent.getByLabel("hbhereco", hbhe); const HBHERecHitCollection Hithbhe = *(hbhe.product()); for (HBHERecHitCollection::const_iterator hhit=Hithbhe.begin(); hhit!=Hithbhe.end(); hhit++) { if (hhit->energy() > 5.) return true; } return false; }