Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("LA")
0004 
0005 process.load("Configuration.StandardSequences.Services_cff")
0006 
0007 #process.load("Configuration.StandardSequences.GeometryDB_cff")
0008 process.load('Configuration/StandardSequences/GeometryExtended_cff')
0009 
0010 process.load('Configuration.StandardSequences.MagneticField_cff')
0011 
0012 # process.load("Configuration.StandardSequences.FakeConditions_cff")

0013 
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 # check for the correct tag on https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions

0016 process.GlobalTag.globaltag = "GR09_PV7::All"
0017 
0018 
0019 process.load("RecoTracker.Configuration.RecoTracker_cff")
0020 
0021 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0022 process.offlineBeamSpot = offlineBeamSpot 
0023 
0024 
0025 process.load("RecoTracker/TrackProducer/TrackRefitters_cff")
0026 # put here the tag of the tracks you want to use
0027 # alcareco samples have special names for the tracks, in normal reco samples generalTracks can be used
0028 process.TrackRefitter.src = "generalTracks"
0029 # process.TrackRefitter.src = "ALCARECOTkAlZMuMu"

0030 process.TrackRefitter.TrajectoryInEvent = True
0031 process.load("RecoTracker.TransientTrackingRecHit.TransientTrackingRecHitBuilderWithoutRefit_cfi")
0032 
0033 
0034 
0035 process.MessageLogger = cms.Service("MessageLogger",
0036     cerr = cms.untracked.PSet(
0037         enable = cms.untracked.bool(False)
0038     ),
0039     cout = cms.untracked.PSet(
0040         enable = cms.untracked.bool(True)
0041     ),
0042     files = cms.untracked.PSet(
0043         simul = cms.untracked.PSet(
0044             threshold = cms.untracked.string('ERROR')
0045         )
0046     )
0047 )
0048 
0049 process.lorentzAngle = cms.EDAnalyzer("SiPixelLorentzAngle",
0050     src = cms.string("TrackRefitter"),
0051     fileName = cms.string("lorentzangle.root"),
0052     fileNameFit = cms.string("lorentzFit.txt"),
0053     binsDepth   = cms.int32(50),
0054     binsDrift = cms.int32(200),
0055     ptMin = cms.double(3),
0056     #in case of MC set this to true to save the simhits (does not work currently, Mixing Module needs to be included correctly)

0057     simData = cms.bool(False),
0058     normChi2Max = cms.double(2),    
0059     clustSizeYMin = cms.int32(4),
0060     residualMax = cms.double(0.005),
0061     clustChargeMax = cms.double(120000)
0062 )
0063 
0064 process.myout = cms.OutputModule("PoolOutputModule",
0065     fileName = cms.untracked.string('LA_CMSSW.root')
0066 )
0067 
0068 process.p = cms.Path(process.offlineBeamSpot*process.TrackRefitter*process.lorentzAngle)
0069 
0070 # uncomment this if you want to write out the new CMSSW root file (very large)

0071 # process.outpath = cms.EndPath(process.myout)

0072 process.maxEvents = cms.untracked.PSet(
0073     input = cms.untracked.int32(100)
0074 )
0075 
0076 process.source = cms.Source("PoolSource",
0077     #put here the sample you want to use
0078     fileNames = cms.untracked.vstring(
0079     #put your source file here
0080       # ' '
0081     ),   
0082 #   skipEvents = cms.untracked.uint32(100) 
0083 )