Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-17 02:41:45

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