Skip to content

Commit

Permalink
Use standard geometry file record for magnetic field payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Jul 16, 2013
1 parent 62db3c5 commit 16f2ebf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 85 deletions.
1 change: 0 additions & 1 deletion CondCore/GeometryPlugins/plugins/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<use name="CondFormats/GeometryObjects"/>
<use name="CondCore/ESSources"/>
<use name="Geometry/Records"/>
<use name="MagneticField/Records"/>
<use name="CondFormats/DataRecord"/>
<library file="plugin.cc" name="CondCoreGeometryPluginsPlugins">
<flags EDM_PLUGIN="1"/>
Expand Down
2 changes: 0 additions & 2 deletions CondCore/GeometryPlugins/plugins/plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "CondFormats/Common/interface/FileBlob.h"
#include "Geometry/Records/interface/GeometryFileRcd.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"

#include "CondFormats/GeometryObjects/interface/PGeometricDet.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
Expand All @@ -29,7 +28,6 @@
#include "Geometry/Records/interface/PGeometricDetExtraRcd.h"

REGISTER_PLUGIN(GeometryFileRcd,FileBlob);
REGISTER_PLUGIN(IdealMagneticFieldRecord,FileBlob);
REGISTER_PLUGIN(IdealGeometryRecord,PGeometricDet);
REGISTER_PLUGIN(PGeometricDetExtraRcd,PGeometricDetExtra);
REGISTER_PLUGIN(PEcalBarrelRcd,PCaloGeometry);
Expand Down
3 changes: 0 additions & 3 deletions CondTools/Geometry/plugins/SealModules.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "CondTools/Geometry/plugins/XMLGeometryBuilder.h"
DEFINE_FWK_MODULE(XMLGeometryBuilder);

#include "CondTools/Geometry/plugins/XMLMagneticFieldGeometryBuilder.h"
DEFINE_FWK_MODULE(XMLMagneticFieldGeometryBuilder);

#include "CondTools/Geometry/plugins/PGeometricDetBuilder.h"
DEFINE_FWK_MODULE(PGeometricDetBuilder);

Expand Down
50 changes: 0 additions & 50 deletions CondTools/Geometry/plugins/XMLMagneticFieldGeometryBuilder.cc

This file was deleted.

26 changes: 0 additions & 26 deletions CondTools/Geometry/plugins/XMLMagneticFieldGeometryBuilder.h

This file was deleted.

6 changes: 3 additions & 3 deletions CondTools/Geometry/test/writehelpers/mfwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# somewhat duplicates the information read from the little
# XML files, but there is no way to directly build the
# DDCompactView from this.
process.XMLMagneticFieldGeometryWriter = cms.EDAnalyzer("XMLMagneticFieldGeometryBuilder",
process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
XMLFileName = cms.untracked.string("./mfSingleBigFile.xml"),
ZIP = cms.untracked.bool(True)
)
Expand All @@ -30,11 +30,11 @@
process.CondDBCommon.connect = cms.string('sqlite_file:myfile.db')
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBCommon,
toPut = cms.VPSet(cms.PSet(record = cms.string('IdealMagneticFieldRecord'),tag = cms.string('XMLFILE_MagneticFieldGeometry_TagXX')))
toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_MagneticFieldGeometry_TagXX')))
)

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)

process.p1 = cms.Path(process.XMLMagneticFieldGeometryWriter)
process.p1 = cms.Path(process.XMLGeometryWriter)

0 comments on commit 16f2ebf

Please sign in to comment.