|
||||
File indexing completed on 2024-04-06 12:03:10
0001 ## example cfg to dump HCAL conditions from the database 0002 ## (can be also used to dump sqlite content or to test fake conditions reading in CMSSW) 0003 ## Radek Ofierzynski, 9.11.2008 0004 ## 0005 ## Gena Kukartsev, July 29, 2009 0006 ## Gena Kukartsev, September 21, 2009 0007 0008 import FWCore.ParameterSet.Config as cms 0009 0010 process = cms.Process("DUMP") 0011 0012 process.load("CondCore.DBCommon.CondDBSetup_cfi") 0013 0014 ## specify which conditions you would like to dump to a text file in the "dump" vstring 0015 process.prod = cms.EDFilter("HcalDumpConditions", 0016 dump = cms.untracked.vstring( 0017 # 'Pedestals' 0018 # ,'PedestalWidths' 0019 # ,'Gains' 0020 # ,'QIEData' 0021 # ,'QIETypes' 0022 # ,'ElectronicsMap' 0023 # ,'ChannelQuality' 0024 # ,'GainWidths' 0025 # ,'RespCorrs' 0026 # ,'TimeCorrs' 0027 # ,'LUTCorrs' 0028 # ,'PFCorrs' 0029 # 'L1TriggerObjects' 0030 # ,'ZSThresholds' 0031 # ,'ValidationCorrs' 0032 # ,'LutMetadata' 0033 # 'DcsValues' 0034 'DcsMap' 0035 ), 0036 outFilePrefix = cms.untracked.string('DumpCond') 0037 ) 0038 0039 ## specify for which run you would like to get the conditions in the "firstRun" 0040 process.source = cms.Source("EmptySource", 0041 numberEventsInRun = cms.untracked.uint32(1), 0042 firstRun = cms.untracked.uint32(1) 0043 ) 0044 0045 0046 process.es_pool = cms.ESSource("PoolDBESSource", 0047 process.CondDBSetup, 0048 timetype = cms.string('runnumber'), 0049 connect = cms.string('sqlite_file:testExample.db'), 0050 authenticationMethod = cms.untracked.uint32(0), 0051 toGet = cms.VPSet( 0052 # cms.PSet( 0053 # record = cms.string('HcalPedestalsRcd'), 0054 # tag = cms.string('hcal_pedestals_fC_v6_mc') 0055 # ), 0056 # cms.PSet( 0057 # record = cms.string('HcalPedestalWidthsRcd'), 0058 # tag = cms.string('hcal_widths_fC_v6_mc') 0059 # ), 0060 # cms.PSet( 0061 # record = cms.string('HcalGainsRcd'), 0062 # tag = cms.string('hcal_gains_v3.01_physics_mc') 0063 # ), 0064 # cms.PSet( 0065 # record = cms.string('HcalQIEDataRcd'), 0066 # tag = cms.string('qie_normalmode_v6.01') 0067 # ), 0068 # cms.PSet( 0069 # record = cms.string('HcalQIETypesRcd'), 0070 # tag = cms.string('qietypes_normalmode_v0.00') 0071 # ), 0072 # cms.PSet( 0073 # record = cms.string('HcalChannelQualityRcd'), 0074 # tag = cms.string('hcal_channelStatus_trivial_mc') 0075 # ), 0076 # cms.PSet( 0077 # record = cms.string('HcalRespCorrsRcd'), 0078 # tag = cms.string('hcal_respcorr_trivial_v1.01_mc') 0079 # ), 0080 # cms.PSet( 0081 # record = cms.string('HcalL1TriggerObjectsRcd'), 0082 # tag = cms.string('hcal_L1TriggerObject_trivial_mc') 0083 # ), 0084 # cms.PSet( 0085 # record = cms.string('HcalElectronicsMapRcd'), 0086 # tag = cms.string('official_emap_v7.00') 0087 # ), 0088 # cms.PSet( 0089 # record = cms.string('HcalValidationCorrsRcd'), 0090 # tag = cms.string('hcal_validationcorr_trivial_v1.01_mc') 0091 # ), 0092 # cms.PSet( 0093 # record = cms.string('HcalLutMetadataRcd'), 0094 # tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc') 0095 # ), 0096 # cms.PSet( 0097 # record = cms.string('HcalDcsRcd'), 0098 # tag = cms.string('hcal_dcsvalue_trivial_v1.01_mc') 0099 # ) 0100 # cms.PSet( 0101 # record = cms.string('HcalDcsMapRcd'), 0102 # tag = cms.string('HcalDcsMap_v1.00_test') 0103 # ) 0104 #) 0105 #) 0106 0107 0108 ## specify which conditions should be taken for input, 0109 ## you can mix different es_sources as long as it's unique for each object 0110 # process.es_pool = cms.ESSource( 0111 # "PoolDBESSource", 0112 # process.CondDBSetup, 0113 # timetype = cms.string('runnumber'), 0114 # connect = cms.string('frontier://FrontierDev/CMS_COND_HCAL'), 0115 # authenticationMethod = cms.untracked.uint32(0), 0116 # toGet = cms.VPSet( 0117 # cms.PSet( 0118 # record = cms.string('HcalPedestalsRcd'), 0119 # tag = cms.string('hcal_pedestals_fC_v3_mc') 0120 # ), 0121 # cms.PSet( 0122 # record = cms.string('HcalPedestalWidthsRcd'), 0123 # tag = cms.string('hcal_widths_fC_v3_mc') 0124 # ), 0125 # cms.PSet( 0126 # record = cms.string('HcalGainsRcd'), 0127 # tag = cms.string('hcal_gains_v2_physics_50_mc') 0128 # ), 0129 # cms.PSet( 0130 # record = cms.string('HcalQIEDataRcd'), 0131 # tag = cms.string('qie_normalmode_v5_mc') 0132 # ), 0133 # cms.PSet( 0134 # record = cms.string('HcalQIETypesRcd'), 0135 # tag = cms.string('qietypes_normalmode_v0_mc') 0136 # ), 0137 # cms.PSet( 0138 # record = cms.string('HcalElectronicsMapRcd'), 0139 # tag = cms.string('official_emap_v5_080208_mc') 0140 # ), 0141 # cms.PSet( 0142 # record = cms.string('HcalLutMetadataRcd'), 0143 # tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc') 0144 # ) 0145 # cms.PSet( 0146 # record = cms.string('HcalDcsMapRcd'), 0147 # tag = cms.string('HcalDcsMap_v1.00_test') 0148 # ) 0149 # ) 0150 # ) 0151 0152 process.es_hardcode = cms.ESSource("HcalHardcodeCalibrations", 0153 toGet = cms.untracked.vstring('Pedestals', 0154 'GainWidths', 0155 'L1TriggerObjects', 0156 'LutMetadata', 0157 'ZSThresholds' 0158 #,'DcsValues' 0159 #,'DcsMap' 0160 ) 0161 ) 0162 0163 #process.es_ascii = cms.ESSource("HcalTextCalibrations", 0164 # input = cms.VPSet( 0165 # cms.PSet( 0166 # object = cms.string('Pedestals'), 0167 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_pedestals_fC_v5.txt') 0168 # ), 0169 # cms.PSet( 0170 # object = cms.string('PedestalWidths'), 0171 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_widths_fC_v5.txt') 0172 # ), 0173 # cms.PSet( 0174 # object = cms.string('Gains'), 0175 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_v1.txt') 0176 # ), 0177 # cms.PSet( 0178 # object = cms.string('GainWidths'), 0179 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_widths_v1.txt') 0180 # ), 0181 # cms.PSet( 0182 # object = cms.string('QIEData'), 0183 # file = cms.FileInPath('CondFormats/HcalObjects/data/qie_normalmode_v6_cand2_fakeZDC.txt') 0184 # ), 0185 # cms.PSet( 0186 # object = cms.string('ElectronicsMap'), 0187 # file = cms.FileInPath('CondFormats/HcalObjects/data/official_emap_v7.00_081109.txt') 0188 # ), 0189 # cms.PSet( 0190 # object = cms.string('ChannelQuality'), 0191 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_channelStatus_default.txt') 0192 # ), 0193 # cms.PSet( 0194 # object = cms.string('RespCorrs'), 0195 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_respCorr_trivial_HF0.7.txt') 0196 # ) , 0197 # cms.PSet( 0198 # object = cms.string('L1TriggerObjects'), 0199 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_L1TriggerObject_trivial.txt') 0200 # ) , 0201 # cms.PSet( 0202 # object = cms.string('ValidationCorrs'), 0203 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_validationCorr_trivial_HF0.7.txt') 0204 # ), 0205 # cms.PSet( 0206 # object = cms.string('DcsMap'), 0207 # file = cms.FileInPath('CondTools/Hcal/test/HcalDcsMap_v1.00_test.txt') 0208 # ) 0209 # ) 0210 # ) 0211 0212 process.maxEvents = cms.untracked.PSet( 0213 input = cms.untracked.int32(1) 0214 ) 0215 process.p = cms.Path(process.prod) 0216 0217
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |