Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:45:04

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process( "createScenario" )
0005 
0006 # source
0007 process.source = cms.Source( "EmptySource" )
0008 process.maxEvents = cms.untracked.PSet(
0009   input = cms.untracked.int32( 1 )
0010 )
0011 
0012 
0013 # db output
0014 process.load( "CondCore.DBCommon.CondDBCommon_cfi" )
0015 process.CondDBCommon.connect = 'sqlite_file:Alignments_S.db'
0016 
0017 
0018 process.PoolDBOutputService = cms.Service( "PoolDBOutputService",
0019   process.CondDBCommon,
0020   toPut = cms.VPSet(
0021     cms.PSet(
0022       record = cms.string( 'TrackerAlignmentRcd' ),
0023       tag = cms.string( 'Alignments' )
0024     ), 
0025     cms.PSet(
0026       record = cms.string( 'TrackerAlignmentErrorExtendedRcd' ),
0027       tag = cms.string( 'AlignmentErrorsExtended' )
0028     )
0029   )
0030 )
0031 
0032 
0033 # geometry
0034 process.load( "Geometry.CMSCommonData.cmsIdealGeometryXML_cfi" )
0035 process.load( "Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi" )
0036 
0037 
0038 process.misalignmentProducer = cms.ESProducer("MisalignedTrackerESProducer",
0039 
0040   seed = cms.int32( 123456 ),
0041   saveToDbase = cms.untracked.bool( True ),
0042   distribution = cms.string( 'fixed' ), # 'gaussian' or 'fixed' or...
0043                                               
0044   ## TIB+                                              
0045   TIB2 = cms.PSet(
0046     dY = cms.double( 0.0 ),
0047     dX = cms.double( 0.0 ),
0048     phiXlocal = cms.double( 0.000 ),
0049     phiYlocal = cms.double( 0.000 ),
0050     phiZlocal = cms.double( 0.000 )
0051   ),
0052 
0053   ## TIB-                                              
0054   TIB1 = cms.PSet(
0055     dY = cms.double( 0.0 ),
0056     dX = cms.double( 0.0 ),
0057     phiXlocal = cms.double( 0.000 ),
0058     phiYlocal = cms.double( 0.000 ),
0059     phiZlocal = cms.double( 0.000 )
0060   ),
0061 
0062   ## TOB+
0063   TOB2 = cms.PSet(
0064     dY = cms.double( 0.0 ),
0065     dX = cms.double( 0.0 ),
0066     phiXlocal = cms.double( 0.000 ),
0067     phiYlocal = cms.double( 0.000 ),
0068     phiZlocal = cms.double( 0.000 )
0069   ),
0070 
0071   ## TOB-                                
0072   TOB1 = cms.PSet(
0073     dY = cms.double( 0.0 ),
0074     dX = cms.double( 0.0 ),
0075     phiXlocal = cms.double( 0.000 ),
0076     phiYlocal = cms.double( 0.000 ),
0077     phiZlocal = cms.double( 0.000 )
0078   ),
0079 
0080   ## TEC+                                   
0081   TEC1 = cms.PSet(
0082 
0083     phiXlocal = cms.double( 0.0 ),
0084     phiYlocal = cms.double( 0.0 ),
0085     phiZlocal = cms.double( 0.0 ),
0086     dX = cms.double( 0.0 ),
0087     dY = cms.double( 0.0 ),
0088     
0089     TECDisk1 = cms.PSet(
0090       dX = cms.double( 0.0 ),
0091       dY = cms.double( 0.0 ),
0092       phiZlocal = cms.double( 0.000 )
0093     ),
0094     
0095     TECDisk2 = cms.PSet(
0096       dX = cms.double( 0.0 ),
0097       dY = cms.double( 0.0 ),
0098       phiZlocal = cms.double( 0.000 )
0099     ),
0100 
0101     TECDisk3 = cms.PSet(
0102       dX = cms.double( 0.0 ),
0103       dY = cms.double( 0.0 ),
0104       phiZlocal = cms.double( 0.000 )
0105     ),
0106 
0107     TECDisk4 = cms.PSet(
0108       dX = cms.double( 0.0 ),
0109       dY = cms.double( 0.0 ),
0110       phiZlocal = cms.double( 0.000 )
0111     ),
0112 
0113     TECDisk5 = cms.PSet(
0114       dX = cms.double( 0.0 ),
0115       dY = cms.double( 0.0 ),
0116       phiZlocal = cms.double( 0.000 )
0117     ),
0118 
0119     TECDisk6 = cms.PSet(
0120       dX = cms.double( 0.0 ),
0121       dY = cms.double( 0.0 ),
0122       phiZlocal = cms.double( 0.000 )
0123     ),
0124 
0125     TECDisk7 = cms.PSet(
0126       dX = cms.double( 0.0 ),
0127       dY = cms.double( 0.0 ),
0128       phiZlocal = cms.double( 0.000 )
0129     ),
0130 
0131     TECDisk8 = cms.PSet(
0132       dX = cms.double( 0.0 ),
0133       dY = cms.double( 0.0 ),
0134       phiZlocal = cms.double( 0.000 )
0135     ),
0136 
0137     TECDisk9 = cms.PSet(
0138       dX = cms.double( 0.0 ),
0139       dY = cms.double( 0.0 ),
0140       phiZlocal = cms.double( 0.000 )
0141     )
0142 
0143   ),
0144 
0145 
0146   ## TEC-                                          
0147   TEC2 = cms.PSet(
0148 
0149     phiXlocal = cms.double( 0.0 ),
0150     phiYlocal = cms.double( 0.0 ),
0151     phiZlocal = cms.double( 0.0 ),
0152     dX = cms.double( 0.0 ),
0153     dY = cms.double( 0.0 ),
0154 
0155     TECDisk1 = cms.PSet(
0156       dX = cms.double( 0.0 ),
0157       dY = cms.double( 0.0 ),
0158       phiZlocal = cms.double( 0.000 )
0159     ),
0160     
0161     TECDisk2 = cms.PSet(
0162       dX = cms.double( 0.0 ),
0163       dY = cms.double( 0.0 ),
0164       phiZlocal = cms.double( 0.000 )
0165     ),
0166     
0167     TECDisk3 = cms.PSet(
0168       dX = cms.double( 0.0 ),
0169       dY = cms.double( 0.0 ),
0170       phiZlocal = cms.double( 0.000 )
0171     ),
0172 
0173     TECDisk4 = cms.PSet(
0174       dX = cms.double( 0.0 ),
0175       dY = cms.double( 0.0 ),
0176       phiZlocal = cms.double( 0.000 )
0177     ),
0178     
0179     TECDisk5 = cms.PSet(
0180       dX = cms.double( 0.0 ),
0181       dY = cms.double( 0.0 ),
0182       phiZlocal = cms.double( 0.000 )
0183     ),
0184     
0185     TECDisk6 = cms.PSet(
0186       dX = cms.double( 0.0 ),
0187       dY = cms.double( 0.0 ),
0188       phiZlocal = cms.double( 0.000 )
0189     ),
0190     
0191     TECDisk7 = cms.PSet(
0192       dX = cms.double( 0.0 ),
0193       dY = cms.double( 0.0 ),
0194       phiZlocal = cms.double( 0.000 )
0195     ),
0196     
0197     TECDisk8 = cms.PSet(
0198       dX = cms.double( 0.0 ),
0199       dY = cms.double( 0.0 ),
0200       phiZlocal = cms.double( 0.000 )
0201     ),
0202     
0203     TECDisk9 = cms.PSet(
0204       dX = cms.double( 0.0 ),
0205       dY = cms.double( 0.0 ),
0206       phiZlocal = cms.double( 0.000 )
0207     )
0208     
0209   )
0210 )
0211 
0212 process.test = cms.EDAnalyzer( "TestAnalyzer",
0213   fileName = cms.untracked.string( 'misaligned.root' )
0214 )
0215 
0216 process.p1 = cms.Path( process.test )
0217 
0218 
0219