Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CazziMiei")
0004 
0005 ## General CMS
0006 process.load("Configuration.StandardSequences.FakeConditions_cff")
0007 # process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0008 # process.GlobalTag.connect = cms.string('frontier://FrontierProd/CMS_COND_21X_DT')
0009 # process.GlobalTag.globaltag = "CRUZET4_V3P::All"
0010 process.load("Configuration.StandardSequences.MagneticField_cff")
0011 
0012 # Geometry related
0013 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff")
0014 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0015 process.load("Geometry.CSCGeometry.cscGeometry_cfi")
0016 process.load("Geometry.DTGeometryBuilder.idealForDigiDtGeometry_cff")
0017 
0018 ## DT unpacker
0019 process.load("EventFilter.DTRawToDigi.DTFrontierCabling_cfi")
0020 process.load("EventFilter.DTRawToDigi.dtunpacker_cfi")
0021 
0022 process.load("CalibMuon.Configuration.DT_FakeConditions_cff")
0023 
0024 ## DT local Reco
0025 # process.load("RecoLocalMuon.Configuration.RecoLocalMuon_cff")
0026 process.load("RecoLocalMuon.DTRecHit.dt1DRecHits_ParamDrift_cfi")
0027 #process.dt1DRecHits.recAlgoConfig.tTrigModeConfig.kFactor = cms.double(-2.5)
0028 process.load("RecoLocalMuon.DTSegment.dt2DSegments_CombPatternReco2D_ParamDrift_cfi")
0029 process.load("RecoLocalMuon.DTSegment.dt4DSegments_CombPatternReco4D_ParamDrift_cfi")
0030 process.dt4DSegments.recHits2DLabel= cms.InputTag("dt2DExtendedSegments")
0031 
0032 # # only for debuging purpose and for specific studies
0033 # process.dtlocalreco = cms.Sequence(
0034 #     process.dt1DRecHits
0035 #     * process.dt4DSegments
0036 #     )
0037 
0038 process.dt1DClusters = cms.EDFilter("DTClusterer",
0039     debug = cms.untracked.bool(False),
0040     minLayers = cms.uint32(3),
0041     minHits = cms.uint32(3),
0042     recHits1DLabel = cms.InputTag("dt1DRecHits")
0043 )
0044 
0045 from RecoLocalMuon.DTSegment.DTCombinatorialPatternReco2DAlgo_LinearDriftFromDB_cfi import *
0046 process.dt2DExtendedSegments = cms.EDProducer("DTRecSegment2DExtendedProducer",
0047     DTCombinatorialPatternReco2DAlgo_LinearDriftFromDB,
0048     #process.DTCombinatorialPatternReco2DAlgo_LinearDriftFromDB,
0049     debug = cms.untracked.bool(False),
0050     recClusLabel = cms.InputTag("dt1DClusters"),
0051     recHits1DLabel = cms.InputTag("dt1DRecHits")
0052 )
0053 
0054 # DT sequence with the 2D segment reconstruction
0055 process.dtlocalreco_with_2DExtendedSegments = cms.Sequence(
0056     process.dt1DRecHits
0057     * process.dt1DClusters
0058     * process.dt2DExtendedSegments
0059     * process.dt4DSegments
0060     )
0061 
0062 # # DT sequence with the 2D segment reconstruction
0063 # process.dtlocalreco_with_2DSegments = cms.Sequence(
0064 #     process.dt1DRecHits
0065 #     * process.dt2DSegments
0066 #     * process.dt4DSegments
0067 #     )
0068 
0069 # STA reco
0070 process.load("RecoMuon.MuonSeedGenerator.standAloneMuonSeeds_cff")
0071 process.MuonSeed.EnableCSCMeasurement = cms.bool(False)
0072 process.load("RecoMuon.StandAloneMuonProducer.standAloneMuons_cff")
0073 process.standAloneMuons.STATrajBuilderParameters.FilterParameters.EnableCSCMeasurement = cms.bool(False)
0074 process.standAloneMuons.STATrajBuilderParameters.FilterParameters.EnableRPCMeasurement = cms.bool(False)
0075 process.standAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableCSCMeasurement = cms.bool(False)
0076 process.standAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableRPCMeasurement = cms.bool(False)
0077 
0078 #replace cosmicMuons.TrajectoryBuilderParameters.BackwardMuonTrajectoryUpdatorParameters.Granularity= 2
0079 #process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagator_cfi")
0080 
0081 # ===================================================
0082 #  7) configuration of your analyzer
0083 # ===================================================
0084 process.load("RecoLocalMuon.DTSegment.DTFilter_cfi")
0085 
0086 # Hits and Segs ##
0087 process.load("RecoLocalMuon.DTSegment.DTAnalyzerDetailed_cfi")
0088 process.DTAnalyzerDetailed.recHits2DLabel = cms.string('dt2DExtendedSegments')
0089 
0090 # Segs ##
0091 process.load("RecoLocalMuon.DTSegment.DTSegAnalyzer_cfi")
0092 process.DTSegAnalyzer.recHits2DLabel = cms.string('dt2DExtendedSegments')
0093 
0094 # Clusters ##     
0095 process.load("RecoLocalMuon.DTSegment.DTClusAnalyzer_cfi")
0096 process.DTClusAnalyzer.recHits2DLabel = cms.string('dt2DExtendedSegments')
0097 
0098 # StandAlone ##
0099 process.load("RecoLocalMuon.DTSegment.STAnalyzer_cfi")
0100 process.STAnalyzer.SALabel = cms.string('standAloneMuons')
0101 process.STAnalyzer.recHits2DLabel = cms.string('dt2DExtendedSegments')
0102 # # process.STAnalyzer.debug = cms.untracked.bool(True)
0103 
0104 # Segs Eff ##
0105 process.load("RecoLocalMuon.DTSegment.DTEffAnalyzer_cfi")
0106 
0107 # Validation RecHits
0108 process.load("Validation.DTRecHits.test.DTRecHitQuality_cfi")
0109 process.rechivalidation.segment2DLabel = cms.untracked.string('dt2DExtendedSegments')
0110 process.seg2dvalidation.segment2DLabel = cms.untracked.string('dt2DExtendedSegments')
0111 #process.seg2dvalidation.debug = cms.untracked.bool(True)
0112 
0113 process.maxEvents = cms.untracked.PSet(
0114         input = cms.untracked.int32(10000)
0115         )
0116 
0117 process.options = cms.untracked.PSet(
0118     #FailPath = cms.untracked.vstring('ProductNotFound'),
0119     makeTriggerResults = cms.untracked.bool(True),
0120     wantSummary = cms.untracked.bool(True)
0121 )
0122 
0123 process.MessageLogger = cms.Service("MessageLogger",
0124     cout = cms.untracked.PSet(
0125         threshold = cms.untracked.string('WARNING')
0126     ),
0127     destinations = cms.untracked.vstring('cout')
0128 )
0129 
0130 process.source = cms.Source("PoolSource",
0131 fileNames = cms.untracked.vstring( 
0132 ### SingleMuon Pt1000
0133 # '/store/relval/CMSSW_2_1_9/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/162D72AC-B185-DD11-9D6E-000423D6AF24.root',
0134 # '/store/relval/CMSSW_2_1_9/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/46E3E527-AF85-DD11-97BC-000423D98EC4.root',
0135 # '/store/relval/CMSSW_2_1_9/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/C6D7FAEB-AC85-DD11-8F06-001617E30D40.root',
0136 # '/store/relval/CMSSW_2_1_9/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0001/4AC212E4-0487-DD11-9A6D-000423D94A04.root'
0137 
0138 ### SingleMuon Pt100
0139      # '/store/relval/CMSSW_2_1_9/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/BA6DA407-A985-DD11-A0D8-000423D9A2AE.root',
0140      #   '/store/relval/CMSSW_2_1_9/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0000/CAADA54A-AB85-DD11-95D6-000423D98F98.root',
0141      #   '/store/relval/CMSSW_2_1_9/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_v2/0001/52BAB7DF-0487-DD11-95A3-000423D9989E.root'
0142 
0143 
0144 
0145 ### SingleMuon Pt10
0146         '/store/relval/CMSSW_2_1_8/RelValSingleMuPt10/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_t_v3/0000/4E575B6D-5A85-DD11-9566-000423D6B48C.root',
0147         '/store/relval/CMSSW_2_1_8/RelValSingleMuPt10/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_t_v3/0000/9463B994-5A85-DD11-8DC8-000423D6C8EE.root',
0148         '/store/relval/CMSSW_2_1_8/RelValSingleMuPt10/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_V9_t_v3/0000/E2706C9C-5D85-DD11-9F36-000423D6B42C.root'
0149         )
0150 
0151 )
0152 
0153 process.muonReco = cms.Sequence(
0154         process.MuonSeed *
0155         process.standAloneMuons 
0156         )
0157 
0158 process.muonLocalReco = cms.Sequence(
0159         # process.dtlocalreco_with_2DSegments
0160         process.dtlocalreco_with_2DExtendedSegments
0161         )
0162 
0163 process.ana = cms.Sequence(
0164         process.DTAnalyzerDetailed
0165         + process.DTSegAnalyzer
0166         + process.DTClusAnalyzer
0167         + process.DTEffAnalyzer
0168         + process.dtLocalRecoValidation
0169         #+ process.STAnalyzer
0170         # process.DTSegAnalyzer +
0171         # process.DTEffAnalyzer +
0172         )
0173 
0174 process.p = cms.Path(
0175 #        process.DTFilter * (
0176 #            process.muonDTDigis *
0177             process.muonLocalReco *
0178          #   process.muonReco *
0179             process.ana
0180             # )
0181         )
0182