CMS 3D CMS Logo

Public Member Functions | Private Member Functions

BeamSpotFromDB Class Reference

#include <BeamSpotFromDB.h>

Inheritance diagram for BeamSpotFromDB:
edm::EDAnalyzer

List of all members.

Public Member Functions

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

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob ()
virtual void endJob ()

Detailed Description

_________________________________________________________________ class: BeamSpotFromDB.h package: RecoVertex/BeamSpotProducer

author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)

version

Id:
BeamSpotFromDB.h,v 1.2 2009/12/18 20:45:07 wmtan Exp

________________________________________________________________

Definition at line 26 of file BeamSpotFromDB.h.


Constructor & Destructor Documentation

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

_________________________________________________________________ class: BeamSpotFromDB.cc package: RecoVertex/BeamSpotProducer

author: Francisco Yumiceva, Fermilab (yumiceva@fnal.gov)

version

Id:
BeamSpotFromDB.cc,v 1.4 2010/02/21 20:26:37 yumiceva Exp

________________________________________________________________

Definition at line 32 of file BeamSpotFromDB.cc.

{
  
}
BeamSpotFromDB::~BeamSpotFromDB ( )

Definition at line 38 of file BeamSpotFromDB.cc.

{
        
}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 45 of file BeamSpotFromDB.cc.

References gather_cfg::cout, edm::EventSetup::get(), edm::EventBase::id(), edm::ESHandle< T >::product(), and edm::EventID::run().

{
        
        edm::ESHandle< BeamSpotObjects > beamhandle;
        iSetup.get<BeamSpotObjectsRcd>().get(beamhandle);
        const BeamSpotObjects *mybeamspot = beamhandle.product();

        std::cout << " for runs: " << iEvent.id().run() << " - " << iEvent.id().run() << std::endl;
        //std::cout << iEvent.getRun().beginTime().value() << std::endl;
        //std::cout << iEvent.time().value() << std::endl;
        std::cout << *mybeamspot << std::endl;

}
void BeamSpotFromDB::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 60 of file BeamSpotFromDB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 65 of file BeamSpotFromDB.cc.

                       {
}