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 process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff" )
0034 #process.GlobalTag.globaltag = 'GR09_31X_V5P::All'
0035 process.GlobalTag.globaltag = cms.string('GR_R_37X_V6::All')
0036 
0037 
0038 ## get the tracker alignment records from this file
0039 process.trackerAlignment = cms.ESSource( "PoolDBESSource",
0040   process.CondDBSetup,
0041   timetype = cms.string( 'runnumber' ),
0042   toGet = cms.VPSet(
0043     cms.PSet(
0044       record = cms.string( 'TrackerAlignmentRcd' ),
0045       tag = cms.string( 'Alignments' )
0046     ), 
0047     cms.PSet(
0048       record = cms.string( 'TrackerAlignmentErrorExtendedRcd' ),
0049       tag = cms.string( 'AlignmentErrorsExtended' )
0050     )
0051   ),
0052   #connect = cms.string( 'sqlite_file:/afs/cern.ch/user/o/olzem/cms/cmssw/CMSSW_2_2_12/src/Alignment/LaserAlignment/test/Alignments_S.db' )
0053   connect = cms.string( 'sqlite_file:/afs/cern.ch/user/w/wittmer/CMSSW_3_7_0_patch3/src/Alignment/LaserAlignment/test/Alignments.db' )
0054 )
0055 
0056 ## prefer these alignment record
0057 process.es_prefer_trackerAlignment = cms.ESPrefer( "PoolDBESSource", "trackerAlignment" )
0058 
0059 process.load( "Geometry.TrackerGeometryBuilder.trackerGeometry_cfi" )
0060 process.TrackerDigiGeometryESModule.applyAlignment = True
0061 
0062 
0063 # fast standalone reco output: an sql file
0064 import CondCore.DBCommon.CondDBSetup_cfi
0065 process.PoolDBOutputService = cms.Service( "PoolDBOutputService",
0066   CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
0067   timetype = cms.untracked.string( 'runnumber' ),
0068   connect = cms.string( 'sqlite_file:Alignments.db' ),
0069   toPut = cms.VPSet(
0070     cms.PSet(
0071       record = cms.string( 'TrackerAlignmentRcd' ),
0072       tag = cms.string( 'Alignments' )
0073     ), 
0074     cms.PSet(
0075       record = cms.string( 'TrackerAlignmentErrorExtendedRcd' ),
0076       tag = cms.string( 'AlignmentErrorsExtended' )
0077     )
0078   )
0079 )
0080 process.PoolDBOutputService.DBParameters.messageLevel = 2
0081 
0082 
0083 ## input files
0084 process.source = cms.Source( "PoolSource",
0085   fileNames = cms.untracked.vstring(
0086     #'file:/afs/cern.ch/user/o/olzem/scratch0/filterDQM/70664/TkAlLAS.root'
0087     'file:TkAlLAS_Run140124_LASFilter_test.root'
0088     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_0.root',
0089     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_1.root',
0090     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_2.root',
0091     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_3.root',
0092     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_4.root',
0093     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_5.root',
0094     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_6.root',
0095     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_7.root',
0096     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_8.root',
0097     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_9.root',
0098     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_10.root',
0099     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_11.root',
0100     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_12.root',
0101     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_13.root',
0102     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_14.root',
0103     #'file:/afs/cern.ch/user/o/olzem/scratch0/cms/las/prod/nt/TkAlLAS_15.root'
0104   )
0105 
0106 )
0107 
0108 process.maxEvents = cms.untracked.PSet(
0109   input = cms.untracked.int32( 2000 )
0110 )
0111 
0112 ## the LaserAlignment module
0113 process.load( "Alignment.LaserAlignment.LaserAlignment_cfi" )
0114 process.LaserAlignment.DigiProducersList = cms.VPSet(
0115   cms.PSet(
0116     DigiLabel = cms.string( 'ZeroSuppressed' ),
0117     DigiProducer = cms.string( 'laserAlignmentT0Producer' ), #simSiStripDigis
0118     DigiType = cms.string( 'Processed' )
0119   )
0120 )
0121 process.LaserAlignment.SaveToDbase = True
0122 process.LaserAlignment.SaveHistograms = True
0123 process.LaserAlignment.SubtractPedestals = False
0124 process.LaserAlignment.UpdateFromInputGeometry = False
0125 process.LaserAlignment.EnableJudgeZeroFilter = True
0126 process.LaserAlignment.JudgeOverdriveThreshold = 200
0127 process.LaserAlignment.PeakFinderThreshold = 2.
0128 process.LaserAlignment.ApplyBeamKinkCorrections = True
0129 process.LaserAlignment.MaskTECModules = (
0130   # CRAFT run 70664:
0131   # no-signal modules (dead power groups)
0132   470405768, 470390664, 470405832, 470390728, 470160520, 470160584,
0133   # other no-signal modules (low amplitude, etc)
0134   470045128,
0135   # TEC+ Ring4 Beam0 (AT shared)
0136   470307208, 470323592, 470339976, 470356360, 470372744, 470389128, 470405512, 470421896, 470438280,
0137   # TEC+ Ring4 Beam3 (AT shared)
0138   470307976, 470324360, 470340744, 470357128, 470373512, 470389896, 470406280, 470422664, 470439048,
0139   # TEC+ Ring4 Beam5 (AT shared)
0140   470308488, 470324872, 470341256, 470357640, 470374024, 470390408, 470406792, 470423176, 470439560,
0141   # TEC- Ring4 Beam0 (AT shared)
0142   470045064, 470061448, 470077832, 470094216, 470110600, 470126984, 470143368, 470159752, 470176136, 
0143   # TEC- Ring4 Beam3 (AT shared)
0144   470045832, 470062216, 470078600, 470094984, 470111368, 470127752, 470144136, 470160520, 470176904,
0145   # TEC- Ring4 Beam5 (AT shared)
0146   470046344, 470062728, 470079112, 470095496, 470111880, 470128264, 470144648, 470161032, 470177416
0147 )
0148 process.LaserAlignment.MaskATModules = (
0149   # CRAFT run 70664:
0150   # no-signal modules (too high/low amplitude, etc)
0151   470373004, 470110852, 470094732, 470111116, 470095236, 470111620, 470112132, 470112396, 
0152   # TEC(AT)+ Beam0 (TEC shared)
0153   470307208, 470323592, 470339976, 470356360, 470372744,
0154   # TEC(AT)+ Beam3 (TEC shared)
0155   470307976, 470324360, 470340744, 470357128, 470373512,
0156   # TEC(AT)+ Beam5 (TEC shared)
0157   470308488, 470324872, 470341256, 470357640, 470374024,
0158   # TEC(AT)- Beam0 (TEC shared)
0159   470045064, 470061448, 470077832, 470094216, 470110600,
0160   # TEC(AT)- Beam3 (TEC shared)
0161   470045832, 470062216, 470078600, 470094984, 470111368,
0162   # TEC(AT)- Beam5 (TEC shared)
0163   470046344, 470062728, 470079112, 470095496, 470111880
0164 )
0165 
0166 
0167 ## special parameters for LaserAlignment
0168 process.LaserAlignment.ForceFitterToNominalStrips = False
0169 
0170 
0171 ## the output file containing the TkLasBeamCollection
0172 ## for the track based interface
0173 process.out = cms.OutputModule( "PoolOutputModule",
0174   fileName = cms.untracked.string( 'tkLasBeams.root' ),
0175   outputCommands = cms.untracked.vstring(
0176     'drop *',
0177     "keep TkLasBeams_*_*_*"
0178   )
0179 )
0180 
0181 
0182 
0183 
0184 ## for debugging
0185 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0186 
0187 process.alignment = cms.Sequence( process.LaserAlignment )
0188 process.laser = cms.Path( process.alignment )
0189 process.e = cms.EndPath( process.out )
0190 
0191 
0192 
0193 
0194 
0195 
0196 
0197 
0198