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( "laserAlignment" )
0005 
0006 process.load( "Geometry.CMSCommonData.cmsIdealGeometryXML_cfi" )
0007 process.load( "Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi" )
0008 #process.load( "CondCore.DBCommon.CondDBSetup_cfi" )
0009 
0010 
0011 ## message logger
0012 process.MessageLogger = cms.Service( "MessageLogger",
0013   debugModules = cms.untracked.vstring( 'LaserAlignment' ),
0014   cerr = cms.untracked.PSet(
0015     threshold = cms.untracked.string( 'ERROR' )
0016   ),
0017   cout = cms.untracked.PSet(
0018     threshold = cms.untracked.string( 'INFO' )
0019   ),
0020   destinations = cms.untracked.vstring( 'cout', 'cerr' )
0021 )
0022 
0023 ## all db records
0024 
0025 ### THIS ONE HAS BEEN LOCALLY MODIFIED!!!
0026 process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff" )
0027 #process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff" )
0028 
0029 process.GlobalTag.globaltag = 'IDEAL_V12::All'
0030 #process.GlobalTag.globaltag = 'CRAFT_ALL_V11::All'
0031 
0032 
0033 ## get the tracker alignment records from this file
0034 process.trackerAlignment = cms.ESSource( "PoolDBESSource",
0035   process.CondDBSetup,
0036   timetype = cms.string( 'runnumber' ),
0037   toGet = cms.VPSet(
0038     cms.PSet(
0039       record = cms.string( 'TrackerAlignmentRcd' ),
0040       tag = cms.string( 'Alignments' )
0041     ), 
0042     cms.PSet(
0043       record = cms.string( 'TrackerAlignmentErrorExtendedRcd' ),
0044       tag = cms.string( 'AlignmentErrorsExtended' )
0045     )
0046   ),
0047   connect = cms.string( 'sqlite_file:/afs/cern.ch/user/o/olzem/cms/cmssw/CMSSW_2_2_12/src/Alignment/LaserAlignment/test/Alignments_S.db' )
0048 )
0049 
0050 ## prefer these alignment record
0051 process.es_prefer_trackerAlignment = cms.ESPrefer( "PoolDBESSource", "trackerAlignment" )
0052 
0053 process.load( "Geometry.TrackerGeometryBuilder.trackerGeometry_cfi" )
0054 process.TrackerDigiGeometryESModule.applyAlignment = True
0055 
0056 
0057 # fast standalone reco output: an sql file
0058 import CondCore.DBCommon.CondDBSetup_cfi
0059 process.PoolDBOutputService = cms.Service( "PoolDBOutputService",
0060   CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
0061   timetype = cms.untracked.string( 'runnumber' ),
0062   connect = cms.string( 'sqlite_file:Alignments.db' ),
0063   toPut = cms.VPSet(
0064     cms.PSet(
0065       record = cms.string( 'TrackerAlignmentRcd' ),
0066       tag = cms.string( 'Alignments' )
0067     ), 
0068     cms.PSet(
0069       record = cms.string( 'TrackerAlignmentErrorExtendedRcd' ),
0070       tag = cms.string( 'AlignmentErrorsExtended' )
0071     )
0072   )
0073 )
0074 process.PoolDBOutputService.DBParameters.messageLevel = 2
0075 
0076 
0077 ## input files
0078 process.source = cms.Source( "PoolSource",
0079   fileNames = cms.untracked.vstring(
0080     #'file:/afs/cern.ch/user/o/olzem/scratch0/filterDQM/70664/TkAlLAS.root'
0081     'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_0.root',
0082     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_1.root',
0083     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_2.root',
0084     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_3.root'
0085     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_4.root',
0086     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_5.root',
0087     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_6.root',
0088     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_7.root',
0089     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_8.root',
0090     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_9.root',
0091     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_10.root',
0092     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_11.root',
0093     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_12.root',
0094     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_13.root',
0095     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_14.root',
0096     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_15.root'
0097   )
0098 
0099 )
0100 
0101 process.maxEvents = cms.untracked.PSet(
0102   input = cms.untracked.int32( 2000 )
0103 )
0104 
0105 ## the LaserAlignment module
0106 process.load( "Alignment.LaserAlignment.LaserAlignment_cfi" )
0107 process.LaserAlignment.DigiProducersList = cms.VPSet(
0108   cms.PSet(
0109     DigiLabel = cms.string( 'VirginRaw' ),
0110     DigiProducer = cms.string( 'laserAlignmentT0Producer' ), #simSiStripDigis
0111     DigiType = cms.string( 'Raw' )
0112   )
0113 )
0114 process.LaserAlignment.SaveToDbase = True
0115 process.LaserAlignment.SaveHistograms = True
0116 process.LaserAlignment.SubtractPedestals = False
0117 process.LaserAlignment.UpdateFromInputGeometry = False
0118 process.LaserAlignment.EnableJudgeZeroFilter = False
0119 process.LaserAlignment.JudgeOverdriveThreshold = 20000
0120 process.LaserAlignment.PeakFinderThreshold = 0.
0121 process.LaserAlignment.ApplyBeamKinkCorrections = False
0122 process.LaserAlignment.MisalignedByRefGeometry = False
0123 
0124 ## special parameters for LaserAlignment
0125 process.LaserAlignment.ForceFitterToNominalStrips = True
0126 
0127 
0128 ## the output file containing the TkLasBeamCollection
0129 ## for the track based interface
0130 process.out = cms.OutputModule( "PoolOutputModule",
0131   fileName = cms.untracked.string( 'tkLasBeams.root' ),
0132   outputCommands = cms.untracked.vstring(
0133     'drop *',
0134     "keep TkLasBeams_*_*_*"
0135   )
0136 )
0137 
0138 
0139 
0140 
0141 ## for debugging
0142 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0143 
0144 process.alignment = cms.Sequence( process.LaserAlignment )
0145 process.laser = cms.Path( process.alignment )
0146 process.e = cms.EndPath( process.out )
0147 
0148 
0149 
0150 
0151 
0152 
0153 
0154 
0155