#include <SimGeneral/Mixing2DB/src/Mixing2DB.cc>
Public Member Functions | |
Mixing2DB (const edm::ParameterSet &) | |
~Mixing2DB () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) |
virtual void | endJob () |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) |
Private Attributes | |
edm::ParameterSet | cfi_ |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 38 of file Mixing2DB.h.
Mixing2DB::Mixing2DB | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 20 of file Mixing2DB.cc.
References cfi_.
{ //cfi_=iConfig.getParameter<edm::ParameterSet>("input"); cfi_=iConfig; }
Mixing2DB::~Mixing2DB | ( | ) |
Definition at line 27 of file Mixing2DB.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void Mixing2DB::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 42 of file Mixing2DB.cc.
References edm::EventSetup::get(), and edm::Event::getByLabel().
{ using namespace edm; #ifdef THIS_IS_AN_EVENT_EXAMPLE Handle<ExampleData> pIn; iEvent.getByLabel("example",pIn); #endif #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE ESHandle<SetupData> pSetup; iSetup.get<SetupRecord>().get(pSetup); #endif }
void Mixing2DB::beginJob | ( | void | ) | [private, virtual] |
void Mixing2DB::beginLuminosityBlock | ( | edm::LuminosityBlock const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void Mixing2DB::beginRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void Mixing2DB::endJob | ( | void | ) | [private, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 102 of file Mixing2DB.cc.
References cfi_, HDQMDatabaseProducer::config, and MixingModuleConfig::read().
{ edm::Service<cond::service::PoolDBOutputService> poolDbService; MixingModuleConfig * config = new MixingModuleConfig(); config->read(cfi_); poolDbService->writeOne<MixingModuleConfig>(config, poolDbService->currentTime(), "MixingRcd"); }
void Mixing2DB::endLuminosityBlock | ( | edm::LuminosityBlock const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void Mixing2DB::endRun | ( | edm::Run const & | , |
edm::EventSetup const & | |||
) | [private, virtual] |
void Mixing2DB::fillDescriptions | ( | edm::ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDAnalyzer.
Definition at line 92 of file Mixing2DB.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
{ //The following says we do not know what parameters are allowed so do no validation // Please change this to state exactly what you do use, even if it is no parameters edm::ParameterSetDescription desc; desc.setUnknown(); descriptions.addDefault(desc); }
edm::ParameterSet Mixing2DB::cfi_ [private] |
Definition at line 57 of file Mixing2DB.h.
Referenced by endJob(), and Mixing2DB().