Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-15 02:55:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HitEff")
0004 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0005 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0006 
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')  
0009 
0010 process.source = cms.Source("EmptyIOVSource",
0011     firstValue = cms.uint64(newrun),
0012     lastValue = cms.uint64(newrun),
0013     timetype = cms.string('runnumber'),
0014     interval = cms.uint64(1)
0015 )
0016 
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1))
0018 
0019 process.SiStripHitEff = cms.EDAnalyzer("SiStripHitEffFromCalibTree",
0020     CalibTreeFilenames = cms.untracked.vstring('root://cms-xrd-global.cern.ch//newfilelocation'),
0021     Threshold         = cms.double(0.2),
0022     nModsMin          = cms.int32(25),
0023     doSummary         = cms.int32(0),
0024     #ResXSig           = cms.untracked.double(5),
0025     SinceAppendMode   = cms.bool(True),
0026     IOVMode           = cms.string('Run'),
0027     Record            = cms.string('SiStripBadStrip'),
0028     doStoreOnDB       = cms.bool(True),
0029     BadModulesFile    = cms.untracked.string("BadModules_input.txt"),   # default "" no input
0030     AutoIneffModTagging = cms.untracked.bool(True),   # default true, automatic limit for each layer to identify inefficient modules
0031     ClusterMatchingMethod  = cms.untracked.int32(4),     # default 0  case0,1,2,3,4
0032     ClusterTrajDist   = cms.untracked.double(64),   # default 64
0033     StripsApvEdge     = cms.untracked.double(10),   # default 10  
0034     UseOnlyHighPurityTracks = cms.untracked.bool(True), # default True
0035     SpaceBetweenTrains = cms.untracked.int32(25),   # default 25
0036     UseCommonMode     = cms.untracked.bool(False),  # default False
0037     ShowEndcapSides   = cms.untracked.bool(True),  # default True
0038     ShowRings         = cms.untracked.bool(True),  # default False
0039     ShowTOB6TEC9      = cms.untracked.bool(False),  # default False
0040     ShowOnlyGoodModules = cms.untracked.bool(False),  # default False
0041     TkMapMin          = cms.untracked.double(0.95), # default 0.90
0042     EffPlotMin        = cms.untracked.double(0.90), # default 0.90
0043     Title             = cms.string(' Hit Efficiency ')
0044 )
0045 
0046 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0047     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0048     DBParameters = cms.PSet(
0049         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0050     ),
0051     timetype = cms.untracked.string('runnumber'),
0052     connect = cms.string('sqlite_file:dbfile.db'),
0053     toPut = cms.VPSet(cms.PSet(
0054         record = cms.string('SiStripBadStrip'),
0055         tag = cms.string('SiStripHitEffBadModules')
0056     ))
0057 )
0058 
0059 process.TFileService = cms.Service("TFileService",
0060         fileName = cms.string('SiStripHitEffHistos_runnewrun.root')  
0061 )
0062 
0063 process.allPath = cms.Path(process.SiStripHitEff)
0064