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 
0009 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0010 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0011 
0012 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0013 process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0014 # process.GlobalTag.globaltag = "CRAFT_V3P::All"

0015 process.GlobalTag.globaltag = "CRAFT_ALL_V3::All"
0016 # process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')

0017 # process.GlobalTag.globaltag = "COSMMC_21X::All"

0018 
0019 
0020 process.load("RecoTracker.Configuration.RecoTracker_cff")
0021 
0022 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
0023 process.offlineBeamSpot = offlineBeamSpot
0024 
0025 from RecoTracker.TrackProducer.TrackRefitters_cff import *
0026 process.CosmicTFRefit = RecoTracker.TrackProducer.TrackRefitterP5_cfi.TrackRefitterP5.clone()
0027 process.CosmicTFRefit.src = 'cosmictrackfinderP5'
0028 
0029 process.MessageLogger = cms.Service("MessageLogger",
0030     destinations = cms.untracked.vstring('cout'),
0031     simul = cms.untracked.PSet(threshold = cms.untracked.string('ERROR')),
0032 )
0033 
0034 
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037   input = cms.untracked.int32(-1)
0038 )
0039 
0040 process.source = cms.Source("PoolSource",
0041   fileNames = cms.untracked.vstring(
0042         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FEE82D27-23AD-DD11-A657-003048767C73.root",
0043         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FEAC85DB-20AD-DD11-A213-001A92811700.root",
0044 #       "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE82819F-21AD-DD11-93B4-001A92810AB8.root",

0045         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE69963A-21AD-DD11-AA5C-001A92811706.root",
0046         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE66B8EC-22AD-DD11-BE2A-001BFCDBD160.root",
0047         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE538F58-20AD-DD11-B41C-001731230E47.root",
0048         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE3AC872-22AD-DD11-9101-003048679080.root",
0049         "rfio:/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/RECO/CRAFT_V3P_SuperPointing_v4/0039/FE02CCE0-1FAD-DD11-8EB3-001A92971B96.root"
0050     ),   
0051 #   skipEvents = cms.untracked.uint32(100) 

0052 )
0053 
0054 process.lorentzAngle = cms.EDAnalyzer("SiPixelLorentzAngle",
0055     TTRHBuilder= cms.string("WithTrackAngle"),
0056     Fitter = cms.string("FittingSmootherRKP5"),
0057   Propagator = cms.string("RungeKuttaTrackerPropagator"),
0058 #what type of tracks should be used: 

0059     src = cms.string("CosmicTFRefit"),
0060     fileName = cms.string("lorentzangle.root"),
0061     fileNameFit = cms.string("lorentzFit.txt"),
0062     binsDepth   = cms.int32(50),
0063     binsDrift = cms.int32(200),
0064     ptMin = cms.double(0),
0065     #in case of MC set this to true to save the simhits

0066     simData = cms.bool(False),
0067   normChi2Max = cms.double(6),  
0068     clustSizeYMin = cms.int32(3),
0069     residualMax = cms.double(0.005),
0070     clustChargeMax = cms.double(120000)
0071 )
0072 
0073 process.myout = cms.OutputModule("PoolOutputModule",
0074     fileName = cms.untracked.string('LA_CMSSW.root')
0075 )
0076 
0077 process.p = cms.Path(process.offlineBeamSpot*process.CosmicTFRefit*process.lorentzAngle)
0078 
0079 # process.outpath = cms.EndPath(process.myout)