Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004 options = VarParsing.VarParsing()
0005 options.register("isUnitTest",
0006                  False,
0007                  VarParsing.VarParsing.multiplicity.singleton,
0008                  VarParsing.VarParsing.varType.bool,
0009                  "are we running the unit test")
0010 options.parseArguments()
0011 
0012 process = cms.Process("HitResol")
0013 
0014 process.load("FWCore.MessageService.MessageLogger_cfi")
0015 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0016 process.load("Configuration.StandardSequences.MagneticField_cff")
0017 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0018 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0019 
0020 from Configuration.AlCa.GlobalTag import GlobalTag
0021 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run3_data', '')  
0022 
0023 InputTagName = "ALCARECOSiStripCalMinBias"
0024 OutputRootFile = "hitresol_ALCARECO_2022F.root"
0025 fileNames=cms.untracked.vstring("/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/ef6009e4-6857-40a1-9a55-0c702021caad.root",
0026                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/ef6cdbda-400c-4813-b4c7-9dfacd070e08.root",
0027                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f1a88b5f-8573-403e-aa35-0ad6b57125c0.root",
0028                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f1c537d0-2265-403b-84f9-dacb5a63c03f.root",
0029                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f30d1b57-eda6-4836-9ed6-cd683945a1e0.root",
0030                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f3c7f61d-7f6b-4021-b6c2-a15b66e3f375.root",
0031                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f3e11a67-7a78-4f6e-9b9b-b7687ce16c68.root",
0032                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f4250ffa-e73e-4e42-baa7-aebd8b169105.root",
0033                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f4c4cb8e-5c92-49b4-9fd3-40e09c4cf48a.root",
0034                                 "/store/express/Run2022F/StreamExpress/ALCARECO/SiStripCalMinBias-Express-v1/000/362/167/00000/f4f5e6bd-0a16-4937-a3eb-5b76333d9c4d.root")
0035 
0036 process.source = cms.Source("PoolSource", fileNames=fileNames)
0037 
0038 if(options.isUnitTest):
0039     process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(20))
0040 else:
0041     process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10000))
0042 
0043 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cfi")
0044 #process.load("RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAngle_cfi")
0045 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0046 process.refitTracks = process.TrackRefitterP5.clone(src=cms.InputTag(InputTagName))
0047 process.load("CalibTracker.SiStripHitResolution.SiStripHitResol_cff")
0048 process.anResol.combinatorialTracks = cms.InputTag("refitTracks")
0049 process.anResol.trajectories = cms.InputTag("refitTracks")
0050 
0051 process.TFileService = cms.Service("TFileService",
0052                                    fileName = cms.string(OutputRootFile)  
0053                                    )
0054 
0055 process.allPath = cms.Path(process.MeasurementTrackerEvent*process.offlineBeamSpot*process.refitTracks*process.hitresol)