Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:48:23

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    timetype = cms.string('runnumber'),
0038     connect = cms.string('sqlite_fle:CastorSaturationCorrs.db'),
0039 authenticationMethod = cms.untracked.uint32(0),
0040    toGet = cms.VPSet(
0041        #cms.PSet(
0042 #           record = cms.string('CastorPedestalsRcd'),
0043 #           tag = cms.string('castor_pedestals_v1.0_test')
0044 #           ),
0045 #       cms.PSet(
0046 #           record = cms.string('CastorPedestalWidthsRcd'),
0047 #           tag = cms.string('castor_widths_v1.0_test')
0048 #           ),
0049 #       cms.PSet(
0050 #           record = cms.string('CastorGainsRcd'),
0051 #           tag = cms.string('castor_gains_v1.0_test')
0052 #           ),
0053 #       cms.PSet(
0054 #           record = cms.string('CastorGainWidthsRcd'),
0055 #           tag = cms.string('castor_gainwidths_v1.0_test')
0056 #           ),
0057 #       cms.PSet(
0058 #           record = cms.string('CastorQIEDataRcd'),
0059 #           tag = cms.string('castor_qie_v1.0_test')
0060 #           ),
0061 #       cms.PSet(
0062 #           record = cms.string('CastorChannelQualityRcd'),
0063 #           tag = cms.string('castor_channelstatus_v1.0_test')
0064 #           ),
0065 #       cms.PSet(
0066 #           record = cms.string('CastorElectronicsMapRcd'),
0067 #           tag = cms.string('castor_emap_v1.0_test')
0068 #           ),
0069 #       cms.PSet(
0070 #           record = cms.string('CastorRecoParamsRcd'),
0071 #           tag = cms.string('castor_recoparams_v1.00_test')
0072 #           ),
0073        cms.PSet(
0074            record = cms.string('CastorSaturationCorrsRcd'),
0075            tag = cms.string('CastorSaturationCorrs_v1.00_offline')
0076            )
0077    )
0078 )
0079 
0080 
0081 
0082 #process.es_pool = cms.ESSource(
0083 #   "PoolDBESSource",
0084 #   process.CondDBSetup,
0085 #   timetype = cms.string('runnumber'),
0086 #   connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_HCAL'),
0087 #   authenticationMethod = cms.untracked.uint32(0),
0088 #   toGet = cms.VPSet(
0089 #       cms.PSet(
0090 #           record = cms.string('CastorPedestalsRcd'),
0091 #           tag = cms.string('castor_pedestals_v1.0_mc')
0092 #           ),
0093 #       cms.PSet(
0094 #           record = cms.string('CastorPedestalWidthsRcd'),
0095 #           tag = cms.string('castor_pedestalwidths_v1.0_mc')
0096 #           ),
0097 #       cms.PSet(
0098 #           record = cms.string('CastorGainsRcd'),
0099 #           tag = cms.string('castor_gains_v1.0_mc')
0100 #           ),
0101 #       cms.PSet(
0102 #           record = cms.string('CastorGainWidthsRcd'),
0103 #           tag = cms.string('castor_gainwidths_v1.0_mc')
0104 #           ),
0105 #       cms.PSet(
0106 #           record = cms.string('CastorQIEDataRcd'),
0107 #           tag = cms.string('castor_qie_v1.0')
0108 #           ),
0109 #       cms.PSet(
0110 #           record = cms.string('CastorChannelQualityRcd'),
0111 #           tag = cms.string('castor_channelquality_v1.0')
0112 #           ),
0113 #       cms.PSet(
0114 #           record = cms.string('CastorElectronicsMapRcd'),
0115 #           tag = cms.string('castor_emap_dcc_v1.0')
0116 #           ),
0117 #       cms.PSet(
0118 #           record = cms.string('CastorRecoParamsRcd'),
0119 #           tag = cms.string('castor_recoparams_v1.00_test')
0120 #           ),
0121 #       cms.PSet(
0122 #           record = cms.string('CastorSaturationCorrsRcd'),
0123 #           tag = cms.string('castor_saturationcorrs_v1.00_test')
0124 #           )
0125 #   )
0126 #)
0127 
0128 
0129 process.maxEvents = cms.untracked.PSet(
0130     input = cms.untracked.int32(1)
0131 )
0132 process.p = cms.Path(process.prod)
0133 
0134 
0135