Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-01 22:52:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1DTTrigProd")
0004 
0005 ### INCLUDEs 

0006 process.load("Configuration.StandardSequences.GeometryDB_cff")
0007 
0008 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff")
0009 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0010 process.DTGeometryESModule.applyAlignment = False
0011 process.load("L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff")
0012 #process.load("L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfig_cff")

0013 
0014 #from L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff import *

0015 #L1DTConfigFromDB.UseT0 = True

0016 
0017 ### GLOBAL TAG

0018 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0019 
0020 ##### MONTE CARLO RUNS - start

0021 #process.GlobalTag.globaltag = 'MC_38Y_V9'

0022 process.GlobalTag.globaltag = "START311_V1"
0023 # include CCB tags - temporary untill they are not in GlobalTag

0024 process.GlobalTag.toGet = cms.VPSet()
0025 process.GlobalTag.toGet.append(
0026  cms.PSet(
0027         record = cms.string('DTCCBConfigRcd'),
0028         tag = cms.string('DTCCBConfig_NOSingleL_V03_mc'),
0029 #        tag = cms.string('DTCCBConfig_Hanytheta_V01_mc'),

0030         connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')
0031 ))
0032 process.GlobalTag.toGet.append(
0033  cms.PSet(
0034         record = cms.string('DTKeyedConfigListRcd'),
0035         tag = cms.string('DTKeyedConfigList_V01_mc'),
0036         connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')
0037 ))
0038 process.GlobalTag.toGet.append(
0039  cms.PSet(
0040         record = cms.string('DTKeyedConfigContainerRcd'),
0041         tag = cms.string('DTKeyedConfig_NOSingleL_V03_mc'),
0042         connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')
0043 ))
0044 process.GlobalTag.toGet.append(
0045  cms.PSet(
0046         record = cms.string('DTTPGParametersRcd'),
0047         tag = cms.string('DTTPGParameters_V01_mc'),
0048         connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')
0049 ))
0050 ##### MONTE CARLO RUNS - end

0051 
0052 ##### DATA RUNS - start

0053 #process.GlobalTag.globaltag = "START38_V12"

0054 ## include CCB tags - temporary untill they are not in GlobalTag

0055 #process.GlobalTag.toGet = cms.VPSet()

0056 #process.GlobalTag.toGet.append(

0057 # cms.PSet(

0058 #        record = cms.string('DTCCBConfigRcd'),

0059 #        tag = cms.string('DTCCBConfig_V05_hlt'),

0060 #        connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')

0061 #))

0062 #process.GlobalTag.toGet.append(

0063 # cms.PSet(

0064 #        record = cms.string('DTKeyedConfigListRcd'),

0065 #        tag = cms.string('DTKeyedConfigList_V01_hlt'),

0066 #        connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')

0067 #))

0068 #process.GlobalTag.toGet.append(

0069 # cms.PSet(

0070 #        record = cms.string('DTKeyedConfigContainerRcd'),

0071 #        tag = cms.string('DTKeyedConfig_V01_hlt'),

0072 #        connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')

0073 #))

0074 #process.GlobalTag.toGet.append(

0075 # cms.PSet(

0076 #        record = cms.string('DTTPGParametersRcd'),

0077 #        tag = cms.string('DTTPGParameters_V01_hlt'),

0078 #        connect = cms.untracked.string('frontier://FrontierProd/CMS_COND_31X_DT')

0079 #))

0080 ##### DATA RUNS - end

0081 
0082 
0083 ### INPUT SOURCE

0084 ## 110112 SV for testing, loads an empty source and gives run number ONLY

0085 #process.source = cms.Source("EmptySource",

0086 #    numberEventsInRun = cms.untracked.uint32(1),

0087 #    firstRun = cms.untracked.uint32(148300)

0088 #    firstRun = cms.untracked.uint32(148380)

0089 #)

0090 
0091 # MC source

0092 process.source = cms.Source("PoolSource",
0093     fileNames = cms.untracked.vstring('file:/tmp/svanini/FCAE17F3-E9BF-DF11-9994-001731EF61B4.root')
0094 )
0095 
0096 # data source

0097 #...

0098 
0099 process.maxEvents = cms.untracked.PSet(
0100     input = cms.untracked.int32(10000)
0101 )
0102 
0103 ### PRODUCER

0104 process.dtTriggerPrimitiveDigis = cms.EDProducer("DTTrigProd",
0105     debug = cms.untracked.bool(False),
0106 # mu digi tag for data 

0107 #    digiTag = cms.InputTag("hltMuonDTDigis"),

0108 # mu digi tag for MC 

0109     digiTag = cms.InputTag('simMuonDTDigis'),
0110     DTTFSectorNumbering = cms.bool(True),
0111     lutBtic = cms.untracked.int32(31),
0112     lutDumpFlag = cms.untracked.bool(False)
0113 )
0114 
0115 ### configuration tester 

0116 process.dtDTPTester = cms.EDAnalyzer("DTConfigTester",
0117     wheel = cms.untracked.int32(0),
0118     sector = cms.untracked.int32(3),
0119     station = cms.untracked.int32(4),
0120     traco = cms.untracked.int32(1),
0121     bti = cms.untracked.int32(10)
0122 )  
0123 
0124 ### OUTPUT

0125 process.out = cms.OutputModule("PoolOutputModule",
0126     outputCommands = cms.untracked.vstring('drop *', 
0127         'keep L1MuDTChambPhContainer_*_*_*', 
0128         'keep L1MuDTChambThContainer_*_*_*'),
0129     fileName = cms.untracked.string('DTTriggerPrimitives_test.root')
0130 )
0131 
0132 #process.p = cms.Path(process.dtTriggerPrimitiveDigis * process.dtDTPTester)

0133 process.p = cms.Path(process.dtTriggerPrimitiveDigis)
0134 process.this_is_the_end = cms.EndPath(process.out)