Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-30 08:50:28

0001 #!/bin/csh
0002 cmsenv
0003 
0004 if ("$4" == "test") then
0005      echo "connectstring = sqlite_file:test.db"
0006      set connectstring = sqlite_file:test.db
0007 else  if ( $#argv == 3 ) then
0008     echo "connectstring = frontier://FrontierProd/CMS_CONDITIONS"
0009     set connectstring = frontier://FrontierProd/CMS_CONDITIONS
0010 else
0011     echo "connectstring = $4"
0012     set connectstring = $4
0013 endif
0014 
0015 cat >! temp_dump_cfg.py <<%
0016 
0017 # Usage example:   
0018 # ./makeDump_Run3.csh ElectronicsMap HcalElectronicsMap_v9.0_hlt 309055 frontier://FrontierProd/CMS_CONDITIONS
0019 import FWCore.ParameterSet.Config as cms
0020 from Configuration.StandardSequences.Eras import eras
0021 process = cms.Process("DUMP",eras.Run3)
0022 
0023 process.load("Configuration.Geometry.GeometryExtended2021_cff")
0024 process.load("Configuration.Geometry.GeometryExtended2021Reco_cff")
0025   
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 process.source = cms.Source("EmptySource",
0031     numberEventsInRun = cms.untracked.uint32(1),
0032     firstRun = cms.untracked.uint32($3)
0033 )
0034 
0035 process.load("CondCore.CondDB.CondDB_cfi")
0036 process.CondDB.connect = '$connectstring'
0037 
0038 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0039         process.CondDB,
0040         toGet = cms.VPSet(cms.PSet(record = cms.string("Hcal$1Rcd"),
0041                                    tag = cms.string("$2")
0042                                   )                        
0043                          )
0044 )
0045 
0046 process.dumpcond = cms.EDAnalyzer("HcalDumpConditions",
0047                                   dump = cms.untracked.vstring("$1")
0048                                   )
0049 
0050 process.p = cms.Path(process.dumpcond)
0051 
0052 %
0053 cmsRun temp_dump_cfg.py
0054 rm temp_dump_cfg.py
0055