Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GlobalAlignment")
0004 
0005 ### debug
0006 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 #process.MessageLogger = cms.Service("MessageLogger",
0008 #    statistics = cms.untracked.vstring('alignment'),
0009 #    destinations = cms.untracked.vstring('alignment'),
0010 #    alignment = cms.untracked.PSet(
0011 #        threshold = cms.untracked.string('DEBUG')
0012 #        )
0013 #)
0014 
0015 process.load("CondCore.CondDB.CondDB_cfi")
0016 
0017 ###  number of events ###
0018 #process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0019 #process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0020 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(20))
0021 #process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(2000))
0022 #process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100000))
0023 
0024 process.load("Alignment.CommonAlignmentProducer.GlobalTrackerMuonAlignment_cfi")
0025 
0026 ### debug  isolated/cosmic  refit
0027 #process.GlobalTrackerMuonAlignment.debug = cms.untracked.bool(True)
0028 process.GlobalTrackerMuonAlignment.cosmics = cms.bool(True)
0029 #process.GlobalTrackerMuonAlignment.isolated = cms.bool(True)
0030 process.GlobalTrackerMuonAlignment.writeDB = cms.untracked.bool(True)
0031 process.GlobalTrackerMuonAlignment.refitmuon = cms.bool(True)
0032 process.GlobalTrackerMuonAlignment.refittrack = cms.bool(True)
0033 
0034 # cosmic muon
0035 process.GlobalTrackerMuonAlignment.tracks = cms.InputTag("ALCARECOMuAlGlobalCosmics:TrackerOnly")
0036 process.GlobalTrackerMuonAlignment.muons = cms.InputTag("ALCARECOMuAlGlobalCosmics:StandAlone")
0037 process.GlobalTrackerMuonAlignment.gmuons = cms.InputTag("ALCARECOMuAlGlobalCosmics:GlobalMuon")
0038 process.GlobalTrackerMuonAlignment.smuons = cms.InputTag("ALCARECOMuAlGlobalCosmics:SelectedMuons")
0039 # isolated muon 
0040 #process.GlobalTrackerMuonAlignment.tracks = cms.InputTag("ALCARECOMuAlCalIsolatedMu:TrackerOnly")
0041 #process.GlobalTrackerMuonAlignment.muons = cms.InputTag("ALCARECOMuAlCalIsolatedMu:StandAlone")
0042 #process.GlobalTrackerMuonAlignment.gmuons = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon")
0043 #process.GlobalTrackerMuonAlignment.smuons = cms.InputTag("ALCARECOMuAlCalIsolatedMu:SelectedMuons")
0044 
0045 process.GlobalTrackerMuonAlignment.Propagator = cms.string("SteppingHelixPropagator")
0046 # propagator really not used now
0047 process.load("TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagator_cfi")
0048 
0049 process.p = cms.Path(process.GlobalTrackerMuonAlignment)
0050 
0051 #process.dump=cms.EDAnalyzer('EventContentAnalyzer')
0052 #process.p = cms.Path(process.GlobalTrackerMuonAlignment*process.dump)
0053 
0054 # initialize magnetic field
0055 process.load("Configuration.StandardSequences.MagneticField_cff")
0056 #from Configuration.StandardSequences.MagneticField_cff import *
0057 ### Force Magnetic Field B=3.8T (maybe needed for runs: 12476-127764 of cosmics 2010)
0058 #process.load("Configuration/StandardSequences/MagneticField_38T_cff")
0059 
0060 # Geometry
0061 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0062 #from Configuration.StandardSequences.GeometryExtended_cff import *
0063 
0064 # Gloabal Tag
0065 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0066 
0067 # import of standard configurations Cosmics
0068 process.load('Configuration/EventContent/EventContentCosmics_cff')
0069 
0070 ### refit
0071 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0072 process.load('RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilder_cfi')
0073 
0074 
0075 #                             GlobalTag
0076 # 3_6_0
0077 #process.GlobalTag.globaltag = 'START36_V2::All'
0078 #process.GlobalTag.globaltag = 'GR09_R_36X_V1::All'
0079 #process.GlobalTag.globaltag = 'MC_36Y_V2::All'
0080 # 3_5_5
0081 #process.GlobalTag.globaltag = 'MC_3XY_V25::All'
0082 # isolated muon 314
0083 #process.GlobalTag.globaltag = "MC_31X_V5::All"
0084 # 314 Cosmics
0085 #process.GlobalTag.globaltag = "COSMMC_22X_V6::All"
0086 # craft08
0087 #process.GlobalTag.globaltag = 'CRAFT0831X_V1::All'
0088 # craft09 small samples
0089 #process.GlobalTag.globaltag = 'CRAFT09_R_V4::All'
0090 # 1st repro craft09
0091 #process.GlobalTag.globaltag = 'CRAFT09_R_V10::All'
0092 # cosmic 2010
0093 process.GlobalTag.globaltag = "GR10_P_V5::All"
0094 #process.GlobalTag.globaltag = 'GR10_P_V2COS::All'
0095 # Pablo
0096 #process.GlobalTag.globaltag = "GR10_P_V4::All"
0097 # Jula
0098 #process.GlobalTag.globaltag = 'GR10_P_V3COS::All'
0099 
0100 ### write global Rcd to DB
0101 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0102     process.CondDBSetup,
0103     ### Writing to oracle needs the following shell variable setting (in zsh):
0104     ### export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0105     ### string connect = "oracle://cms_orcoff_int2r/CMS_COND_ALIGNMENT"
0106     timetype = cms.untracked.string('runnumber'),
0107     connect = cms.string('sqlite_file:output.db'),
0108     ### untracked uint32 authenticationMethod = 1
0109     toPut = cms.VPSet(cms.PSet(
0110         record = cms.string('GlobalPositionRcd'),
0111         tag = cms.string('IdealGeometry')
0112     ))
0113 )
0114 process.CondDBSetup.DBParameters.messageLevel = 2
0115 
0116 ###  read GlobalPositionRcd
0117 #process.GlobalTag.toGet = cms.VPSet(
0118 #    cms.PSet(
0119 #      record = cms.string("GlobalPositionRcd"),
0120 #      tag = cms.string("IdealGeometry"),
0121 ###      connect = cms.untracked.string("sqlite_file:zeroGlobalPosRcd.db")
0122 ###      connect = cms.untracked.string("sqlite_file:output_rcd1z.db")
0123 ###      connect = cms.untracked.string("sqlite_file:output_rcd03450123.db")
0124 #      connect = cms.untracked.string("sqlite_file:output_rcdzero.db")
0125 #      )
0126 # )
0127 
0128 #### read Muon Geometry ###  Pablo cff
0129 #import CondCore.CondDB.CondDB_cfi
0130 #process.muonAlignment = cms.ESSource("PoolDBESSource",
0131 #connect = cms.string('sqlite_file:/afs/cern.ch/user/s/scodella/public/Databases/Barrel_1125_PG_20100313_LINKFIT_NOOMRON_BOTH_PG_Err.db'),
0132 #DBParameters = CondCore.CondDB.CondDB_cfi.CondDBSetup.DBParameters,
0133 #toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"),       tag = cms.string("DTAlignmentRcd")),
0134 #                  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"),  tag = cms.string("DTAlignmentErrorExtendedRcd")),
0135 #                  cms.PSet(record = cms.string("CSCAlignmentRcd"),      tag = cms.string("CSCAlignmentRcd")),
0136 #                  cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))
0137 #                  ))
0138 #process.es_prefer_muonAlignment = cms.ESPrefer("PoolDBESSource", "muonAlignment")
0139 
0140 ### read TrackerGeometry ### Publo cff
0141 #process.trackerAlignment = cms.ESSource("PoolDBESSource",
0142 #connect = cms.string("sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/CRAFT09/TrackerAlignment_2009_v1_prompt/131020-infty/TrackerAlignment_2009_v1_prompt.db"),
0143 #DBParameters = CondCore.CondDB.CondDB_cfi.CondDBSetup.DBParameters,
0144 #toGet = cms.VPSet(cms.PSet(record = cms.string("TrackerAlignmentRcd"), tag = cms.string("Alignments")),
0145 #                  cms.PSet(record = cms.string("TrackerAlignmentErrorExtendedRcd"), tag = cms.string("AlignmentErrorsExtended"))
0146 #      ))
0147 #process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource", "trackerAlignment")
0148 
0149 
0150 #  read data  ----------------------------------------
0151 # process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:FileToBeRead.root'))
0152 
0153 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(
0154 
0155 # craft08  32K
0156 #    '/store/relval/CMSSW_3_1_4/Cosmics/ALCARECO/CRAFT0831X_V1_RelVal_StreamMuAlGlobalCosmics-v1/0006/A27618A1-73B1-DE11-B280-001D09F24FBA.root',
0157 #  22x MC cosmics
0158 #'rfio:/castor/cern.ch/cms/store/caf/user/pivarski/22X/trackercosmics_MuAlGlobalCosmics/ALCARECOMuAlGlobalCosmics-tkCosmics000.root',
0159 
0160 # beam commisioning 09 18th Fed   GR09_R_35_V2  
0161 #       '/store/data/BeamCommissioning09/Cosmics/ALCARECO/18thFebPreProd_351p1_MuAlGlobalCosmics-v1/0015/EE100A1F-481D-DF11-A98F-002618943923.root',
0162 
0163 # Commissioning09   lCosmics-Mar3rd   GR09_R_35_V3C::All  
0164 #    '/store/data/Commissioning09/Cosmics/ALCARECO/MuAlGlobalCosmics-Mar3rdReReco_v1/0015/AA3306FF-B62A-DF11-969A-00163E0101E1.root',
0165 
0166 # 1st repro                         CRAFT09
0167 #    '/store/data/CRAFT09/Cosmics/ALCARECO/StreamMuAlGlobalCosmics-CRAFT09_R_V4_CosmicsSeq_v1/0012/5A3DA2E8-ABBA-DE11-B18E-0026189437E8.root',
0168 
0169 # Cosmic 2010 
0170 #    'file:/tmp/spiridon/4C71BC21-5E20-DF11-8177-001D09F290CE.root',
0171     '/store/data/Commissioning10/Cosmics/ALCARECO/v3/000/128/762/6234035C-DC1F-DF11-BF68-001D09F25456.root',
0172 #    '/store/data/Commissioning10/Cosmics/ALCARECO/v3/000/128/899/F6A05CFE-B620-DF11-8ACA-001D09F2545B.root',
0173 #    '/store/data/Commissioning10/Cosmics/ALCARECO/v3/000/128/755/DC552B38-C41F-DF11-AA00-000423D6B444.root',
0174 #    'file:FileToRead.root',
0175 
0176 #  314 MC IsolatedMu
0177 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0005/7812C1DF-0292-DE11-8BBF-00304867920C.root',
0178 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0004/EE2DFA1B-0192-DE11-A055-001731AF6847.root',
0179 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0004/EC7F4503-0192-DE11-A068-001731AF6B7D.root',
0180 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0004/E8777D22-0192-DE11-B00C-001731AF68B9.root',
0181 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0004/DE415319-0192-DE11-9E78-001731AF66F1.root',
0182 #    '/store/mc/Summer09/InclusiveMu15/ALCARECO/MC_31X_V3_StreamMuAlCalIsolatedMu-v2/0004/DCD1E223-0192-DE11-B50C-001731EF61B4.root',
0183 # 31k
0184     ))