Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /CondCore/CondHDF5ESSource/README.md is written in an unsupported language. File is not indexed.

0001 # Overview of CondCore/CondHDF5ESSource
0002 
0003 ## CondHDF5ESSource
0004 
0005 CondHDF5ESSource is an EventSetup source that can read conditions data from an HDF5 file. The full configuration options for the module can be obtained by doing the standard
0006 
0007 ```
0008 > edmPluginHelp -p CondHDF5ESSource
0009 ```
0010 
0011 In general, one will specify the file to read and the global tag stored within that file to use. E.g.
0012 
0013 ```python
0014 
0015 globalTag = cms.ESSource("CondHDF5ESSource", filename = cms.string("JobConditions.h5cond"), globalTag = cms.string("SomeTag") ) 
0016 ```
0017 
0018 ## Utilities for creating an HDF5 conditions file
0019 
0020 ### conddb2hdf5.py
0021 
0022 This utility reads from the conditions database and writes a specified global tag into to the file. The full range of options can be seen by doing
0023 
0024 ```
0025 > conddb2hdf5.py --help
0026 ```
0027 
0028 The simplest way to use the utlity is to specify a global tag and the output file name
0029 
0030 ```
0031 > conddb2hdf5.py SomeTag --output JobConditions.h5cond
0032 ```
0033 
0034 NOTE: it can take many hours to dump all the conditions from a global tag stored in the DB.
0035 
0036 ### condhdf5tohdf5.py
0037 
0038 This utility reads from one hdf5 conditions file and writes a specified global tag into a new hdf5 file. The full range of options can be seen by doing
0039 
0040 ```
0041 > condhdf5tohdf5.py --help
0042 ```
0043 
0044 The simplest way to use the utlity is to specify the input file, a global tag and the output file name
0045 
0046 ```
0047 > condhdf5tohdf5.py OriginaFile.h5cond SomeTag --output JobConditions.h5cond
0048 ```
0049