#include <XMLGeometryBuilder.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
XMLGeometryBuilder (const edm::ParameterSet &iConfig) | |
~XMLGeometryBuilder () | |
Private Attributes | |
std::string | fname |
bool | zip |
Definition at line 12 of file XMLGeometryBuilder.h.
XMLGeometryBuilder::XMLGeometryBuilder | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 20 of file XMLGeometryBuilder.cc.
References fname, edm::ParameterSet::getUntrackedParameter(), and zip.
{ fname = iConfig.getUntrackedParameter<std::string>("XMLFileName","test.xml"); zip = iConfig.getUntrackedParameter<bool>("ZIP",true); }
XMLGeometryBuilder::~XMLGeometryBuilder | ( | ) |
Definition at line 26 of file XMLGeometryBuilder.cc.
{ }
virtual void XMLGeometryBuilder::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [inline, virtual] |
void XMLGeometryBuilder::beginJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 32 of file XMLGeometryBuilder.cc.
References gather_cfg::cout, fname, edm::Service< T >::isAvailable(), and zip.
{ std::cout<<"XMLGeometryBuilder::beginJob"<<std::endl; edm::Service<cond::service::PoolDBOutputService> mydbservice; if( !mydbservice.isAvailable() ){ edm::LogError("XMLGeometryBuilder")<<"PoolDBOutputService unavailable"; return; } FileBlob* pgf= new FileBlob(fname,zip); if ( mydbservice->isNewTagRequest("GeometryFileRcd") ) { mydbservice->createNewIOV<FileBlob>( pgf,mydbservice->beginOfTime(),mydbservice->endOfTime(),"GeometryFileRcd"); } else { edm::LogError("XMLGeometryBuilder")<<"GeometryFileRcd Tag already exist"; } }
virtual void XMLGeometryBuilder::endJob | ( | void | ) | [inline, virtual] |
std::string XMLGeometryBuilder::fname [private] |
Definition at line 19 of file XMLGeometryBuilder.h.
Referenced by beginJob(), and XMLGeometryBuilder().
bool XMLGeometryBuilder::zip [private] |
Definition at line 22 of file XMLGeometryBuilder.h.
Referenced by beginJob(), and XMLGeometryBuilder().