Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CondCore.DBCommon.CondDBSetup_cfi import *
0004 
0005 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
0006 
0007 process = cms.Process("analyze")
0008 
0009 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0010 
0011 process.load("Configuration.StandardSequences.GeometryIdeal_cff")
0012 
0013 process.load("Configuration.StandardSequences.Services_cff")
0014 
0015 process.load("Configuration.StandardSequences.MagneticField_cff")
0016 
0017 process.load("Configuration.StandardSequences.Reconstruction_cff")
0018 
0019 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0020 process.GlobalTag.globaltag = 'CRAFT_31X::All'
0021 
0022 process.load("DQMServices.Core.DQM_cfg")
0023 process.DQM.collectorHost = ''
0024 
0025 process.Timing = cms.Service("Timing")
0026 
0027 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0028     
0029 #process.SiStripLorentzAngle = cms.ESSource("PoolDBESSource",
0030 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0031 #    DBParameters = cms.PSet(messageLevel = cms.untracked.int32(2),
0032 #                            authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0033 #                            ),
0034 #    toGet = cms.VPSet(cms.PSet(record = cms.string('SiStripLorentzAngleRcd'),
0035 #                               tag = cms.string('SiStripLA_TEST_Layers')
0036 #    )),
0037 #    connect = cms.string('sqlite_file:DB_LA_TEST_Layers.db')
0038 #)
0039 #                                      
0040 #process.es_prefer_SiStripLorentzAngle   = cms.ESPrefer("PoolDBESSource","SiStripLorentzAngle")
0041 
0042 process.load("RecoTracker.TrackProducer.TrackRefitter_cff")
0043 
0044 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0045 
0046 process.load("CalibTracker.SiStripLorentzAngle.SiStripLAProfileBooker_cfi")
0047 
0048 process.load("Alignment.CommonAlignmentProducer.ALCARECOTkAlCosmics0T_cff")
0049 process.ALCARECOTkAlCosmicsCTF0T.src='ALCARECOTkAlCosmicsCTF0T'
0050 process.ALCARECOTkAlCosmicsCTF0T.ptMin=5.
0051 
0052 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0053 
0054 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0055  
0056 process.load("FWCore.MessageService.MessageLogger_cfi")
0057 process.MessageLogger.debugModules = cms.untracked.vstring('sistripLAProfile')
0058 process.MessageLogger.cerr.enable = False
0059 
0060 process.MessageLogger.files.LAProfileDebug =  cms.untracked.PSet(
0061       threshold = cms.untracked.string('DEBUG'),
0062       noLineBreaks = cms.untracked.bool(False),
0063       DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0))
0064  )
0065 
0066 import FWCore.Python.FileUtils as FileUtils
0067 
0068 #readFiles = cms.untracked.vstring( FileUtils.loadListFromFile ('source_list_test.txt') )
0069 #process.source = cms.Source("PoolSource",fileNames = readFiles)
0070 
0071 process.source = cms.Source ("PoolSource",fileNames=cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/ALCARECO/CRAFT_ALL_V4_StreamALCARECOTkAlCosmics0T_step3_AlcaReco-v2/0052/529AA4E7-08CC-DD11-A489-001D0967D21A.root'),)
0072 
0073 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0074 
0075 process.trackrefitter = cms.EDFilter("TrackRefitter",
0076     src = cms.InputTag("ALCARECOTkAlCosmicsCTF0T"),
0077     beamSpot = cms.InputTag("offlineBeamSpot"),
0078     constraint = cms.string(''),
0079     srcConstr  = cms.InputTag(''),
0080     Fitter = cms.string('RKFittingSmoother'),
0081     useHitsSplitting = cms.bool(False),
0082     TrajectoryInEvent = cms.bool(True),
0083     TTRHBuilder = cms.string('WithTrackAngle'),
0084     AlgorithmName = cms.string('ctf'),
0085     Propagator = cms.string('RungeKuttaTrackerPropagator')
0086 )
0087 
0088 process.LA_analysis = cms.Sequence(process.offlineBeamSpot*process.trackrefitter*process.sistripLAProfile*process.MEtoEDMConverter)
0089 
0090 process.myOut = cms.OutputModule("PoolOutputModule",
0091 fileName = cms.untracked.string('file:LA_Histos_Harv_NEWAL.root'),
0092 outputCommands = cms.untracked.vstring('drop *','keep *_MEtoEDMConverter_*_*')
0093 )
0094 
0095 process.Schedule = cms.Path(process.seqALCARECOTkAlCosmicsCTF0T*process.LA_analysis)
0096 
0097 process.outpath = cms.EndPath(process.myOut)
0098 
0099 process.sistripLAProfile.UseStripCablingDB = cms.bool(False)
0100 process.sistripLAProfile.Tracks = 'trackrefitter'
0101 process.sistripLAProfile.TIB_bin = 120
0102 process.sistripLAProfile.TOB_bin = 120
0103 process.sistripLAProfile.SUM_bin = 120
0104 process.sistripLAProfile.fileName = "file:LA_Histos_NEWAL.root"
0105 process.sistripLAProfile.treeName = "file:LA_Trees_NEWAL.root"
0106 
0107 
0108 
0109