Back to home page

Project CMSSW displayed by LXR

 
 

    


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.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 #        ,'DcsMap'
0035         'TimingParams'
0036 #    'RecoParams'
0037 #    ,'LongRecoParams'
0038 #    ,'MCParams'
0039 #    ,'FlagHFDigiTimeParams'
0040 #    ,'SiPMParameters'
0041 #    ,'SiPMCharacteristics'
0042 #    ,'TPParameters'
0043 #    ,'TPChannelParameters'
0044 #    ,'FrontEndMap'
0045 #    ,'CalibrationsSet'
0046 #    ,'CalibrationWidthsSet'
0047         ),
0048     outFilePrefix = cms.untracked.string('DumpCond')
0049 )
0050 
0051 ## specify for which run you would like to get the conditions in the "firstRun"
0052 process.source = cms.Source("EmptySource",
0053     numberEventsInRun = cms.untracked.uint32(1),
0054     firstRun = cms.untracked.uint32(1)
0055 )
0056 
0057 
0058 process.es_pool = cms.ESSource("PoolDBESSource",
0059      process.CondDBSetup,
0060      timetype = cms.string('runnumber'),
0061      connect = cms.string('sqlite_file:testExample.db'),
0062      authenticationMethod = cms.untracked.uint32(0),
0063      toGet = cms.VPSet(
0064 #        cms.PSet(
0065 #            record = cms.string('HcalPedestalsRcd'),
0066 #            tag = cms.string('hcal_pedestals_fC_v6_mc')
0067 #        ), 
0068 #        cms.PSet(
0069 #            record = cms.string('HcalPedestalWidthsRcd'),
0070 #            tag = cms.string('hcal_widths_fC_v6_mc')
0071 #        ), 
0072 #        cms.PSet(
0073 #            record = cms.string('HcalGainsRcd'),
0074 #            tag = cms.string('hcal_gains_v3.01_physics_mc')
0075 #        ), 
0076 #        cms.PSet(
0077 #            record = cms.string('HcalQIEDataRcd'),
0078 #            tag = cms.string('qie_normalmode_v6.01')
0079 #        ), 
0080 #        cms.PSet(
0081 #            record = cms.string('HcalQIETypesRcd'),
0082 #            tag = cms.string('qietypes_normalmode_v0.00')
0083 #        ), 
0084 #        cms.PSet(
0085 #            record = cms.string('HcalChannelQualityRcd'),
0086 #            tag = cms.string('hcal_channelStatus_trivial_mc')
0087 #        ), 
0088 #        cms.PSet(
0089 #            record = cms.string('HcalRespCorrsRcd'),
0090 #            tag = cms.string('hcal_respcorr_trivial_v1.01_mc')
0091 #        ), 
0092 #        cms.PSet(
0093 #            record = cms.string('HcalL1TriggerObjectsRcd'),
0094 #            tag = cms.string('hcal_L1TriggerObject_trivial_mc')
0095 #        ), 
0096 #        cms.PSet(
0097 #            record = cms.string('HcalElectronicsMapRcd'),
0098 #            tag = cms.string('official_emap_v7.00')
0099 #        ),
0100 #        cms.PSet(
0101 #            record = cms.string('HcalValidationCorrsRcd'),
0102 #            tag = cms.string('hcal_validationcorr_trivial_v1.01_mc')
0103 #        ),
0104 #        cms.PSet(
0105 #            record = cms.string('HcalLutMetadataRcd'),
0106 #            tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc')
0107 #        ) 
0108 #        cms.PSet(
0109 #            record = cms.string('HcalDcsMapRcd'),
0110 #            tag = cms.string('HcalDcsMap_v1.00_test')
0111 #        )
0112         cms.PSet(
0113             record = cms.string('HcalTimingParamsRcd'),
0114             tag = cms.string('hcal_timingparams_v1.00_test')
0115         )    
0116 #        cms.PSet(
0117 #            record = cms.string('HcalRecoParamsRcd'),
0118 #            tag = cms.string('hcal_recoparams_v1.00_test')
0119 #        ), 
0120 #        cms.PSet(
0121 #            record = cms.string('HcalLongRecoParamsRcd'),
0122 #            tag = cms.string('hcal_longrecoparams_v1.00_test')
0123 #        ), 
0124 #        cms.PSet(
0125 #            record = cms.string('HcalMCParamsRcd'),
0126 #            tag = cms.string('hcal_mcparams_v1.00_test')
0127 #        ),
0128 #        cms.PSet(
0129 #    record = cms.string('HcalFlagHFDigiTimeParamsRcd'),
0130 #    tag = cms.string('hcal_flaghfdigitimeparams_v1.00_test')
0131 #    ),
0132         
0133         
0134 )
0135 )
0136 
0137 
0138 ## specify which conditions should be taken for input, 
0139 ## you can mix different es_sources as long as it's unique for each object
0140 # process.es_pool = cms.ESSource(
0141 #     "PoolDBESSource",
0142 #     process.CondDBSetup,
0143 #     timetype = cms.string('runnumber'),
0144 #     connect = cms.string('frontier://FrontierDev/CMS_COND_HCAL'),
0145 #     authenticationMethod = cms.untracked.uint32(0),
0146 #     toGet = cms.VPSet(
0147 #         cms.PSet(
0148 #             record = cms.string('HcalPedestalsRcd'),
0149 #             tag = cms.string('hcal_pedestals_fC_v3_mc')
0150 #             ), 
0151 #         cms.PSet(
0152 #             record = cms.string('HcalPedestalWidthsRcd'),
0153 #             tag = cms.string('hcal_widths_fC_v3_mc')
0154 #             ), 
0155 #         cms.PSet(
0156 #             record = cms.string('HcalGainsRcd'),
0157 #             tag = cms.string('hcal_gains_v2_physics_50_mc')
0158 #             ), 
0159 #         cms.PSet(
0160 #             record = cms.string('HcalQIEDataRcd'),
0161 #             tag = cms.string('qie_normalmode_v5_mc')
0162 #             ), 
0163 #         cms.PSet(
0164 #             record = cms.string('HcalQIETypeRcd'),
0165 #             tag = cms.string('qietype_norma_v0_mc')
0166 #             ),
0167 #         cms.PSet(
0168 #             record = cms.string('HcalElectronicsMapRcd'),
0169 #             tag = cms.string('official_emap_v5_080208_mc')
0170 #             ),
0171 #         cms.PSet(
0172 #             record = cms.string('HcalLutMetadataRcd'),
0173 #             tag = cms.string('hcal_lutmetadata_trivial_v1.01_mc')
0174 #         ) 
0175 #         cms.PSet(
0176 #             record = cms.string('HcalDcsMapRcd'),
0177 #             tag = cms.string('HcalDcsMap_v1.00_test')
0178 #         ) 
0179 #         )
0180 # )
0181 
0182 process.es_hardcode = cms.ESSource("HcalHardcodeCalibrations",
0183      toGet = cms.untracked.vstring(
0184 #        'Pedestals'
0185 #        ,'PedestalWidths' 
0186 #        ,'Gains' 
0187 #        ,'QIEData' 
0188 #        ,'QIETypes' 
0189 #        ,'ElectronicsMap'
0190 #        ,'ChannelQuality' 
0191 #        ,'GainWidths' 
0192 #        ,'RespCorrs' 
0193 #        ,'TimeCorrs'
0194 #        ,'LUTCorrs'
0195 #        ,'PFCorrs'
0196 #        ,'L1TriggerObjects'
0197 #        ,'ZSThresholds'
0198 #        ,'ValidationCorrs' 
0199 #        ,'LutMetadata'
0200 #        ,'DcsValues'
0201 #        ,'DcsMap'
0202         'TimingParams'
0203 #        ,'RecoParams'
0204 #        ,'LongRecoParams'
0205 #        ,'MCParams'
0206 #        ,'FlagHFDigiTimeParams'        
0207         )
0208  )
0209 
0210 #process.es_ascii = cms.ESSource("HcalTextCalibrations",
0211 #     input = cms.VPSet(
0212 #         cms.PSet(
0213 #             object = cms.string('Pedestals'),
0214 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_pedestals_fC_v5.txt')
0215 #             ), 
0216 #         cms.PSet(
0217 #             object = cms.string('PedestalWidths'),
0218 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_widths_fC_v5.txt')
0219 #         ), 
0220 #         cms.PSet(
0221 #             object = cms.string('Gains'),
0222 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_v1.txt')
0223 #         ), 
0224 #         cms.PSet(
0225 #             object = cms.string('GainWidths'),
0226 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_gains_widths_v1.txt')
0227 #         ), 
0228 #         cms.PSet(
0229 #             object = cms.string('QIEData'),
0230 #             file = cms.FileInPath('CondFormats/HcalObjects/data/qie_normalmode_v6_cand2_fakeZDC.txt')
0231 #         ), 
0232 #         cms.PSet(
0233 #             object = cms.string('QIETypes'),
0234 #             file = cms.FileInPath('CondFormats/HcalObjects/data/qietypes_normalmode_v0.txt')
0235 #         ), 
0236 #         cms.PSet(
0237 #             object = cms.string('ElectronicsMap'),
0238 #             file = cms.FileInPath('CondFormats/HcalObjects/data/official_emap_v7.00_081109.txt')
0239 #         ), 
0240 #         cms.PSet(
0241 #             object = cms.string('ChannelQuality'),
0242 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_channelStatus_default.txt')
0243 #         ),
0244 #         cms.PSet(
0245 #             object = cms.string('RespCorrs'),
0246 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_respCorr_trivial_HF0.7.txt')
0247 #         ) ,
0248 #         cms.PSet(
0249 #             object = cms.string('L1TriggerObjects'),
0250 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_L1TriggerObject_trivial.txt')
0251 #         ) ,
0252 #         cms.PSet(
0253 #             object = cms.string('ValidationCorrs'),
0254 #             file = cms.FileInPath('CondFormats/HcalObjects/data/hcal_validationCorr_trivial_HF0.7.txt')
0255 #         ),
0256 #         cms.PSet(
0257 #             object = cms.string('LutMetadata'),
0258 #             tag = cms.FileInPath('CondFormats/HcalObjects/data/hcal_lutmetadata_trivial_v1.01_mc')
0259 #         ), 
0260 #         cms.PSet(
0261 #             object = cms.string('DcsMap'),
0262 #             file = cms.FileInPath('HcalDcsMap_v1.00_test')
0263 #         ) 
0264 #         cms.PSet(
0265 #             object = cms.string('RecoParams'),
0266 #             file = cms.FileInPath('CondTools/Hcal/test/testdata/RecoParams2011-run153943.txt')
0267 #         ), 
0268 #         cms.PSet(
0269 #             object = cms.string('LongRecoParams'),
0270 #             file = cms.FileInPath('CondTools/Hcal/test/testdata/LongRecoParams2011-run153943.txt')
0271 #         ), 
0272 #         cms.PSet(
0273 #             object = cms.string('MCParams'),
0274 #             file = cms.FileInPath('CondTools/Hcal/test/testdata/MCParams.txt')
0275 #         ) ,
0276 #         cms.PSet(
0277 #             object = cms.string('FlagHFDigiTimeParams'),
0278 #             file = cms.FileInPath('CondTools/Hcal/test/testdata/HcalFlagHFDigiTimeParams.txt')
0279 #         ) ,
0280 #         )
0281 # )
0282 
0283 process.maxEvents = cms.untracked.PSet(
0284     input = cms.untracked.int32(1)
0285 )
0286 process.p = cms.Path(process.prod)
0287 
0288