CMS 3D CMS Logo

customizeEcalOnlyForProfiling.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Customise the ECAL-only reconstruction to run on GPU
4 #
5 # Currently, this means running only the unpacker and multifit, up to the uncalbrated rechits
7 
8  process.consumer = cms.EDAnalyzer("GenericConsumer",
9  eventProducts = cms.untracked.vstring('ecalMultiFitUncalibRecHitGPU')
10  )
11 
12  process.consume_step = cms.EndPath(process.consumer)
13 
14  process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
15 
16  return process
17 
18 
19 # Customise the ECAL-only reconstruction to run on GPU, and copy the data to the host
20 #
21 # Currently, this means running only the unpacker and multifit, up to the uncalbrated rechits
23 
24  process.consumer = cms.EDAnalyzer("GenericConsumer",
25  eventProducts = cms.untracked.vstring('ecalMultiFitUncalibRecHitSoA')
26  )
27 
28  process.consume_step = cms.EndPath(process.consumer)
29 
30  process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
31 
32  return process
33 
34 
35 # Customise the ECAL-only reconstruction to run on GPU, copy the data to the host, and convert to legacy format
36 #
37 # Currently, this means running only the unpacker and multifit, up to the uncalbrated rechits, on the GPU
38 # and the rechits producer on the CPU
39 #
40 # The same customisation can be also used on the CPU workflow, running up to the rechits on CPU.
42 
43  process.consumer = cms.EDAnalyzer("GenericConsumer",
44  eventProducts = cms.untracked.vstring('ecalRecHit')
45  )
46 
47  process.consume_step = cms.EndPath(process.consumer)
48 
49  process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.consume_step)
50 
51  return process