Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-06 06:06:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1DTTrigPhase2Prod")
0004 
0005 process.load('Configuration.Geometry.GeometryExtendedRun4D49Reco_cff')
0006 process.load('Configuration.Geometry.GeometryExtendedRun4D49_cff')
0007 
0008 process.load("L1Trigger.DTTriggerPhase2.dtTriggerPhase2PrimitiveDigis_cfi")
0009 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0010 # process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 
0013 from Configuration.AlCa.GlobalTag import GlobalTag
0014 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0015 
0016 # process.GlobalTag.globaltag = "80X_dataRun2_2016SeptRepro_v7"
0017 # process.GlobalTag.globaltag = "106X_upgrade2023_realistic_v3"
0018 
0019 process.load("L1Trigger.DTTriggerPhase2.CalibratedDigis_cfi")
0020 process.load("L1Trigger.DTTriggerPhase2.dtTriggerPhase2PrimitiveDigis_cfi")
0021 
0022 process.dtTriggerPhase2PrimitiveDigis.dump = True
0023 process.dtTriggerPhase2PrimitiveDigis.debug = True
0024 # process.dtTriggerPhase2PrimitiveDigis.chi2Th = cms.double(0.16)
0025 
0026 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0027 #
0028 #process.MessageLogger = cms.Service("MessageLogger",
0029 #                                    destinations = cms.untracked.vstring("detailedInfo"),
0030 #                                    detailedInfo = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"),
0031 #                                                                      default = cms.untracked.PSet(limit = cms.untracked.int32(-1)),
0032 #                                                                      extension = cms.untracked.string(".txt")),
0033 #                                    debugModules = cms.untracked.vstring("dtTriggerPhase2BayesPrimitiveDigis","DTTrigPhase2Prod"),
0034 #                                )
0035 
0036 #scenario
0037 process.dtTriggerPhase2PrimitiveDigis.scenario = 0 #0 is mc, 1 is data, 2 is slice test
0038 process.CalibratedDigis.dtDigiTag = "simMuonDTDigis"
0039 process.CalibratedDigis.scenario = 0
0040 
0041 # Bayes
0042 process.dtTriggerPhase2BayesPrimitiveDigis = process.dtTriggerPhase2PrimitiveDigis.clone()
0043 process.dtTriggerPhase2BayesPrimitiveDigis.algo = 1 ## bayes grouping
0044 
0045 process.dtTriggerPhase2BayesPrimitiveDigis.minHits4Fit = 3
0046 process.dtTriggerPhase2BayesPrimitiveDigis.df_extended = 2
0047 process.dtTriggerPhase2BayesPrimitiveDigis.PseudoBayesPattern.minNLayerHits = 3
0048 process.dtTriggerPhase2BayesPrimitiveDigis.PseudoBayesPattern.minSingleSLHitsMax = 3 
0049 process.dtTriggerPhase2BayesPrimitiveDigis.PseudoBayesPattern.minSingleSLHitsMin = 0 
0050 process.dtTriggerPhase2BayesPrimitiveDigis.PseudoBayesPattern.allowedVariance = 1
0051 #process.dtTriggerPhase2BayesPrimitiveDigis.timeTolerance = cms.int32(999999)
0052 
0053 
0054 # STD
0055 process.dtTriggerPhase2StdPrimitiveDigis   = process.dtTriggerPhase2PrimitiveDigis.clone()
0056 process.dtTriggerPhase2StdPrimitiveDigis.algo = 0 ## initial grouping
0057 process.dtTriggerPhase2StdPrimitiveDigis.df_extended = 2
0058 
0059 process.source = cms.Source("PoolSource",
0060                             fileNames = cms.untracked.vstring(
0061                                 'file:////eos/cms/store/user/folguera/P2L1TUpgrade/Mu_FlatPt2to100-pythia8-gun_file.root',
0062                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/941C1EA3-141B-6841-AE07-8E5D3ED57461.root',
0063                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/A37FFE18-21EF-5648-AFC8-56BF9CA76B58.root',
0064                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/86F62E38-D278-2841-8BB4-B25FCD44BFF7.root',
0065                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/7CA99B54-AA55-5047-8FCB-8E85DA5B85CE.root',
0066                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/763C6CDF-FF14-A745-AB9E-2A56819BEC78.root',
0067                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/2E88F5EC-8039-4A4D-A48E-A29E2A8C41E7.root',
0068                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/FFB599F9-D497-6943-9287-58E740519498.root',
0069                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/51EFC25B-E0FB-9B4B-B85C-EE4C5CE9C378.root',
0070                                 # '/store/mc/PhaseIITDRSpring19DR/Mu_FlatPt2to100-pythia8-gun/GEN-SIM-DIGI-RAW/PU200_106X_upgrade2023_realistic_v3-v2/70000/F98EB821-7883-F34C-93AD-2CA3E790BC94.root',
0071 
0072 )
0073                         )
0074 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0075 
0076 
0077 ####################### SliceTest specials ##############################
0078 
0079 
0080 
0081 process.out = cms.OutputModule("PoolOutputModule",
0082                                outputCommands = cms.untracked.vstring(
0083                                    'drop *',
0084                                    'keep *_CalibratedDigis_*_*',
0085                                    'keep *_dtTriggerPhase2BayesPrimitiveDigis_*_*',
0086                                    'keep *_dtTriggerPhase2StdPrimitiveDigis_*_*',
0087                                    'keep *_genParticles_*_*',
0088                                ),
0089                                fileName = cms.untracked.string('DTTriggerPhase2Primitives.root')
0090 )
0091 
0092 process.p = cms.Path(process.CalibratedDigis *
0093                      process.dtTriggerPhase2BayesPrimitiveDigis *
0094                      process.dtTriggerPhase2StdPrimitiveDigis
0095 )
0096 process.this_is_the_end = cms.EndPath(process.out)