Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-06 04:13:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 # -- Load default module/services configurations -- //
0005 # Message logger service
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi")
0008 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0009 process.load('Configuration.Geometry.GeometryExtended2021_cff')
0010 
0011 # Misalignment example scenario producer
0012 import Alignment.MuonAlignment.Scenarios_cff as _MuonScenarios
0013 # Does not yet work like that:
0014 #process.load("Alignment.MuonAlignment.MisalignedMuon_cfi")
0015 #process.MisalignedMuon.saveToDbase = True # to store to DB
0016 #process.MisalignedMuon.scenario = _MuonScenarios.Muon0inversePbScenario2008
0017 process.MisalignedMuon = cms.EDAnalyzer("MuonMisalignedProducer",
0018                                         _MuonScenarios.ExampleScenario,
0019                                         saveToDbase = cms.untracked.bool(True)
0020                                         )
0021 
0022 process.MisalignedMuon.scenario = _MuonScenarios.Muon100InversepbScenario
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(1)
0025 )
0026 
0027 process.source = cms.Source("EmptySource")
0028 
0029 process.DTGeometryMisalignedMuonProducer = cms.ESProducer("DTGeometryESModule",
0030     appendToDataLabel = cms.string('idealForMuonMisalignedProducer'),
0031     applyAlignment = cms.bool(False), 
0032     alignmentsLabel = cms.string(''),
0033     fromDDD = cms.bool(True)
0034 )
0035 
0036 process.CSCGeometryMisalignedMuonProducer = cms.ESProducer("CSCGeometryESModule",
0037     appendToDataLabel = cms.string('idealForMuonMisalignedProducer'),
0038     debugV = cms.untracked.bool(False),
0039     useGangedStripsInME1a = cms.bool(False),
0040     alignmentsLabel = cms.string(''),
0041     useOnlyWiresInME1a = cms.bool(False),
0042     useRealWireGeometry = cms.bool(True),
0043     useCentreTIOffsets = cms.bool(False),
0044     applyAlignment = cms.bool(False), 
0045     fromDDD = cms.bool(True),
0046     fromDD4hep = cms.bool(False)
0047 )
0048 
0049 process.GEMGeometryMisalignedMuonProducer = cms.ESProducer("GEMGeometryESModule",
0050     appendToDataLabel = cms.string('idealForMuonMisalignedProducer'),
0051     fromDDD = cms.bool(True),
0052     fromDD4hep = cms.bool(False),
0053     alignmentsLabel = cms.string(''),
0054     applyAlignment = cms.bool(False)
0055 )
0056 
0057 
0058 # Database output service if you want to store soemthing in MisalignedMuon
0059 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0060 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0061     CondDBSetup,
0062     toPut = cms.VPSet(cms.PSet(
0063         record = cms.string('DTAlignmentRcd'),
0064         tag = cms.string('DT100InversepbScenario')
0065     ), 
0066         cms.PSet(
0067             record = cms.string('DTAlignmentErrorExtendedRcd'),
0068             tag = cms.string('DT100InversepbScenarioErrors')
0069         ), 
0070         cms.PSet(
0071             record = cms.string('CSCAlignmentRcd'),
0072             tag = cms.string('CSC100InversepbScenario')
0073         ), 
0074         cms.PSet(
0075             record = cms.string('CSCAlignmentErrorExtendedRcd'),
0076             tag = cms.string('CSC100InversepbScenarioErrors')
0077         ),
0078         cms.PSet(
0079             record = cms.string('GEMAlignmentRcd'),
0080             tag = cms.string('GEM')
0081         ), 
0082         cms.PSet(
0083             record = cms.string('GEMAlignmentErrorExtendedRcd'),
0084             tag = cms.string('test')
0085         )),
0086 
0087     connect = cms.string('sqlite_file:Alignments.db')
0088 )
0089 
0090 process.prod = cms.EDAnalyzer("TestMisalign",
0091     fileName = cms.untracked.string('misaligment.root')
0092 )
0093 
0094 #process.p1 = cms.Path(process.MisalignedMuon+process.prod)
0095 process.p1 = cms.Path(process.MisalignedMuon)
0096 process.MessageLogger.cout = cms.untracked.PSet(
0097     threshold = cms.untracked.string('INFO'),
0098     default = cms.untracked.PSet(
0099         limit = cms.untracked.int32(10000000)
0100     )
0101 )
0102 
0103