Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:14

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