#include <DTRecoIdealDBLoader.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginRun (const edm::Run &, edm::EventSetup const &) |
DTRecoIdealDBLoader (const edm::ParameterSet &iConfig) | |
virtual void | endJob () |
~DTRecoIdealDBLoader () | |
Private Attributes | |
std::string | label_ |
int | rotNumSeed_ |
Definition at line 13 of file DTRecoIdealDBLoader.h.
DTRecoIdealDBLoader::DTRecoIdealDBLoader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 29 of file DTRecoIdealDBLoader.cc.
References gather_cfg::cout.
DTRecoIdealDBLoader::~DTRecoIdealDBLoader | ( | ) |
Definition at line 34 of file DTRecoIdealDBLoader.cc.
References gather_cfg::cout.
{ std::cout<<"DTRecoIdealDBLoader::~DTRecoIdealDBLoader"<<std::endl; }
virtual void DTRecoIdealDBLoader::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [inline, virtual] |
void DTRecoIdealDBLoader::beginRun | ( | const edm::Run & | , |
edm::EventSetup const & | es | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 40 of file DTRecoIdealDBLoader.cc.
References DTGeometryParsFromDD::build(), edm::EventSetup::get(), edm::Service< T >::isAvailable(), and label_.
{ RecoIdealGeometry* rig = new RecoIdealGeometry; edm::Service<cond::service::PoolDBOutputService> mydbservice; if( !mydbservice.isAvailable() ){ edm::LogError("DTRecoIdealDBLoader")<<"PoolDBOutputService unavailable"; return; } edm::ESTransientHandle<DDCompactView> pDD; edm::ESHandle<MuonDDDConstants> pMNDC; es.get<IdealGeometryRecord>().get(label_, pDD ); es.get<MuonNumberingRecord>().get( pMNDC ); const DDCompactView& cpv = *pDD; DTGeometryParsFromDD dtgp; dtgp.build( &cpv, *pMNDC, *rig ); if ( mydbservice->isNewTagRequest("DTRecoGeometryRcd") ) { mydbservice->createNewIOV<RecoIdealGeometry>(rig , mydbservice->beginOfTime() , mydbservice->endOfTime() , "DTRecoGeometryRcd"); } else { edm::LogError("DTRecoIdealDBLoader")<<"DTRecoGeometryRcd Tag is already present."; } }
virtual void DTRecoIdealDBLoader::endJob | ( | void | ) | [inline, virtual] |
std::string DTRecoIdealDBLoader::label_ [private] |
Definition at line 20 of file DTRecoIdealDBLoader.h.
Referenced by beginRun().
int DTRecoIdealDBLoader::rotNumSeed_ [private] |
Definition at line 24 of file DTRecoIdealDBLoader.h.