-
Notifications
You must be signed in to change notification settings - Fork 3
/
recHitsFromAOD.py
135 lines (109 loc) · 6.29 KB
/
recHitsFromAOD.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('CTPPS2',eras.Run2_25ns)
# 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.FrontierConditions_GlobalTag_cff')
############### using only CTPPS geometry
process.load("Configuration.Geometry.geometry_CTPPS_cfi")
process.load("CondFormats.CTPPSReadoutObjects.CTPPSPixelDAQMappingESSourceXML_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1000)
)
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('clu_info_enrico'),
clu_info = cms.untracked.PSet( threshold = cms.untracked.string('INFO'))
)
process.source = cms.Source("EmptyIOVSource",
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
lastValue = cms.uint64(1),
interval = cms.uint64(1)
)
# Track memory leaks
process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/02D2E5CB-0540-E711-A24F-02163E01440E.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/14474FDB-F63F-E711-8E9C-02163E01A1C5.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/4A587F58-F83F-E711-AF8F-02163E019C9D.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/624B18FF-F83F-E711-8522-02163E012418.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/6440BDB9-F73F-E711-87EA-02163E0122C7.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/9AA7C6B0-FA3F-E711-B4CC-02163E019CB9.root',
#'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias1/AOD/PromptReco-v1/000/294/736/00000/FE8FD1A7-F73F-E711-BF98-02163E014570.root'
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/44589413-F73F-E711-9E8D-02163E014337.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/4493383A-F63F-E711-A67F-02163E011870.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/5C6E42A5-0640-E711-9C3E-02163E011B62.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/98F7DD15-F93F-E711-87E1-02163E019D62.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/A01D8813-0A40-E711-A300-02163E01A211.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/B83C33DB-F63F-E711-82FC-02163E019DF3.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/D6706DD8-F93F-E711-9F6D-02163E019D7F.root',
'file:/eos/cms/tier0/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/E206A2BF-FA3F-E711-8E72-02163E01369C.root'
),
duplicateCheckMode = cms.untracked.string("checkEachFile")
)
#from CondCore.CondDB.CondDB_cfi import *
#process.load("CondCore.CondDB.CondDB_cfi")
#process.PoolDBESSource = cms.ESSource("PoolDBESSource",
# CondDB.clone(
#connect = cms.string('sqlite_file:CondTools/CTPPS/test/CTPPSPixel_DAQMapping_AnalysisMask.db')),
# toGet = cms.VPSet(
# cms.PSet(
# record = cms.string('CTPPSPixelDAQMappingRcd'),
# tag = cms.string("PixelDAQMapping"),
# label = cms.untracked.string("RPix")
# ),
# cms.PSet(
# record = cms.string('CTPPSPixelAnalysisMaskRcd'),
# tag = cms.string("PixelAnalysisMask"),
# label = cms.untracked.string("RPix")
# )
#)
#)
# raw-to-digi conversion
#process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
# local RP reconstruction chain with standard settings
#process.load('Geometry.VeryForwardGeometry.geometryRP_cfi')
#process.load("RecoCTPPS.Configuration.recoCTPPS_cff")
############
process.o1 = cms.OutputModule("PoolOutputModule",
outputCommands = cms.untracked.vstring('drop *',
'keep CTPPSPixelClusteredmDetSetVector_clusterProd_*_*',
'keep CTPPSPixelRecHitedmDetSetVector_recHitProd_*_*',
),
fileName = cms.untracked.string('simevent_CTPPS_CLU_DAQ_real.root')
)
#process.load("RecoCTPPS.CTPPSPixelLocal.CTPPSPixelClusterizer_cfi")
process.clusterProd = cms.EDProducer("CTPPSPixelClusterProducer",
label=cms.untracked.string("ctppsPixelDigis"),
RPixVerbosity = cms.int32(0),
SeedADCThreshold = cms.int32(10),
ADCThreshold = cms.int32(10),
ElectronADCGain = cms.double(135.0),
VCaltoElectronOffset = cms.int32(-411),
VCaltoElectronGain = cms.int32(346),
CalibrationFile = cms.string("Gain_Fed_1462-1463_Run_107.root"),
DAQCalibration = cms.bool(True),
doSingleCalibration = cms.bool(False)
)
process.load("RecoCTPPS.CTPPSPixelLocal.CTPPSPixelRecHit_cfi")
process.rechitProd.RPixVerbosity = cms.int32(0)
process.rpixRecHitAnalyzer = cms.EDAnalyzer("CTPPSPixelRecHitAnalyzer",
label=cms.untracked.string("rechitProd"),
Verbosity = cms.int32(0)
)
process.mixedigi_step = cms.Path(
#process.ctppsPixelDigis
process.clusterProd
*process.rechitProd
#*process.rpixRecHitAnalyzer
)
process.outpath = cms.EndPath(process.o1)
process.schedule = cms.Schedule(process.mixedigi_step,process.outpath)
# filter all path with the production filter sequence
for path in process.paths:
# getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq
getattr(process,path)._seq = getattr(process,path)._seq