Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-17 02:42:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DUMP")
0004 
0005 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0006 
0007 ## specify which conditions you would like to dump to a text file in the "dump" vstring
0008 process.prod = cms.EDAnalyzer("CastorDumpConditions",
0009     dump = cms.untracked.vstring(
0010         #'Pedestals',
0011 #        'PedestalWidths', 
0012 #        'Gains', 
0013 #        'QIEData', 
0014 #        'ElectronicsMap',
0015 #        'ChannelQuality', 
0016 #        'GainWidths',
0017 #   'RecoParams',
0018     'SaturationCorrs'
0019                                  ),
0020     outFilePrefix = cms.untracked.string('DumpCastorCond')
0021 )
0022 
0023 
0024 process.source = cms.Source("EmptySource",
0025     numberEventsInRun = cms.untracked.uint32(1),
0026     firstRun = cms.untracked.uint32(1)
0027 )
0028 
0029 #process.CastorDbProducer = cms.ESProducer("CastorDbProducer")
0030 #process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0031 #process.GlobalTag.globaltag = 'GR_R_61_V2::All'
0032 
0033 
0034 process.es_pool = cms.ESSource(
0035    "PoolDBESSource",
0036    process.CondDBSetup,
0037     connect = cms.string('sqlite_fle:CastorSaturationCorrs.db'),
0038    toGet = cms.VPSet(
0039        #cms.PSet(
0040 #           record = cms.string('CastorPedestalsRcd'),
0041 #           tag = cms.string('castor_pedestals_v1.0_test')
0042 #           ),
0043 #       cms.PSet(
0044 #           record = cms.string('CastorPedestalWidthsRcd'),
0045 #           tag = cms.string('castor_widths_v1.0_test')
0046 #           ),
0047 #       cms.PSet(
0048 #           record = cms.string('CastorGainsRcd'),
0049 #           tag = cms.string('castor_gains_v1.0_test')
0050 #           ),
0051 #       cms.PSet(
0052 #           record = cms.string('CastorGainWidthsRcd'),
0053 #           tag = cms.string('castor_gainwidths_v1.0_test')
0054 #           ),
0055 #       cms.PSet(
0056 #           record = cms.string('CastorQIEDataRcd'),
0057 #           tag = cms.string('castor_qie_v1.0_test')
0058 #           ),
0059 #       cms.PSet(
0060 #           record = cms.string('CastorChannelQualityRcd'),
0061 #           tag = cms.string('castor_channelstatus_v1.0_test')
0062 #           ),
0063 #       cms.PSet(
0064 #           record = cms.string('CastorElectronicsMapRcd'),
0065 #           tag = cms.string('castor_emap_v1.0_test')
0066 #           ),
0067 #       cms.PSet(
0068 #           record = cms.string('CastorRecoParamsRcd'),
0069 #           tag = cms.string('castor_recoparams_v1.00_test')
0070 #           ),
0071        cms.PSet(
0072            record = cms.string('CastorSaturationCorrsRcd'),
0073            tag = cms.string('CastorSaturationCorrs_v1.00_offline')
0074            )
0075    )
0076 )
0077 
0078 
0079 
0080 #process.es_pool = cms.ESSource(
0081 #   "PoolDBESSource",
0082 #   process.CondDBSetup,
0083 #   timetype = cms.string('runnumber'),
0084 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_HCAL'),
0085 #   authenticationMethod = cms.untracked.uint32(0),
0086 #   toGet = cms.VPSet(
0087 #       cms.PSet(
0088 #           record = cms.string('CastorPedestalsRcd'),
0089 #           tag = cms.string('castor_pedestals_v1.0_mc')
0090 #           ),
0091 #       cms.PSet(
0092 #           record = cms.string('CastorPedestalWidthsRcd'),
0093 #           tag = cms.string('castor_pedestalwidths_v1.0_mc')
0094 #           ),
0095 #       cms.PSet(
0096 #           record = cms.string('CastorGainsRcd'),
0097 #           tag = cms.string('castor_gains_v1.0_mc')
0098 #           ),
0099 #       cms.PSet(
0100 #           record = cms.string('CastorGainWidthsRcd'),
0101 #           tag = cms.string('castor_gainwidths_v1.0_mc')
0102 #           ),
0103 #       cms.PSet(
0104 #           record = cms.string('CastorQIEDataRcd'),
0105 #           tag = cms.string('castor_qie_v1.0')
0106 #           ),
0107 #       cms.PSet(
0108 #           record = cms.string('CastorChannelQualityRcd'),
0109 #           tag = cms.string('castor_channelquality_v1.0')
0110 #           ),
0111 #       cms.PSet(
0112 #           record = cms.string('CastorElectronicsMapRcd'),
0113 #           tag = cms.string('castor_emap_dcc_v1.0')
0114 #           ),
0115 #       cms.PSet(
0116 #           record = cms.string('CastorRecoParamsRcd'),
0117 #           tag = cms.string('castor_recoparams_v1.00_test')
0118 #           ),
0119 #       cms.PSet(
0120 #           record = cms.string('CastorSaturationCorrsRcd'),
0121 #           tag = cms.string('castor_saturationcorrs_v1.00_test')
0122 #           )
0123 #   )
0124 #)
0125 
0126 
0127 process.maxEvents = cms.untracked.PSet(
0128     input = cms.untracked.int32(1)
0129 )
0130 process.p = cms.Path(process.prod)
0131 
0132 
0133