#include <RecoHI/CentralityBinProducer/src/CentralityBinProducer.cc>
Public Member Functions | |
CentralityBinProducer (const edm::ParameterSet &) | |
~CentralityBinProducer () | |
Private Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
CentralityProvider * | centrality_ |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 42 of file CentralityBinProducer.cc.
CentralityBinProducer::CentralityBinProducer | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 70 of file CentralityBinProducer.cc.
: centrality_(0) { produces<int>(); }
CentralityBinProducer::~CentralityBinProducer | ( | ) |
Definition at line 77 of file CentralityBinProducer.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void CentralityBinProducer::beginJob | ( | void | ) | [private, virtual] |
void CentralityBinProducer::endJob | ( | void | ) | [private, virtual] |
void CentralityBinProducer::produce | ( | edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDProducer.
Definition at line 92 of file CentralityBinProducer.cc.
References newFWLiteAna::bin, centrality_, CentralityProvider::getBin(), CentralityProvider::newEvent(), and edm::Event::put().
{ using namespace edm; if(!centrality_) centrality_ = new CentralityProvider(iSetup); centrality_->newEvent(iEvent,iSetup); int bin = centrality_->getBin(); std::auto_ptr<int> binp(new int(bin)); iEvent.put(binp); }
Definition at line 54 of file CentralityBinProducer.cc.
Referenced by produce().