CMS 3D CMS Logo

Public Member Functions | Private Attributes

XMLGeometryBuilder Class Reference

#include <XMLGeometryBuilder.h>

Inheritance diagram for XMLGeometryBuilder:
edm::EDAnalyzer

List of all members.

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

Detailed Description

Definition at line 12 of file XMLGeometryBuilder.h.


Constructor & Destructor Documentation

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.

{

}

Member Function Documentation

virtual void XMLGeometryBuilder::analyze ( const edm::Event ,
const edm::EventSetup  
) [inline, virtual]

Implements edm::EDAnalyzer.

Definition at line 18 of file XMLGeometryBuilder.h.

{}
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]

Reimplemented from edm::EDAnalyzer.

Definition at line 19 of file XMLGeometryBuilder.h.

{};

Member Data Documentation

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().