Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:38

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # XXX_SKIPEVENT_XXX
0004 
0005 #string timetype = "timestamp"    
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("MERGE")
0010 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0011 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0012 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017     timetype   = cms.string('runnumber'),
0018     interval   = cms.uint64(1),
0019     firstValue = cms.uint64(110219),
0020     lastValue  = cms.uint64(111129)
0021 )
0022 
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(1)
0025 )
0026 
0027 process.MessageLogger = cms.Service("MessageLogger",
0028     cerr = cms.untracked.PSet(
0029         enable = cms.untracked.bool(False)
0030     ),
0031     cout = cms.untracked.PSet(
0032         enable = cms.untracked.bool(True),
0033         threshold = cms.untracked.string('ERROR')
0034     )
0035 )
0036 
0037 # Conditions (Global Tag is used here):
0038 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0039 process.GlobalTag.globaltag = "GR09_31X_V6P::All"
0040 process.prefer("GlobalTag")
0041 
0042 process.SiStripCalib = cms.EDFilter("SiStripGainFromCalibTree",
0043     OutputGains         = cms.string('XXX_LOCALPATH_XXX/Gains_ASCI.txt'),
0044 
0045     minTrackMomentum    = cms.untracked.double(1),
0046     minNrEntries        = cms.untracked.double(10),
0047     maxChi2OverNDF      = cms.untracked.double(9999999.0),
0048     maxMPVError         = cms.untracked.double(25.0),
0049     maxNrStrips         = cms.untracked.uint32(8),
0050 
0051     Validation          = cms.untracked.bool(False),
0052     OldGainRemoving     = cms.untracked.bool(False),
0053     FirstSetOfConstants = cms.untracked.bool(True),
0054 
0055     CalibrationLevel    = cms.untracked.int32(2), # 0==APV, 1==Laser, 2==module
0056 
0057     InputFiles          = cms.vstring(
0058         "rfio:/castor/cern.ch/user/k/kaschube/calibration/calibTree_run123592.root",
0059         "rfio:/castor/cern.ch/user/k/kaschube/calibration/calibTree_run123596.root",
0060         "rfio:/castor/cern.ch/user/k/kaschube/calibration/calibTree_run123615.root",
0061         "rfio:/castor/cern.ch/user/k/kaschube/calibration/calibTree_run123732.root"
0062     ),
0063 
0064 
0065     SinceAppendMode     = cms.bool(True),
0066     IOVMode             = cms.string('Job'),
0067     Record              = cms.string('SiStripApvGainRcd'),
0068     doStoreOnDB         = cms.bool(True)
0069 )
0070 
0071 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0072     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0073     DBParameters = cms.PSet(
0074         messageLevel = cms.untracked.int32(2),
0075         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0076     ),
0077     timetype = cms.untracked.string('runnumber'),
0078     connect = cms.string('sqlite_file:XXX_LOCALPATH_XXX/Gains_Sqlite.db'),
0079     toPut = cms.VPSet(cms.PSet(
0080         record = cms.string('SiStripApvGainRcd'),
0081         tag = cms.string('SST_Gain_CRAFT09_Deco')
0082     ))
0083 )
0084 
0085 #process.load("DQM.SiStripMonitorClient.SiStripDQMOnline_cff")
0086 
0087 process.TFileService = cms.Service("TFileService",
0088         fileName = cms.string('XXX_LOCALPATH_XXX/Gains_Tree.root')  
0089 )
0090 
0091 #process.p = cms.Path(process.SiStripCalib*process.dqmSaver)
0092 process.p = cms.Path(process.SiStripCalib)
0093