-
Notifications
You must be signed in to change notification settings - Fork 1
/
step25_RAW2DIGI.py
55 lines (43 loc) · 2.09 KB
/
step25_RAW2DIGI.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
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --runUnscheduled --conditions auto:run2_mc -s RAW2DIGI,L1Reco,RECO --datatier GEN-SIM-RECO -n 10 --era Run2_2016 --eventcontent RECOSIM --filein=file:step2_DIGI_DIGI2RAW.root --no_exec
import FWCore.ParameterSet.Config as cms
#from Configuration.StandardSequences.Eras import eras
process = cms.Process('RECO')
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.load("CondFormats.CTPPSReadoutObjects.CTPPSPixelDAQMappingESSourceXML_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:step2_DIGI_DIGI2RAW.root'),
secondaryFileNames = cms.untracked.vstring()
)
process.options = cms.untracked.PSet(
SkipEvent = cms.untracked.vstring('ProductNotFound')
)
# Output definition
process.output = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('step25_RAW2DIGI.root'),
outputCommands = cms.untracked.vstring("drop *","keep *_ctppsPixelDigis_*_*")
)
# Additional output definition
process.load('Configuration.StandardSequences.CTPPSRawToDigi_cff')
# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.output_step = cms.EndPath(process.output)
# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step,process.endjob_step,process.output_step)