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 = 'GLOBAL_TAG::All'
0021 
0022 process.Timing = cms.Service("Timing")
0023 
0024 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0025     
0026 #process.SiStripLorentzAngle = cms.ESSource("PoolDBESSource",
0027 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0028 #    DBParameters = cms.PSet(messageLevel = cms.untracked.int32(2),
0029 #                            authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0030 #                            ),
0031 #    toGet = cms.VPSet(cms.PSet(record = cms.string('SiStripLorentzAngleRcd'),
0032 #                               tag = cms.string('SiStripLA_TEST_Layers')
0033 #    )),
0034 #    connect = cms.string('sqlite_file:DB_LA_TEST_Layers.db')
0035 #)
0036 #                                      
0037 #process.es_prefer_SiStripLorentzAngle   = cms.ESPrefer("PoolDBESSource","SiStripLorentzAngle")
0038 
0039 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0040 
0041 process.load("DQMServices.Core.DQM_cfg")
0042 process.DQM.collectorHost = ''
0043 
0044 process.load("CalibTracker.SiStripLorentzAngle.SiStripLAProfileBooker_cfi")
0045 
0046 process.load("Alignment.CommonAlignmentProducer.ALCARECOTkAlCosmics0T_cff")
0047 process.ALCARECOTkAlCosmicsCTF0T.src='ALCARECOTkAlCosmicsCTF0T'
0048 process.ALCARECOTkAlCosmicsCTF0T.ptMin=5.
0049 
0050 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0051 
0052 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0053  
0054 
0055 process.load("FWCore.MessageService.MessageLogger_cfi")
0056 process.MessageLogger.debugModules = cms.untracked.vstring('sistripLAProfile')
0057 process.MessageLogger.cerr.enable = False
0058 
0059 process.MessageLogger.files.MY_DEBUG_NUMBER =  cms.untracked.PSet(
0060       threshold = cms.untracked.string('DEBUG'),
0061       noLineBreaks = cms.untracked.bool(False),
0062       DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0))
0063  )
0064 
0065 import FWCore.Python.FileUtils as FileUtils
0066 readFiles = cms.untracked.vstring( FileUtils.loadListFromFile ('JLIST') )
0067 
0068 process.source = cms.Source("PoolSource",fileNames = readFiles)
0069 
0070 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(NEVENT))
0071 
0072 process.trackrefitter = cms.EDFilter("TrackRefitter",
0073     src = cms.InputTag("ALCARECOTkAlCosmicsCTF0T"),
0074     beamSpot = cms.InputTag("offlineBeamSpot"),
0075     constraint = cms.string(''),
0076     srcConstr  = cms.InputTag(''),
0077     Fitter = cms.string('RKFittingSmoother'),
0078     useHitsSplitting = cms.bool(False),
0079     TrajectoryInEvent = cms.bool(True),
0080     TTRHBuilder = cms.string('WithTrackAngle'),
0081     AlgorithmName = cms.string('ctf'),
0082     Propagator = cms.string('RungeKuttaTrackerPropagator')
0083 )
0084 
0085 process.LA_analysis = cms.Sequence(process.offlineBeamSpot*process.trackrefitter*process.sistripLAProfile*process.MEtoEDMConverter)
0086 
0087 process.myOut = cms.OutputModule("PoolOutputModule",
0088 fileName = cms.untracked.string('file:MY_TMP/MY_HISTOS_HARV_NUMBER.root'),
0089 outputCommands = cms.untracked.vstring('drop *','keep *_MEtoEDMConverter_*_*')
0090 )
0091 
0092 process.Schedule = cms.Path(process.seqALCARECOTkAlCosmicsCTF0T*process.LA_analysis)
0093 
0094 process.outpath = cms.EndPath(process.myOut)
0095 
0096 process.sistripLAProfile.UseStripCablingDB = cms.bool(False)
0097 process.sistripLAProfile.Tracks = 'trackrefitter'
0098 process.sistripLAProfile.TIB_bin = 120
0099 process.sistripLAProfile.TOB_bin = 120
0100 process.sistripLAProfile.SUM_bin = 120
0101 process.sistripLAProfile.fileName = "file:MY_TMP/MY_HISTOS_NUMBER.root"
0102 process.sistripLAProfile.treeName = "file:MY_TMP/MY_TREE_NUMBER.root"
0103 
0104 
0105 
0106