![]() |
|
|||
File indexing completed on 2025-04-17 02:42:01
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.EDAnalyzer("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 ), 0035 outFilePrefix = cms.untracked.string('DumpCond') 0036 ) 0037 0038 ## specify for which run you would like to get the conditions in the "firstRun" 0039 process.source = cms.Source("EmptySource", 0040 numberEventsInRun = cms.untracked.uint32(1), 0041 firstRun = cms.untracked.uint32(1) 0042 ) 0043 0044 0045 process.es_pool = cms.ESSource("PoolDBESSource", 0046 process.CondDBSetup, 0047 connect = cms.string('sqlite_file:testExample.db'), 0048 toGet = cms.VPSet( 0049 # cms.PSet( 0050 # record = cms.string('HcalPedestalsRcd'), 0051 # tag = cms.string('hcal_pedestals_fC_v6_mc') 0052 # ), 0053 # cms.PSet( 0054 # record = cms.string('HcalPedestalWidthsRcd'), 0055 # tag = cms.string('hcal_widths_fC_v6_mc') 0056 # ), 0057 # cms.PSet( 0058 # record = cms.string('HcalGainsRcd'), 0059 # tag = cms.string('hcal_gains_v3.01_physics_mc') 0060 # ), 0061 # cms.PSet( 0062 # record = cms.string('HcalQIEDataRcd'), 0063 # tag = cms.string('qie_normalmode_v6.01') 0064 # ), 0065 # cms.PSet( 0066 # record = cms.string('HcalQIETypesRcd'), 0067 # tag = cms.string('qietypes_normalmode_v0.00') 0068 # ), 0069 # cms.PSet( 0070 # record = cms.string('HcalChannelQualityRcd'), 0071 # tag = cms.string('hcal_channelStatus_trivial_mc') 0072 # ), 0073 # cms.PSet( 0074 # record = cms.string('HcalRespCorrsRcd'), 0075 # tag = cms.string('hcal_respcorr_trivial_v1.01_mc') 0076 # ), 0077 # cms.PSet( 0078 # record = cms.string('HcalL1TriggerObjectsRcd'), 0079 # tag = cms.string('hcal_L1TriggerObject_trivial_mc') 0080 # ), 0081 # cms.PSet( 0082 # record = cms.string('HcalElectronicsMapRcd'), 0083 # tag = cms.string('official_emap_v7.00') 0084 # ), 0085 # cms.PSet( 0086 # record = cms.string('HcalValidationCorrsRcd'), 0087 # tag = cms.string('hcal_validationcorr_trivial_v1.01_mc') 0088 # ), 0089 # cms.PSet( 0090 # record = cms.string('HcalLutMetadataRcd'), 0091 # tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc') 0092 # ), 0093 cms.PSet( 0094 record = cms.string('HcalDcsRcd'), 0095 tag = cms.string('hcal_dcsvalue_trivial_v1.01_mc') 0096 ) 0097 ) 0098 ) 0099 0100 0101 ## specify which conditions should be taken for input, 0102 ## you can mix different es_sources as long as it's unique for each object 0103 # process.es_pool = cms.ESSource( 0104 # "PoolDBESSource", 0105 # process.CondDBSetup, 0106 # timetype = cms.string('runnumber'), 0107 # connect = cms.string('frontier://FrontierDev/CMS_COND_HCAL'), 0108 # authenticationMethod = cms.untracked.uint32(0), 0109 # toGet = cms.VPSet( 0110 # cms.PSet( 0111 # record = cms.string('HcalPedestalsRcd'), 0112 # tag = cms.string('hcal_pedestals_fC_v3_mc') 0113 # ), 0114 # cms.PSet( 0115 # record = cms.string('HcalPedestalWidthsRcd'), 0116 # tag = cms.string('hcal_widths_fC_v3_mc') 0117 # ), 0118 # cms.PSet( 0119 # record = cms.string('HcalGainsRcd'), 0120 # tag = cms.string('hcal_gains_v2_physics_50_mc') 0121 # ), 0122 # cms.PSet( 0123 # record = cms.string('HcalQIEDataRcd'), 0124 # tag = cms.string('qie_normalmode_v5_mc') 0125 # ), 0126 # cms.PSet( 0127 # record = cms.string('HcalQIETypesRcd'), 0128 # tag = cms.string('qietypes_normalmode_v0_mc') 0129 # ), 0130 # cms.PSet( 0131 # record = cms.string('HcalElectronicsMapRcd'), 0132 # tag = cms.string('official_emap_v5_080208_mc') 0133 # ), 0134 # cms.PSet( 0135 # record = cms.string('HcalLutMetadataRcd'), 0136 # tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc') 0137 # ) 0138 # ) 0139 # ) 0140 0141 process.es_hardcode = cms.ESSource("HcalHardcodeCalibrations", 0142 toGet = cms.untracked.vstring('Pedestals', 0143 'GainWidths', 0144 'L1TriggerObjects', 0145 'LutMetadata', 0146 'ZSThresholds') 0147 ) 0148 0149 #process.es_ascii = cms.ESSource("HcalTextCalibrations", 0150 # input = cms.VPSet( 0151 # cms.PSet( 0152 # object = cms.string('Pedestals'), 0153 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_pedestals_fC_v5.txt') 0154 # ), 0155 # cms.PSet( 0156 # object = cms.string('PedestalWidths'), 0157 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_widths_fC_v5.txt') 0158 # ), 0159 # cms.PSet( 0160 # object = cms.string('Gains'), 0161 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_v1.txt') 0162 # ), 0163 # cms.PSet( 0164 # object = cms.string('GainWidths'), 0165 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_widths_v1.txt') 0166 # ), 0167 # cms.PSet( 0168 # object = cms.string('QIEData'), 0169 # file = cms.FileInPath('CondFormats/HcalObjects/data/qie_normalmode_v6_cand2_fakeZDC.txt') 0170 # ), 0171 # cms.PSet( 0172 # object = cms.string('ElectronicsMap'), 0173 # file = cms.FileInPath('CondFormats/HcalObjects/data/official_emap_v7.00_081109.txt') 0174 # ), 0175 # cms.PSet( 0176 # object = cms.string('ChannelQuality'), 0177 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_channelStatus_default.txt') 0178 # ), 0179 # cms.PSet( 0180 # object = cms.string('RespCorrs'), 0181 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_respCorr_trivial_HF0.7.txt') 0182 # ) , 0183 # cms.PSet( 0184 # object = cms.string('L1TriggerObjects'), 0185 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_L1TriggerObject_trivial.txt') 0186 # ) , 0187 # cms.PSet( 0188 # object = cms.string('ValidationCorrs'), 0189 # file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_validationCorr_trivial_HF0.7.txt') 0190 # ), 0191 # cms.PSet( 0192 # record = cms.string('HcalLutMetadataRcd'), 0193 # tag = cms.string('CondFormats/HcalObjects/data/hcal_lutmetadata_trivial_v1.01_mc') 0194 # ), 0195 # cms.PSet( 0196 # record = cms.string('HcalDcsValuesRcd'), 0197 # tag = cms.string('CondFormats/HcalObjects/data/hcal_dcsvalues_trivial_v1.01_mc') 0198 # ) 0199 # ) 0200 # ) 0201 0202 process.maxEvents = cms.untracked.PSet( 0203 input = cms.untracked.int32(1) 0204 ) 0205 process.p = cms.Path(process.prod) 0206 0207
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |