Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 from Configuration.Eras.Era_Phase2_cff import Phase2
0005 process = cms.Process('MuonClassif',Phase2)
0006 
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('SimGeneral.MixingModule.mix_POISSON_average_cfi')
0010 
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0013 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0014 
0015 process.source = cms.Source("PoolSource",
0016  fileNames = cms.untracked.vstring(
0017 '/store/relval/CMSSW_9_1_1/RelValZMM_14/GEN-SIM-RECO/PU25ns_91X_upgrade2023_realistic_v1_D17PU200-v1/10000/003FC7CB-EB3F-E711-92D1-0025905A6076.root'
0018  ),
0019  secondaryFileNames = cms.untracked.vstring(
0020  )
0021 )
0022 
0023 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(5) )    
0024 
0025 process.load('Configuration.Geometry.GeometryExtended2023D17Reco_cff')
0026 process.load('Configuration.StandardSequences.MagneticField_cff')
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 process.load("Configuration.StandardSequences.Reconstruction_cff")
0029 
0030 from Configuration.AlCa.GlobalTag import GlobalTag
0031 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0032 
0033 ## ==== PAT used to parse the muon selection
0034 process.load("MuonAnalysis.MuonAssociators.patMuonsWithTrigger_cff")
0035 from MuonAnalysis.MuonAssociators.patMuonsWithTrigger_cff import *
0036 
0037 ## ==== Classification by Hits
0038 process.load("MuonAnalysis.MuonAssociators.muonClassificationByHitsTP_cfi")
0039 #
0040 from MuonAnalysis.MuonAssociators.muonClassificationByHitsTP_cfi import addUserData as addClassByHits
0041 addClassByHits(process.patMuonsWithoutTrigger, extraInfo=True)
0042 
0043 # test output
0044 process.output = cms.OutputModule("PoolOutputModule",
0045     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0046     fileName = cms.untracked.string('output_test.root'),
0047     splitLevel = cms.untracked.int32(0)
0048 )
0049 
0050 process.muonClassifier = cms.Path(process.muonClassificationByHits)
0051 
0052 process.output_step = cms.EndPath(process.output)
0053 
0054 process.schedule = cms.Schedule(process.muonClassifier)
0055 
0056 
0057 # customisation of the process.
0058 
0059 # Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
0060 from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 
0061 
0062 #call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
0063 process = setCrossingFrameOn(process)
0064 
0065 ######
0066 
0067 process.MessageLogger.cerr = cms.untracked.PSet(
0068     noTimeStamps = cms.untracked.bool(True),
0069 
0070     threshold = cms.untracked.string('WARNING'),
0071 
0072     MuonToTrackingParticleAssociatorEDProducer = cms.untracked.PSet(
0073         limit = cms.untracked.int32(0)
0074     ),
0075     MuonToTrackingParticleAssociatorByHits = cms.untracked.PSet(
0076         limit = cms.untracked.int32(0)
0077     ),
0078     MuonToTrackingParticleAssociatorByHitsImpl = cms.untracked.PSet(
0079         limit = cms.untracked.int32(0)
0080     ),
0081     MuonAssociatorByHitsHelper = cms.untracked.PSet(
0082         limit = cms.untracked.int32(0)
0083     ),
0084     TrackerMuonHitExtractor = cms.untracked.PSet(
0085         limit = cms.untracked.int32(0)
0086     )
0087 )
0088 
0089 process.MessageLogger.cout = cms.untracked.PSet(
0090     enable = cms.untracked.bool(True),
0091     noTimeStamps = cms.untracked.bool(True),
0092     threshold = cms.untracked.string('INFO'),
0093 
0094     default = cms.untracked.PSet(
0095         limit = cms.untracked.int32(0)
0096     ),
0097     MuonToTrackingParticleAssociatorEDProducer = cms.untracked.PSet(
0098         limit = cms.untracked.int32(10000000)
0099     ),
0100     MuonToTrackingParticleAssociatorByHits = cms.untracked.PSet(
0101         limit = cms.untracked.int32(10000000)
0102     ),
0103     MuonToTrackingParticleAssociatorByHitsImpl = cms.untracked.PSet(
0104         limit = cms.untracked.int32(10000000)
0105     ),
0106     MuonAssociatorByHitsHelper = cms.untracked.PSet(
0107         limit = cms.untracked.int32(10000000)
0108     ),
0109     TrackerMuonHitExtractor = cms.untracked.PSet(
0110         limit = cms.untracked.int32(0)
0111     ),
0112     MuonMCClassifier = cms.untracked.PSet(
0113         limit = cms.untracked.int32(10000000)
0114     ),
0115     FwkReport = cms.untracked.PSet(
0116         reportEvery = cms.untracked.int32(1),
0117         limit = cms.untracked.int32(10000000)
0118     ),
0119     FwkSummary = cms.untracked.PSet(
0120         reportEvery = cms.untracked.int32(1),
0121         limit = cms.untracked.int32(10000000)
0122     ),
0123     FwkJob = cms.untracked.PSet(
0124         limit = cms.untracked.int32(0)
0125     ),
0126     Root_NoDictionary = cms.untracked.PSet(
0127         limit = cms.untracked.int32(0)
0128     )
0129 )