Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("LAS")
0004 
0005 ##
0006 ## Message Logger
0007 ##
0008 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0009 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0010 process.MessageLogger.cout = cms.untracked.PSet(INFO = cms.untracked.PSet(
0011     reportEvery = cms.untracked.int32(100) # every 100th only
0012 #    limit = cms.untracked.int32(10)       # or limit to 10 printouts...
0013     ))
0014 process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
0015 
0016 ##
0017 ## Process options
0018 ##
0019 process.options = cms.untracked.PSet(
0020     Rethrow = cms.untracked.vstring("ProductNotFound") # make this exception fatal
0021 )
0022 
0023 ##
0024 ## Data input
0025 ##
0026 process.source = cms.Source(
0027     "PoolSource",
0028     fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/k/kaschube/cms/CMSSW_3_2_4/src/Alignment/LaserAlignment/test/tkLasBeams_ideal_newtest.root' # tkLasBeams_noATs_CRAFT08.root # tkLasBeams_CRAFT09.root # tkLasBeams_Run123353_39.root # tkLasBeams_Craft09_goodHits.root
0029     )
0030 )
0031 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0032 
0033 ##
0034 ## Geometry and conditions
0035 ##
0036 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0037 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0038 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0039 
0040 process.load("Configuration.StandardSequences.MagneticField_cff")
0041 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0042 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff") # for 22X when using db object
0043 process.GlobalTag.globaltag = "DESIGN_31X_V5::All" # DESIGN_31X_V5::All # MC_31X_V5::All # CRAFT09_R2_V2::All # CRAFT0831X_V4::All
0044 
0045 # output file
0046 process.TFileService = cms.Service("TFileService", 
0047                                    fileName = cms.string("histograms.root"),
0048                                    closeFileFast = cms.untracked.bool(True)
0049 )
0050 
0051 
0052 # using database file
0053 
0054 #from CondCore.DBCommon.CondDBSetup_cfi import *
0055 #process.trackerAlignment = cms.ESSource("PoolDBESSource",CondDBSetup,
0056 #                                        connect = cms.string("frontier://FrontierProd/CMS_COND_31X_FROM21X"),
0057 #                                        connect = cms.string("sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/kaschube/LAS_CRAFT08_fixDisks19.db"),
0058 #                                        connect = cms.string("sqlite_file:/afs/cern.ch/user/k/kaschube/cms/CMSSW_3_2_4/src/Alignment/MillePedeAlignmentAlgorithm/test/LAS_Ideal_Gaussian.db"),
0059 #                                        toGet = cms.VPSet(cms.PSet(record = cms.string("TrackerAlignmentRcd"),
0060 #                                                                   tag = cms.string("Alignments"))#, #"Alignments"
0061 #                                                          cms.PSet(record = cms.string("TrackerAlignmentErrorExtendedRcd"),
0062 #                                                                   tag = cms.string("")) #"AlignmentErrorsExtended"
0063 #                                        )
0064 #)
0065 #process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment")
0066 
0067 ##
0068 ## My module(s)
0069 ##
0070 process.load("Alignment.LaserAlignment.TkLasBeamFitter_cfi")
0071 process.TkLasBeamFitter.fitBeamSplitters = True
0072 process.TkLasBeamFitter.numberOfFittedAtParameters = 6 # '3' or '5', default is '6'
0073 
0074 process.out = cms.OutputModule(
0075     "PoolOutputModule",
0076     outputCommands = cms.untracked.vstring('drop *', 'keep Tk*Beams_*_*_*'),
0077     fileName = cms.untracked.string('./tkFittedLasBeams.root')
0078 )
0079 
0080 
0081 ##
0082 ## paths
0083 ##
0084 process.path       = cms.Path(process.TkLasBeamFitter)
0085 process.outputPath = cms.EndPath(process.out)
0086 
0087 
0088