-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunSiPixelAnalyzer.py
More file actions
executable file
·91 lines (74 loc) · 3.69 KB
/
runSiPixelAnalyzer.py
File metadata and controls
executable file
·91 lines (74 loc) · 3.69 KB
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
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: reco -s RAW2DIGI --filein file:/afs/cern.ch/work/k/katatar/public/PixelReadoutDQM/0CEFE112-8E63-E511-93F7-0025905A60D0.root --conditions 75X_dataRun2_HLT_withOfflineCustomisation_v0 --no_exec --data -n 4
import FWCore.ParameterSet.Config as cms
process = cms.Process('RAW2DIGI')
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
#process.load('Configuration.StandardSequences.L1Reco_cff')
process.load('Configuration.StandardSequences.Reconstruction_Data_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(2)
)
# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/k/katatar/public/PixelReadoutDQM/0CEFE112-8E63-E511-93F7-0025905A60D0.root'),
secondaryFileNames = cms.untracked.vstring()
)
process.options = cms.untracked.PSet(
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('reco nevts:1'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)
# Output definition
process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string(''),
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
fileName = cms.untracked.string('reco_RAW2DIGI.root'),
outputCommands = process.RECOSIMEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
# Additional output definition
# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '75X_dataRun2_HLT_withOfflineCustomisation_v0', '')
# Path and EndPath definitions
process.RawToDigi_custom = cms.Sequence(#process.csctfDigis
#+process.dttfDigis
#+process.gctDigis
#+process.gtDigis
#+process.gtEvmDigis
process.siPixelDigis
#+process.siStripDigis
+process.hcalDigis
)
#process.raw2digi_step = cms.Path(process.RawToDigi)
#process.L1Reco_step = cms.Path(process.L1Reco)
process.raw2digi_step = cms.Path(process.RawToDigi_custom)
process.load("RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_hf_cfi")
process.hfrecoPath = cms.Path(process.hfreco)
process.test = cms.EDAnalyzer('SiPixelAnalyzer',
src = cms.InputTag("siPixelDigis"),
srcHFhits = cms.InputTag("hfreco"),
outputFile = cms.untracked.string("quickTestPixelAna.root")
)
process.p = cms.Path(process.test)
# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step, process.hfrecoPath, process.p)
#process.schedule = cms.Schedule(process.raw2digi_step, process.L1Reco_step)#,process.reconstruction_step,process.endjob_step,process.RECOSIMoutput_step)