CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Member Functions

 BeamProfile2DB (const edm::ParameterSet &)
 
 ~BeamProfile2DB ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

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_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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

77 {
78  config_=iConfig;
79 }
edm::ParameterSet config_
BeamProfile2DB::~BeamProfile2DB ( )

Definition at line 82 of file BeamProfile2DB.cc.

83 {
84 
85  // do anything here that needs to be done at desctruction time
86  // (e.g. close files, deallocate resources etc.)
87 
88 }

Member Function Documentation

void BeamProfile2DB::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 97 of file BeamProfile2DB.cc.

98 {
99 }
void BeamProfile2DB::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 104 of file BeamProfile2DB.cc.

105 {
106 }
void BeamProfile2DB::beginLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 137 of file BeamProfile2DB.cc.

138 {
139 }
void BeamProfile2DB::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 125 of file BeamProfile2DB.cc.

126 {
127 }
void BeamProfile2DB::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 110 of file BeamProfile2DB.cc.

References cond::service::PoolDBOutputService::beginOfTime(), config_, cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), and SimBeamSpotObjects::read().

111 {
113  SimBeamSpotObjects * beam = new SimBeamSpotObjects();
114 
115  beam->read(config_);
116 
117  poolDbService->createNewIOV<SimBeamSpotObjects>(beam,
118  poolDbService->beginOfTime(),poolDbService->endOfTime(),
119  "SimBeamSpotObjectsRcd" );
120 
121 }
void read(edm::ParameterSet &p)
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
edm::ParameterSet config_
void BeamProfile2DB::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 143 of file BeamProfile2DB.cc.

144 {
145 }
void BeamProfile2DB::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 131 of file BeamProfile2DB.cc.

132 {
133 }
void BeamProfile2DB::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 149 of file BeamProfile2DB.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().

149  {
150  //The following says we do not know what parameters are allowed so do no validation
151  // Please change this to state exactly what you do use, even if it is no parameters
153  desc.setUnknown();
154  descriptions.addDefault(desc);
155 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

edm::ParameterSet BeamProfile2DB::config_
private

Definition at line 61 of file BeamProfile2DB.cc.

Referenced by BeamProfile2DB(), and endJob().