Skip to content

Commit

Permalink
Read VertexSmearing from GT in Run-1/2/3 MC
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobrivio committed Nov 9, 2023
1 parent 7d99d30 commit f88656d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2566,111 +2566,111 @@ def condition(self, fragment, stepList, key, hasHarvest):
'GT' : 'auto:phase1_2017_design',
'HLTmenu': '@relval2017',
'Era' : 'Run2_2017',
'BeamSpot': 'GaussSigmaZ4cm',
'BeamSpot': 'DBdesign',
'ScenToRun' : ['GenSim','Digi','RecoFakeHLT','HARVESTFakeHLT'],
},
'2018' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2018_realistic',
'HLTmenu': '@relval2018',
'Era' : 'Run2_2018',
'BeamSpot': 'Realistic25ns13TeVEarly2018Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoFakeHLT','HARVESTFakeHLT','ALCA','Nano'],
},
'2018Design' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2018_design',
'HLTmenu': '@relval2018',
'Era' : 'Run2_2018',
'BeamSpot': 'GaussSigmaZ4cm',
'BeamSpot': 'DBdesign',
'ScenToRun' : ['GenSim','Digi','RecoFakeHLT','HARVESTFakeHLT'],
},
'2021' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2022_realistic',
'HLTmenu': '@relval2022',
'Era' : 'Run3',
'BeamSpot': 'Realistic25ns13p6TeVEOY2022Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNanoFakeHLT','HARVESTNanoFakeHLT','ALCA'],
},
'2021Design' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2022_design',
'HLTmenu': '@relval2022',
'Era' : 'Run3',
'BeamSpot': 'GaussSigmaZ4cm',
'BeamSpot': 'DBdesign',
'ScenToRun' : ['GenSim','Digi','RecoNanoFakeHLT','HARVESTNanoFakeHLT'],
},
'2023' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2023_realistic',
'HLTmenu': '@relval2023',
'Era' : 'Run3_2023',
'BeamSpot': 'Realistic25ns13p6TeVEarly2023Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
},
'2024' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2024_realistic',
'HLTmenu': '@relval2023',
'Era' : 'Run3',
'BeamSpot': 'Realistic25ns13p6TeVEarly2022Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
},
'2021FS' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2022_realistic',
'HLTmenu': '@relval2022',
'Era' : 'Run3_FastSim',
'BeamSpot': 'Realistic25ns13p6TeVEarly2022Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['Gen','FastSimRun3','HARVESTFastRun3'],
},
'2021postEE' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2022_realistic_postEE',
'HLTmenu': '@relval2022',
'Era' : 'Run3',
'BeamSpot': 'Realistic25ns13p6TeVEarly2022Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNanoFakeHLT','HARVESTNanoFakeHLT','ALCA'],
},
'2023FS' : {
'Geom' : 'DB:Extended',
'GT' : 'auto:phase1_2023_realistic',
'HLTmenu': '@relval2023',
'Era' : 'Run3_2023_FastSim',
'BeamSpot': 'Realistic25ns13p6TeVEarly2023Collision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['Gen','FastSimRun3','HARVESTFastRun3'],
},
'2022HI' : {
'Geom' : 'DB:Extended',
'GT':'auto:phase1_2022_realistic_hi',
'HLTmenu': '@fake2',
'Era':'Run3_pp_on_PbPb',
'BeamSpot': 'Realistic2022PbPbCollision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
},
'2022HIRP' : {
'Geom' : 'DB:Extended',
'GT':'auto:phase1_2022_realistic_hi',
'HLTmenu': '@fake2',
'Era':'Run3_pp_on_PbPb_approxSiStripClusters',
'BeamSpot': 'Realistic2022PbPbCollision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
},
'2023HI' : {
'Geom' : 'DB:Extended',
'GT':'auto:phase1_2023_realistic_hi',
'HLTmenu': '@fake2',
'Era':'Run3_pp_on_PbPb',
'BeamSpot': 'Realistic2022PbPbCollision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
},
'2023HIRP' : {
'Geom' : 'DB:Extended',
'GT':'auto:phase1_2023_realistic_hi',
'HLTmenu': '@fake2',
'Era':'Run3_pp_on_PbPb_approxSiStripClusters',
'BeamSpot': 'Realistic2022PbPbCollision',
'BeamSpot': 'DBrealistic',
'ScenToRun' : ['GenSim','Digi','RecoNano','HARVESTNano','ALCA'],
}
}
Expand Down
2 changes: 2 additions & 0 deletions Configuration/StandardSequences/python/VtxSmeared.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
VtxSmeared = {
'DBdesign': 'IOMC.EventVertexGenerators.VtxSmearedDesign_cfi',
'DBrealistic': 'IOMC.EventVertexGenerators.VtxSmearedRealistic_cfi',
'NoSmear': 'Configuration.StandardSequences.VtxSmearedNoSmear_cff',
'BetafuncEarlyCollision': 'IOMC.EventVertexGenerators.VtxSmearedBetafuncEarlyCollision_cfi',
'BeamProfile': 'IOMC.EventVertexGenerators.VtxSmearedBeamProfile_cfi',
Expand Down
11 changes: 11 additions & 0 deletions IOMC/EventVertexGenerators/python/VtxSmearedDesign_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import FWCore.ParameterSet.Config as cms

# Load GaussEvtVtx Generator and read parameters from GT (SimBeamSpotObjectRcd)
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import VtxSmearedCommon
VtxSmeared = cms.EDProducer("GaussEvtVtxGenerator",
VtxSmearedCommon
)
VtxSmeared.readDB = True



11 changes: 11 additions & 0 deletions IOMC/EventVertexGenerators/python/VtxSmearedRealistic_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import FWCore.ParameterSet.Config as cms

# Load BetafuncEvtVtx Generator and read parameters from GT (SimBeamSpotObjectRcd)
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import VtxSmearedCommon
VtxSmeared = cms.EDProducer("BetafuncEvtVtxGenerator",
VtxSmearedCommon
)
VtxSmeared.readDB = True



0 comments on commit f88656d

Please sign in to comment.