-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating PPS full sim in Run3 (only) #30575
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
808b7d4
Integrating PPS full sim in Run3 (only)
mundim 9739910
Rebasing and adding test config for ExHume generator for Run3
mundim b763eb5
PPS sim turned ON by LHCTransport boolean flag; PPS Digi has been rem…
mundim 3068bcb
code-format suggested changes
mundim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from EventFilter.RawDataCollector.rawDataCollector_cfi import * | ||
|
||
from EventFilter.CTPPSRawToDigi.ctppsPixelRawData_cfi import ctppsPixelRawData | ||
from EventFilter.CTPPSRawToDigi.ctppsTotemRawData_cfi import ctppsTotemRawData | ||
|
||
ctppsRawData = cms.Task() | ||
# The comment lines below will be included in the next PR for Run2 | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 | ||
#ctpps_2016.toReplaceWith(ctppsRawData, cms.Task(ctppsTotemRawData)) | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 | ||
#ctpps_2017.toReplaceWith(ctppsRawData, cms.Task(ctppsTotemRawData,ctppsPixelRawData)) | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 | ||
#ctpps_2018.toReplaceWith(ctppsRawData, cms.Task(ctppsPixelRawData)) | ||
|
||
from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 | ||
ctpps_2021.toReplaceWith(ctppsRawData, cms.Task(ctppsPixelRawData)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from SimTransport.PPSProtonTransport.PPSTransport_cff import LHCTransport | ||
|
||
|
||
PPSTransportTask = cms.Task() | ||
|
||
# The 2016-2018 commented line below need to be activated to integrate the simulation into Run2 | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 | ||
#ctpps_2016.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 | ||
#ctpps_2017.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) | ||
|
||
#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 | ||
#ctpps_2018.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) | ||
|
||
from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 | ||
ctpps_2021.toReplaceWith(PPSTransportTask, cms.Task(LHCTransport)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# PPS Digitization | ||
from SimPPS.PPSPixelDigiProducer.RPixDetDigitizer_cfi import * | ||
from SimPPS.RPDigiProducer.RPSiDetDigitizer_cfi import * | ||
RPixDetDigitizerTask=cms.Task(RPixDetDigitizer) | ||
RPSiDetDigitizerTask=cms.Task(RPSiDetDigitizer) | ||
|
||
ctppsDigiTask = cms.Task() | ||
|
||
# The commented lines below NEED to be activated in order to insert PPS into Run2 | ||
# add PPS 2016 digi modules | ||
#from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 | ||
#ctpps_2016.toReplaceWith( ctppsDigiTask, RPSiDetDigitizerTask) | ||
|
||
# add PPS 2017 digi modules | ||
#from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 | ||
#ctpps_2017Task = cms.Task(RPixDetDigitizer,RPSiDetDigitizer) | ||
#ctpps_2017.toReplaceWith(ctppsDigiTask, ctpps_2017Task) | ||
|
||
# add PPS 2018 digi modules | ||
#from Configuration.Eras.Modifier_ctpps_2018_cff import ctpps_2018 | ||
#ctpps_2018.toReplaceWith(ctppsDigiTask, RPixDetDigitizerTask) | ||
|
||
from Configuration.Eras.Modifier_ctpps_2021_cff import ctpps_2021 | ||
ctpps_2021.toReplaceWith(ctppsDigiTask, RPixDetDigitizerTask) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
import random | ||
import math | ||
|
||
from Configuration.StandardSequences.Eras import eras | ||
process = cms.Process('SIM',eras.Run2_2016) | ||
|
||
# import of standard configurations | ||
process.load("CondCore.CondDB.CondDB_cfi") | ||
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.MagneticField_cff') | ||
process.load('Configuration.StandardSequences.Generator_cff') | ||
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeV2016Collision_cfi') | ||
process.load('GeneratorInterface.Core.genFilterSummary_cff') | ||
process.load('Configuration.StandardSequences.SimIdeal_cff') | ||
process.load('Configuration.StandardSequences.EndOfProcess_cff') | ||
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') | ||
|
||
process.load('Configuration.Geometry.GeometryExtended2016_CTPPS_cff') | ||
|
||
process.RandomNumberGeneratorService.generator.initialSeed = cms.untracked.uint32(random.randint(0,900000000)) | ||
|
||
nEvent_ = 1000 | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(nEvent_) | ||
) | ||
|
||
process.source = cms.Source("EmptySource") | ||
""" | ||
process.source = cms.Source("EmptySource", | ||
#firstRun = cms.untracked.uint32(306572), # 2016H data | ||
#firstTime = cms.untracked.uint64(6487615523004612608) # this is needed because it lacks the MC tag, run based | ||
#firstRun = cms.untracked.uint32(273730), # 2016H data | ||
#firstTime = cms.untracked.uint64(6286859745043152896) # this is needed because it lacks the MC tag, run based | ||
firstRun = cms.untracked.uint32(282730), # 2016H data | ||
firstTime = cms.untracked.uint64(6339435345951588352) # this is needed because it lacks the MC tag, run based | ||
) | ||
""" | ||
|
||
process.options = cms.untracked.PSet() | ||
|
||
|
||
from Configuration.AlCa.GlobalTag import GlobalTag | ||
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') | ||
#process.GlobalTag = GlobalTag(process.GlobalTag, "106X_dataRun2_v26") | ||
|
||
# Production Info | ||
process.configurationMetadata = cms.untracked.PSet( | ||
annotation = cms.untracked.string('GeneratorInterface/ExhumeInterface/python/ExHuME_CEPDijetsGG_M100_7TeV_cff.py nevts:1'), | ||
name = cms.untracked.string('Applications'), | ||
version = cms.untracked.string('$Revision: 1.19 $') | ||
) | ||
|
||
# generator | ||
|
||
process.generator = cms.EDFilter("ExhumeGeneratorFilter", | ||
ExhumeParameters = cms.PSet( | ||
AlphaEw = cms.double(0.0072974), | ||
B = cms.double(4.0), | ||
BottomMass = cms.double(4.6), | ||
CharmMass = cms.double(1.42), | ||
HiggsMass = cms.double(120.0), | ||
HiggsVev = cms.double(246.0), | ||
LambdaQCD = cms.double(80.0), | ||
MinQt2 = cms.double(0.64), | ||
MuonMass = cms.double(0.1057), | ||
PDF = cms.double(11000), | ||
Rg = cms.double(1.2), | ||
StrangeMass = cms.double(0.19), | ||
Survive = cms.double(0.03), | ||
TauMass = cms.double(1.77), | ||
TopMass = cms.double(175.0), | ||
WMass = cms.double(80.33), | ||
ZMass = cms.double(91.187) | ||
), | ||
ExhumeProcess = cms.PSet( | ||
MassRangeHigh = cms.double(2000.0), | ||
MassRangeLow = cms.double(300.0), | ||
ProcessType = cms.string('GG'), | ||
ThetaMin = cms.double(0.3) | ||
), | ||
PythiaParameters = cms.PSet( | ||
parameterSets = cms.vstring() | ||
), | ||
comEnergy = cms.double(13000.0), | ||
maxEventsToPrint = cms.untracked.int32(2), | ||
pythiaHepMCVerbosity = cms.untracked.bool(False), | ||
pythiaPylistVerbosity = cms.untracked.int32(1) | ||
) | ||
|
||
process.ProductionFilterSequence = cms.Sequence(process.generator) | ||
|
||
############ | ||
process.o1 = cms.OutputModule("PoolOutputModule", | ||
outputCommands = cms.untracked.vstring('keep *'), | ||
fileName = cms.untracked.string('gluglu_step1_SIM2016.root') | ||
) | ||
|
||
process.generation_step = cms.Path(process.pgen) | ||
process.simulation_step = cms.Path(process.psim) | ||
process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) | ||
process.outpath = cms.EndPath(process.o1) | ||
process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_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 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to use
TRandom3
engine? @civanch