CMS 3D CMS Logo

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

BeamProfile2DB Class Reference

#include <IOMC/BeamProfile2DB/src/BeamProfile2DB.cc>

Inheritance diagram for BeamProfile2DB:
edm::EDAnalyzer

List of all members.

Public Member Functions

 BeamProfile2DB (const edm::ParameterSet &)
 ~BeamProfile2DB ()

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 config_

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 42 of file BeamProfile2DB.cc.


Constructor & Destructor Documentation

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

Definition at line 75 of file BeamProfile2DB.cc.

References config_.

{
  config_=iConfig;  
}
BeamProfile2DB::~BeamProfile2DB ( )

Definition at line 82 of file BeamProfile2DB.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

void BeamProfile2DB::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 97 of file BeamProfile2DB.cc.

{
}
void BeamProfile2DB::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 104 of file BeamProfile2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 137 of file BeamProfile2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 125 of file BeamProfile2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 110 of file BeamProfile2DB.cc.

References config_, and SimBeamSpotObjects::read().

{
  edm::Service<cond::service::PoolDBOutputService> poolDbService;
  SimBeamSpotObjects * beam = new SimBeamSpotObjects();
  
  beam->read(config_);
  
  poolDbService->createNewIOV<SimBeamSpotObjects>(beam,
                                                  poolDbService->beginOfTime(),poolDbService->endOfTime(),
                                                  "SimBeamSpotObjectsRcd"  );

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

Reimplemented from edm::EDAnalyzer.

Definition at line 143 of file BeamProfile2DB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 131 of file BeamProfile2DB.cc.

{
}
void BeamProfile2DB::fillDescriptions ( edm::ConfigurationDescriptions descriptions) [static]

Reimplemented from edm::EDAnalyzer.

Definition at line 149 of file BeamProfile2DB.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 61 of file BeamProfile2DB.cc.

Referenced by BeamProfile2DB(), and endJob().