CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FixedGridRhoProducer Class Reference

#include <FixedGridRhoProducer.h>

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

List of all members.

Public Member Functions

 FixedGridRhoProducer (const edm::ParameterSet &iConfig)
virtual ~FixedGridRhoProducer ()

Private Member Functions

virtual void beginJob ()
virtual void beginLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &)
virtual void beginRun (edm::Run &, edm::EventSetup const &)
virtual void endJob ()
virtual void endLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &)
virtual void endRun (edm::Run &, edm::EventSetup const &)
virtual void produce (edm::Event &, const edm::EventSetup &)

Private Attributes

FixedGridEnergyDensityalgo
FixedGridEnergyDensity::EtaRegion myEtaRegion
edm::InputTag pfCandidatesTag_

Detailed Description

Definition at line 9 of file FixedGridRhoProducer.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file FixedGridRhoProducer.cc.

References muon::All, FixedGridEnergyDensity::Central, FixedGridEnergyDensity::Forward, and edm::ParameterSet::getParameter().

                                                                         {
  pfCandidatesTag_ = iConfig.getParameter<edm::InputTag>("pfCandidatesTag");
  string etaRegion = iConfig.getParameter<string>("EtaRegion");
  if (etaRegion=="Central") myEtaRegion = FixedGridEnergyDensity::Central;
  else if (etaRegion=="Forward") myEtaRegion = FixedGridEnergyDensity::Forward;
  else if (etaRegion=="All") myEtaRegion = FixedGridEnergyDensity::All;
  else {
    edm::LogWarning("FixedGridRhoProducer") << "Wrong EtaRegion parameter: " << etaRegion << ". Using EtaRegion = Central";  
    myEtaRegion = FixedGridEnergyDensity::Central;
  }
  produces<double>();
}
FixedGridRhoProducer::~FixedGridRhoProducer ( ) [virtual]

Definition at line 20 of file FixedGridRhoProducer.cc.

{} 

Member Function Documentation

virtual void FixedGridRhoProducer::beginJob ( void  ) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 17 of file FixedGridRhoProducer.h.

{};
virtual void FixedGridRhoProducer::beginLuminosityBlock ( edm::LuminosityBlock ,
edm::EventSetup const &   
) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 21 of file FixedGridRhoProducer.h.

{};
virtual void FixedGridRhoProducer::beginRun ( edm::Run ,
edm::EventSetup const &   
) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 19 of file FixedGridRhoProducer.h.

{};
virtual void FixedGridRhoProducer::endJob ( void  ) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 18 of file FixedGridRhoProducer.h.

{};  
virtual void FixedGridRhoProducer::endLuminosityBlock ( edm::LuminosityBlock ,
edm::EventSetup const &   
) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 22 of file FixedGridRhoProducer.h.

{};
virtual void FixedGridRhoProducer::endRun ( edm::Run ,
edm::EventSetup const &   
) [inline, private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 20 of file FixedGridRhoProducer.h.

{};
void FixedGridRhoProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Member Data Documentation

Definition at line 26 of file FixedGridRhoProducer.h.

Definition at line 25 of file FixedGridRhoProducer.h.

Definition at line 22 of file FixedGridRhoProducer.h.