Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 import os
0005 
0006 
0007 process = cms.Process("Demo")
0008 
0009 
0010 ##
0011 ## Message Logger
0012 ##
0013 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0014 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0015 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
0016     reportEvery = cms.untracked.int32(100) # every 100th only
0017 #    limit = cms.untracked.int32(10)       # or limit to 10 printouts...
0018     ))
0019 process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
0020 
0021 
0022 ##
0023 ## Process options
0024 ##
0025 process.options = cms.untracked.PSet(
0026     Rethrow = cms.untracked.vstring("ProductNotFound") # make this exception fatal
0027     , fileMode  =  cms.untracked.string('NOMERGE')
0028 )
0029 
0030 
0031 ##
0032 ## Conditions
0033 ##
0034 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0035 # Tag used for reprocessing
0036 process.GlobalTag.globaltag = 'CRAFT09_R_V4::All' #'DESIGN_31X_V7::All'
0037 
0038 
0039 ##
0040 ## Geometry
0041 ##
0042 process.load("Configuration.Geometry.GeometryDB_cff")
0043 
0044 
0045 
0046 ##
0047 ## Magnetic Field
0048 ##
0049 process.load("Configuration.StandardSequences.MagneticField_cff")
0050 # 0 T:
0051 #process.load("Configuration.StandardSequences.MagneticField_0T_cff")
0052 
0053 
0054 ##
0055 ## BeamSpot from database (i.e. GlobalTag), needed for Refitter
0056 ##
0057 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0058 
0059 
0060 ##
0061 ## Load DBSetup (if needed)
0062 ##
0063 #from CalibTracker.Configuration.Common.PoolDBESSource_cfi import poolDBESSource
0064 #process.trackerAlignment = poolDBESSource.clone(
0065 #    connect = 'frontier://FrontierProd/CMS_COND_31X_FROM21X', # or your sqlite file
0066 #    toGet = cms.VPSet(
0067 #      cms.PSet(
0068 #        record = cms.string('TrackerAlignmentRcd'),
0069 #        tag = cms.string('TrackerIdealGeometry210_mc') # your tags
0070 #        )
0071 #      )
0072 #    )
0073 #process.prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment")
0074 #
0075 ## APE always zero:
0076 #process.myTrackerAlignmentErr = poolDBESSource.clone(
0077 #    connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
0078 #    toGet = cms.VPSet(
0079 #      cms.PSet(
0080 #        record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0081 #        tag = cms.string('TrackerIdealGeometryErrors210_mc')
0082 #        )
0083 #      )
0084 #    )
0085 #process.es_prefer_trackerAlignmentErr = cms.ESPrefer("PoolDBESSource","myTrackerAlignmentErr")
0086 
0087 
0088 ##
0089 ## Input File(s)
0090 ##
0091 process.source = cms.Source("PoolSource",
0092     fileNames = cms.untracked.vstring(
0093     ##
0094     ## CRAFT 09 ALCARECO (Reprocessing)
0095     ##
0096     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/9CA7B695-6ABB-DE11-8BAD-001731AF6873.root',   
0097     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/CCC20FBE-6BBB-DE11-937A-001731AF66FD.root',   
0098     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/F8A02714-6CBB-DE11-BB63-0026189438D3.root',   
0099     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0011/6A40C518-A0BA-DE11-A212-001A92971B5E.root',   
0100     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/90F1E626-A8BA-DE11-A366-0017313F02F2.root',   
0101     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/4843B2D3-6BBB-DE11-9187-0018F3D09654.root',   
0102     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/56A66AAB-A7BA-DE11-B7F6-003048678B92.root',   
0103     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/943825A8-6ABB-DE11-95DE-003048678F74.root',   
0104     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/029E6A49-6ABB-DE11-8EC2-00261894392B.root',   
0105     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/8240E597-6ABB-DE11-AAFF-0026189438FE.root',   
0106     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/BCD40F9A-6ABB-DE11-8D0D-002618943922.root',   
0107     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/24DB7395-6ABB-DE11-9CD8-0030486791C6.root',   
0108     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/AEF2C4B6-6ABB-DE11-8865-002618943963.root',   
0109     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/584167C5-6BBB-DE11-B9E8-0018F3D09690.root',   
0110     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/EA1D660C-6CBB-DE11-81F0-001A928116C2.root',   
0111     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/0094AABE-6BBB-DE11-8B31-002618943800.root',   
0112     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/B01D72EC-ABBA-DE11-8A30-00261894389E.root',   
0113     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/E4DA1ECF-6BBB-DE11-89CB-00304867D838.root',   
0114     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/94D30C49-6ABB-DE11-9D8E-0018F3D096C2.root',   
0115     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/2C117B26-6CBB-DE11-912C-001A9281174A.root',   
0116     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/3653F052-6ABB-DE11-B282-0018F3D09652.root',   
0117     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/C24DFE9A-6ABB-DE11-8DB4-001731AF6721.root',   
0118     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/96538FAD-6ABB-DE11-ADAE-003048678FA6.root',   
0119     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/4ECA8719-64BB-DE11-A579-0018F3D096FE.root',   
0120     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/62309ECC-6BBB-DE11-8AD4-00261894396A.root',   
0121     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/6278C92A-A5BA-DE11-8CC7-00248C0BE005.root',   
0122     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/BCBED6A2-6ABB-DE11-ACDD-001731AF66B3.root',   
0123     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0011/8C11A0A1-85BA-DE11-8EF8-002354EF3BE3.root',   
0124     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/0AA9E82B-A7BA-DE11-A1CC-00261894387A.root',   
0125     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0011/2C6420B4-A0BA-DE11-8F10-001A928116FC.root',   
0126     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/F8026020-A8BA-DE11-A7B4-001A928116FC.root',   
0127     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/160CDBBE-6BBB-DE11-9814-0018F3D09642.root',   
0128     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0011/2E16801E-A0BA-DE11-BE4A-001731AF67E3.root',   
0129     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/70419677-AABA-DE11-B23F-00261894393A.root',   
0130     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/4407E064-6ABB-DE11-8A23-0017312B56A7.root',   
0131     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/6A708B4D-6ABB-DE11-B554-0026189438BD.root',   
0132     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/E0154D61-6ABB-DE11-96EE-0026189438BD.root',   
0133     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/FC54AE45-6ABB-DE11-914C-00261894388A.root',   
0134     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/A60ACA56-6ABB-DE11-BC42-003048678FEA.root',   
0135     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/D81F0264-6ABB-DE11-9ECC-002618943933.root',   
0136     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/D2E4FC59-6ABB-DE11-8DED-003048678B8E.root',   
0137     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0013/944D51AD-6ABB-DE11-B70A-001731230C61.root',   
0138     '/store/data/CRAFT09/Cosmics/ALCARECO/StreamTkAlCosmics0T-CRAFT09_R_V4_CosmicsSeq_v1/0012/7CBC14B1-ACBA-DE11-A35E-001A92810AA4.root'
0139     )
0140 )
0141 
0142 
0143 ##
0144 ## Maximum number of Events
0145 ##
0146 process.maxEvents = cms.untracked.PSet(
0147     input = cms.untracked.int32(1001)
0148 )
0149 
0150 
0151 ##
0152 ## Load and Configure track selection for alignment
0153 ##
0154 process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
0155 process.AlignmentTrackSelector.src = "ALCARECOTkAlCosmicsCTF0T" #e.g. for cosmics ALCARECO
0156 #process.AlignmentTrackSelector.src = "ALCARECOTkAlMuonIsolated" #e.g. for cosmics ALCARECO
0157 process.AlignmentTrackSelector.applyBasicCuts = False #True
0158 #process.AlignmentTrackSelector.ptMin   = .3
0159 
0160 
0161 ##
0162 ## Load and Configure TrackRefitter
0163 ##
0164 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0165 process.TrackRefitterForOfflineValidation = process.TrackRefitterP5.clone(
0166     src = 'AlignmentTrackSelector',
0167     NavigationSchool = ''
0168 )
0169 
0170 
0171 ##
0172 ## Load and Configure TrackerOfflineValidation and Output File
0173 ##
0174 process.load("Alignment.OfflineValidation.TrackerOfflineValidation_Dqm_cff")
0175 #process.TrackerOfflineValidationDqm.Tracks          = 'TrackRefitterP5'
0176 #process.TrackerOfflineValidationDqm.trajectoryInput = 'TrackRefitterP5'
0177 # Harvesting
0178 process.TrackerOfflineValidationSummaryDqm.minEntriesPerModuleForDmr = 1  # to allow tests with few statistics
0179 # Output File
0180 process.DqmSaverTkAl.workflow = "/Cosmics/TkAl09-335patch1_CRAFT09_R_V4_TestFile_CRAFT09reprocessing_WithoutCuts_R000109011_R000109624_ValSkim-v1/ALCARECO"
0181 process.DqmSaverTkAl.dirName = os.environ['TMPDIR'] + "/."
0182 process.DqmSaverTkAl.forceRunNumber = 109011
0183 
0184 
0185 ##
0186 ## PATH
0187 ##
0188 process.p = cms.Path(process.offlineBeamSpot
0189                      *process.AlignmentTrackSelector
0190              *process.TrackRefitterForOfflineValidation
0191              *process.seqTrackerOfflineValidationDqm
0192 )