CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

CentralityBinProducer Class Reference

#include <RecoHI/CentralityBinProducer/src/CentralityBinProducer.cc>

Inheritance diagram for CentralityBinProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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

CentralityProvidercentrality_

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 42 of file CentralityBinProducer.cc.


Constructor & Destructor Documentation

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

}

Member Function Documentation

void CentralityBinProducer::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 107 of file CentralityBinProducer.cc.

{
}
void CentralityBinProducer::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 113 of file CentralityBinProducer.cc.

                              {
}
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);
 
}

Member Data Documentation

Definition at line 54 of file CentralityBinProducer.cc.

Referenced by produce().