-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrun2024ZDCReco.py
95 lines (61 loc) · 2.66 KB
/
run2024ZDCReco.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
from Configuration.Eras.Era_Run3_2023_ZDC_cff import Run3_2023_ZDC
process = cms.Process('TestZdcRecHit', Run3_2023_ZDC)
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('HeterogeneousCore.CUDACore.ProcessAcceleratorCUDA_cfi')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '141X_dataRun3_Prompt_frozen_v3', '')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(100)
)
# needed to supress error from cmssw 14
process.add_(cms.Service("AdaptorConfig", native=cms.untracked.vstring("root")))
#-----------------------------------------
# INPUT
#-----------------------------------------
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('/store/hidata/HIRun2023A/HIForward0/AOD/16Jan2024-v1/2810000/14f851d2-7c11-4ac4-9650-3428cc184582.root'),
# removing old zdcreco
inputCommands = cms.untracked.vstring('keep *',
'drop *_zdcreco_*_*')
)
#-----------------------------------------
# CMSSW/Hcal non-DQM Related Module import
#-----------------------------------------
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
# -----------------------------------------
# CMSSW/Hcal ZDC Reconstructor
# -----------------------------------------
process.load("RecoLocalCalo.HcalRecProducers.zdcrecoRun3_cfi")
process.zdcrecoRun3.skipRPD = cms.bool(True) #skip RPD channels due to geometry updates
process.load("RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi")
process.load('HeavyIonsAnalysis.ZDCAnalysis.ZDCRecHitAnalyzer_cfi')
process.zdcanalyzer.ZDCSource = cms.InputTag("zdcrecoRun3")
process.zdcanalyzer.skipRPD = cms.bool(True) # also skip RPD channels in the analyzer
process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string("ZdcRecHitEventContent.root"),
outputCommands = cms.untracked.vstring('drop *',
'keep doubles_zdcdigi_*_*',
'keep ZDCRecHitsSorted_zdc*_*_*')
)
process.TFileService = cms.Service("TFileService",
fileName = cms.string("RecHitZdcAnalyzer.root")
)
process.finalize = cms.EndPath(process.out)
#-----------------------------------------
# gpu test
#-----------------------------------------
process.recoPathZDC = cms.Path(
process.zdcrecoRun3
+ process.zdcanalyzer
)
#---------------
#---------------
process.schedule = cms.Schedule(
process.recoPathZDC,
process.finalize
)