Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Demo")
0004 
0005 
0006 ##
0007 ## Message Logger
0008 ##
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 # report only every 100th record
0011 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0012 
0013 
0014 ## 
0015 ## Database configuration
0016 ##
0017 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
0018 #process.load("CondCore.DBCommon.CondDBSetup_cfi")
0019 
0020 
0021 ##
0022 ## Fake Conditions (if needed)
0023 ##
0024 # For older CMSSW versions
0025 #process.load("Configuration.StandardSequences.FakeConditions_cff")
0026 # Compatible to CMSSW_3_1_1
0027 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0028 process.GlobalTag.globaltag = 'DESIGN_31X_V2::All'
0029 
0030 
0031 ##
0032 ## Geometry
0033 ##
0034 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0035 
0036 
0037 ##
0038 ## Magnetic Field
0039 ##
0040 process.load("Configuration.StandardSequences.MagneticField_cff")
0041 
0042 
0043 ##
0044 ## Load DBSetup (if needed)
0045 ##
0046 from Alignment.CommonAlignmentProducer.GlobalPosition_Frontier_DevDB_cff import *
0047 from CalibTracker.Configuration.Common.PoolDBESSource_cfi import *
0048 trackerAlignment = poolDBESSource.clone(
0049     connect = 'frontier://FrontierDev/CMS_COND_ALIGNMENT',
0050     toGet = cms.VPSet(
0051         cms.PSet(
0052             record = cms.string('TrackerAlignmentRcd'),
0053             tag = cms.string('Tracker10pbScenario210_mc')
0054         ),
0055         cms.PSet(
0056             record = cms.string('TrackerAlignmentErrorRcd'),
0057             tag = cms.string('Tracker10pbScenarioErrors210_mc')
0058         )
0059     )
0060 )
0061 from Geometry.TrackerGeometryBuilder.trackerGeometry_cfi import *
0062 
0063 es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment")
0064 
0065 
0066 # to apply misalignments
0067 TrackerDigiGeometryESModule.applyAlignment = True
0068 
0069 
0070 ##
0071 ## Input File(s)
0072 ##
0073 process.source = cms.Source("PoolSource",
0074     fileNames = cms.untracked.vstring(
0075     ##
0076     ## 311 RelVal Samples (9000 events)
0077     ##
0078     '/store/relval/CMSSW_3_1_1/RelValMinBias/GEN-SIM-RECO/STARTUP31X_V1-v2/0002/B4AF1681-D66B-DE11-B20A-001D09F2924F.root',
0079     '/store/relval/CMSSW_3_1_1/RelValMinBias/GEN-SIM-RECO/STARTUP31X_V1-v2/0002/0A9066D1-B96B-DE11-91A6-000423D99160.root',
0080     ##
0081     ## 311 RelVal Samples (cosmics: need to set trackCollection to eg. process.AlignmentTrackSelector.src = "ctfWithMaterialTracksP5")
0082     ##
0083     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/FED903D5-3E6C-DE11-8C44-001D09F2432B.root',
0084     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/FCC739FF-426C-DE11-B074-001D09F2545B.root',
0085     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/F21CB2E5-486C-DE11-AB26-000423D6B5C4.root',
0086     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/F0EAF77B-416C-DE11-94BE-001D09F2545B.root',
0087     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/F0C3CF4C-426C-DE11-A114-0030487A3232.root',
0088     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/EEDA4BFB-4D6C-DE11-AB6D-000423D6CA02.root',
0089     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/EE789677-3E6C-DE11-9767-001D09F295A1.root',
0090     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/ECC8A34E-486C-DE11-87F4-000423D6CA72.root',
0091     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/EC091E8E-436C-DE11-985D-001D09F2545B.root',
0092     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/E64146C5-436C-DE11-83BE-0030487A1990.root',
0093     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/E4F9807A-486C-DE11-8A94-001D09F2514F.root',
0094     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/E4BCCE62-4A6C-DE11-BDBD-000423D6CA42.root',
0095     #'/store/relval/CMSSW_3_1_1/RelValCosmics/RECO/CRAFT0831X_V1-v1/0003/E2E2FC2B-436C-DE11-8C4A-001D09F2545B.root',
0096     ##
0097     ## 21X RelVal Samples
0098     ##
0099     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/468FB321-2060-DD11-8359-000423D6CAF2.root',
0100     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/5C2AE0AE-7D60-DD11-948C-001617DF785A.root',
0101     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/66CA0076-5060-DD11-8E3A-000423D99BF2.root',
0102     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/A00242A0-4F60-DD11-9D54-000423D98EC4.root',
0103     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/C4355E5F-1D60-DD11-82A7-000423D98B6C.root',
0104     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0000/FE4027D7-5060-DD11-87CE-000423D94E1C.root',
0105     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0001/26343D54-A760-DD11-9F64-001617E30CD4.root',
0106     #'/store/relval/CMSSW_2_1_0/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/STARTUP_V4_v1/0001/9AA68E9A-B060-DD11-A61C-001617DBD556.root'
0107     )
0108 )
0109 
0110 
0111 ##
0112 ## Maximum number of Events
0113 ##
0114 process.maxEvents = cms.untracked.PSet(
0115     input = cms.untracked.int32(10000)
0116 )
0117 
0118 
0119 ##
0120 ## Load and Configure track selection for alignment
0121 ##
0122 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
0123 #process.AlignmentTrackSelector.src = "ctfWithMaterialTracksP5" ## to set for cosmics
0124 #process.AlignmentTrackSelector.applyBasicCuts = True
0125 process.AlignmentTrackSelector.ptMin   = 1.3
0126 
0127 
0128 ##
0129 ## Load and Configure TrackRefitter
0130 ##
0131 # For older CMSSW versions
0132 #process.load("RecoTracker.TrackProducer.RefitterWithMaterial_cff")
0133 #process.load("RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilderWithoutRefit_cfi")
0134 # Compatible to CMSSW_3_1_1
0135 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0136 process.TrackRefitter.src = 'AlignmentTrackSelector'
0137 process.TrackRefitter.TrajectoryInEvent = True
0138 
0139 
0140 ##
0141 ## DQM services
0142 ##
0143 process.load("DQMServices.Core.DQM_cfg")
0144 
0145 
0146 ##
0147 ## MonitorTrackResiduals
0148 ##
0149 process.load("DQM.TrackerMonitorTrack.MonitorTrackResiduals_cfi")
0150 process.MonitorTrackResiduals.OutputMEsInRootFile = True
0151 process.MonitorTrackResiduals.Mod_On = False
0152 
0153 
0154 ##
0155 ## Sequence
0156 ##
0157 process.p = cms.Path(process.AlignmentTrackSelector*process.TrackRefitter*process.MonitorTrackResiduals)
0158 #process.MessageLogger.cerr.FwkReport.reportEvery = 10
0159 #process.MessageLogger.cerr.threshold = 'Info'
0160 
0161