Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:13

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("OverlapProblemALCAZmumu")
0005 
0006 #prepare options
0007 
0008 options = VarParsing.VarParsing("analysis")
0009 
0010 options.register('globalTag',
0011                  "DONOTEXIST",
0012                  VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0013                  VarParsing.VarParsing.varType.string,          # string, int, or float
0014                  "GlobalTag")
0015 #options.globalTag = "DONOTEXIST::All"
0016 
0017 options.parseArguments()
0018 
0019 #
0020 process.load("DPGAnalysis.SiStripTools.processOptions_cff")
0021 process.load("DPGAnalysis.SiStripTools.MessageLogger_cff")
0022 
0023 process.MessageLogger.cout.threshold = cms.untracked.string("WARNING")
0024 #process.MessageLogger.debugModules = cms.untracked.vstring("overlapproblemanalyzer")
0025 
0026 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0027 
0028 process.source = cms.Source("PoolSource",
0029                             fileNames = cms.untracked.vstring(options.inputFiles),
0030                             #                    skipBadFiles = cms.untracked.bool(True),
0031                             inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0032                             )
0033 
0034 process.load("Configuration.StandardSequences.MagneticField_cff")
0035 #process.load("Configuration.StandardSequences.GeometryDB_cff")
0036 process.load("Configuration.Geometry.GeometryExtended2017Reco_cff")
0037 #process.load("Configuration.Geometry.GeometryExtendedPhaseIPixelReco_cff")
0038 #process.load("Configuration.Geometry.GeometryExtendedPhaseIPixel_cff")
0039 process.load("SimTracker.TrackAssociatorProducers.trackAssociatorByHits_cfi")
0040 
0041 
0042 process.load("DPGAnalysis.SiStripTools.tkAlTrackRefitSequence_cff")
0043 process.refittedTracks.src = cms.InputTag("generalTracks")
0044 process.refittedTracks.TTRHBuilder = cms.string('WithTrackAngle')
0045 
0046 process.load('SLHCUpgradeSimulations.Geometry.fakeConditions_Phase1_R30F12_cff')
0047 
0048 #process.KFFittingSmootherWithOutliersRejectionAndRK.LogPixelProbabilityCut = cms.double(-16.0)
0049 
0050 process.PixelCPEGenericESProducer = cms.ESProducer("PixelCPEGenericESProducer",
0051                                                    EdgeClusterErrorX = cms.double(50.0),
0052                                                    DoCosmics = cms.bool(False),
0053                                                    LoadTemplatesFromDB = cms.bool(False),
0054                                                    UseErrorsFromTemplates = cms.bool(False),
0055                                                    eff_charge_cut_highX = cms.double(1.0),
0056                                                    TruncatePixelCharge = cms.bool(False),
0057                                                    size_cutY = cms.double(3.0),
0058                                                    size_cutX = cms.double(3.0),
0059                                                    inflate_all_errors_no_trk_angle = cms.bool(False),
0060                                                    IrradiationBiasCorrection = cms.bool(False),
0061                                                    TanLorentzAnglePerTesla = cms.double(0.106),
0062                                                    inflate_errors = cms.bool(False),
0063                                                    eff_charge_cut_lowX = cms.double(0.0),
0064                                                    eff_charge_cut_highY = cms.double(1.0),
0065                                                    ClusterProbComputationFlag = cms.int32(0),
0066                                                    EdgeClusterErrorY = cms.double(85.0),
0067                                                    ComponentName = cms.string('PixelCPEGeneric'),
0068                                                    eff_charge_cut_lowY = cms.double(0.0),
0069                                                    PixelErrorParametrization = cms.string('NOTcmsim'),
0070                                                    Alpha2Order = cms.bool(True),
0071                                                    Upgrade = cms.bool(True)
0072                                                    )
0073 
0074 #process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
0075 
0076 process.load("DPGAnalysis.SiStripTools.overlapproblemtsosanalyzer_cfi")
0077 process.overlapproblemtsoshitfiltered = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("HitFilteredTracks"))
0078 process.overlapproblemtsosats = process.overlapproblemtsosanalyzer.clone(trajTrackAssoCollection = cms.InputTag("refittedATSTracks"))
0079 
0080 process.overlapproblemtsosall = process.overlapproblemtsosanalyzer.clone(onlyValidRecHit = cms.bool(False))
0081 process.overlapproblemtsoshitfilteredall = process.overlapproblemtsoshitfiltered.clone(onlyValidRecHit = cms.bool(False))
0082 process.overlapproblemtsosatsall = process.overlapproblemtsosats.clone(onlyValidRecHit = cms.bool(False))
0083 
0084 process.load("DPGAnalysis.SiStripTools.overlapproblemtpanalyzer_cfi")
0085 #process.load("DebugTools.RecHits.tpanalyzer_cfi")
0086 
0087 
0088 
0089 process.p0 = cms.Path( process.seqTrackRefitting
0090                        + process.trackAssociatorByHits
0091                        + process.overlapproblemtsosanalyzer # + process.overlapproblemtsoshitfiltered + process.overlapproblemtsosats
0092                        + process.overlapproblemtsosall # + process.overlapproblemtsoshitfilteredall + process.overlapproblemtsosatsall 
0093                        + process.overlapproblemtpanalyzer
0094 #                       + process.tpanalyzer
0095                        )
0096 
0097 #----GlobalTag ------------------------
0098 
0099 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0100 from Configuration.AlCa.GlobalTag import GlobalTag
0101 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0102 
0103 
0104 process.TFileService = cms.Service('TFileService',
0105                                    fileName = cms.string('OverlapProblem_tpanalyzer.root')
0106                                    )
0107 
0108 #print process.dumpPython()