CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

Mixing2DB Class Reference

#include <SimGeneral/Mixing2DB/src/Mixing2DB.cc>

Inheritance diagram for Mixing2DB:
edm::EDAnalyzer

List of all members.

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_

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 38 of file Mixing2DB.h.


Constructor & Destructor Documentation

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

}

Member Function Documentation

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]

Reimplemented from edm::EDAnalyzer.

Definition at line 62 of file Mixing2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 80 of file Mixing2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 68 of file Mixing2DB.cc.

{
}
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->createNewIOV<MixingModuleConfig>(config,
                                                  poolDbService->beginOfTime(),poolDbService->endOfTime(),
                                                  "MixingRcd");

}
void Mixing2DB::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 86 of file Mixing2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 74 of file Mixing2DB.cc.

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

Member Data Documentation

Definition at line 57 of file Mixing2DB.h.

Referenced by endJob(), and Mixing2DB().