CMS 3D CMS Logo

GetJetsFromHLTobject Class Reference

Description: HLT algorithms produced trigger::TriggerFilterObjectWithRefs containing the jets etc. More...

#include <HLTrigger/btau/src/GetJetsFromHLTobject.h>

Inheritance diagram for GetJetsFromHLTobject:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 GetJetsFromHLTobject (const edm::ParameterSet &)
virtual void produce (edm::Event &, const edm::EventSetup &)

Private Attributes

edm::InputTag m_jets


Detailed Description

Description: HLT algorithms produced trigger::TriggerFilterObjectWithRefs containing the jets etc.

that caused the trigger to fire. This class gets these jets and stores references to them directly in the event in a RefVector.

Implementation: <Notes on="" implementation>="">

Definition at line 32 of file GetJetsFromHLTobject.h.


Constructor & Destructor Documentation

GetJetsFromHLTobject::GetJetsFromHLTobject ( const edm::ParameterSet iConfig  )  [explicit]

Definition at line 7 of file GetJetsFromHLTobject.cc.

00007                                                                          :
00008   m_jets( iConfig.getParameter<edm::InputTag>("jets") )
00009 {
00010   produces<reco::CaloJetCollection>();
00011 }


Member Function Documentation

void GetJetsFromHLTobject::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDProducer.

Definition at line 15 of file GetJetsFromHLTobject.cc.

References edm::Event::getByLabel(), i, pfTauBenchmarkGeneric_cfi::jets, m_jets, edm::Event::put(), HcalSimpleRecAlgoImpl::reco(), and trigger::TriggerBJet.

00016 {
00017    using namespace edm;
00018    using namespace reco;
00019    std::auto_ptr<reco::CaloJetCollection> jets( new reco::CaloJetCollection() );
00020 
00021    Handle<trigger::TriggerFilterObjectWithRefs> hltObject;
00022    iEvent.getByLabel(m_jets, hltObject);
00023    std::vector<reco::CaloJetRef> refs;
00024    hltObject->getObjects( trigger::TriggerBJet, refs );
00025    for (size_t i = 0; i < refs.size(); i++) {
00026      jets->push_back(* refs[i]);
00027    }
00028    
00029    iEvent.put(jets);
00030 }


Member Data Documentation

edm::InputTag GetJetsFromHLTobject::m_jets [private]

Definition at line 38 of file GetJetsFromHLTobject.h.

Referenced by produce().


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