This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RAW2Primitives.py
92 lines (71 loc) · 3.75 KB
/
RAW2Primitives.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
# Auto generated configuration file
# using:
# Revision: 1.341.2.2
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: step2 --conditions auto:com10 --scenario HeavyIons --process l1RECO --data --eventcontent RECODEBUG -s RAW2DIGI,L1Reco,RECO --datatier RECO --magField AutoFromDBCurrent --repacked --filein file:/net/hisrv0001/home/dav2105/hdir/raw/181985/00026B4D-DD11-E111-B567-00237DDC5CB0.root -n 2 --no_exe
import FWCore.ParameterSet.Config as cms
process = cms.Process('l1RECO')
# 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.EventContentHeavyIons_cff')
process.load('Configuration.StandardSequences.GeometryDB_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.ReconstructionHeavyIons_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(5000)
)
# Input source
process.source = cms.Source("PoolSource",
secondaryFileNames = cms.untracked.vstring(),
fileNames = cms.untracked.vstring('file:/mnt/hadoop/cms/store/user/velicanu/raw/181985/00026B4D-DD11-E111-B567-00237DDC5CB0.root')
)
process.options = cms.untracked.PSet(
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
version = cms.untracked.string('$Revision: 1.7 $'),
annotation = cms.untracked.string('step2 nevts:2'),
name = cms.untracked.string('PyReleaseValidation')
)
# Output definition
process.RECODEBUGoutput = cms.OutputModule("PoolOutputModule",
splitLevel = cms.untracked.int32(0),
eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
outputCommands = process.RECODEBUGEventContent.outputCommands,
fileName = cms.untracked.string('step2_RAW2DIGI_L1Reco_RECO.root'),
dataset = cms.untracked.PSet(
filterName = cms.untracked.string(''),
dataTier = cms.untracked.string('RECO')
)
)
# Additional output definition
# Other statements
process.GlobalTag.globaltag = 'GR_R_44_V7::All'
process.TFileService = cms.Service("TFileService",
fileName = cms.string("dump_prims.root")
)
process.TriggerPrimitives = cms.EDAnalyzer('TriggerPrimitives',
ECALDigis = cms.InputTag("ecalDigis:EcalTriggerPrimitives"),
HCALDigis = cms.InputTag("hcalDigis"),
GCTDigis = cms.InputTag("gctDigis")
)
#process.p = cms.Path(process.demo)
# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
#process.reconstruction_step = cms.Path(process.reconstructionHeavyIons)
process.p = cms.Path(process.TriggerPrimitives)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RECODEBUGoutput_step = cms.EndPath(process.RECODEBUGoutput)
# Schedule definition
#process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.endjob_step,process.RECODEBUGoutput_step,process.p)
#process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.p)
process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.p,process.endjob_step,process.RECODEBUGoutput_step)
from Configuration.PyReleaseValidation.ConfigBuilder import MassReplaceInputTag
MassReplaceInputTag(process)