#include <RPCRecoIdealDBLoader.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginRun (const edm::Run &, edm::EventSetup const &) |
virtual void | endJob () |
RPCRecoIdealDBLoader (const edm::ParameterSet &iConfig) | |
~RPCRecoIdealDBLoader () | |
Private Attributes | |
std::string | label_ |
int | rotNumSeed_ |
Definition at line 11 of file RPCRecoIdealDBLoader.h.
RPCRecoIdealDBLoader::RPCRecoIdealDBLoader | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 29 of file RPCRecoIdealDBLoader.cc.
References gather_cfg::cout.
RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader | ( | ) |
Definition at line 34 of file RPCRecoIdealDBLoader.cc.
References gather_cfg::cout.
{ std::cout<<"RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader"<<std::endl; }
virtual void RPCRecoIdealDBLoader::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [inline, virtual] |
void RPCRecoIdealDBLoader::beginRun | ( | const edm::Run & | , |
edm::EventSetup const & | es | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 40 of file RPCRecoIdealDBLoader.cc.
References RPCGeometryParsFromDD::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("RPCRecoIdealDBLoader")<<"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; RPCGeometryParsFromDD rpcpd; rpcpd.build( &cpv, *pMNDC, *rig ); if ( mydbservice->isNewTagRequest("RPCRecoGeometryRcd") ) { mydbservice->createNewIOV<RecoIdealGeometry>(rig , mydbservice->beginOfTime() , mydbservice->endOfTime() , "RPCRecoGeometryRcd"); } else { edm::LogError("RPCRecoIdealDBLoader")<<"RPCRecoGeometryRcd Tag is already present."; } }
virtual void RPCRecoIdealDBLoader::endJob | ( | void | ) | [inline, virtual] |
std::string RPCRecoIdealDBLoader::label_ [private] |
Definition at line 18 of file RPCRecoIdealDBLoader.h.
Referenced by beginRun().
int RPCRecoIdealDBLoader::rotNumSeed_ [private] |
Definition at line 22 of file RPCRecoIdealDBLoader.h.