CMS 3D CMS Logo

Functions | Variables
directSimPPS_cff Namespace Reference

Functions

def _modify2016 (process)
 
def _modify2017 (process)
 
def _modify2018 (process)
 
def _modify2022 (process)
 
def unshiftVertex (process, smearingParams)
 

Variables

 directSimPPS
 
 directSimPPSTask
 
 modifyConfigurationStandardSequencesFor2016_
 
 modifyConfigurationStandardSequencesFor2017_
 
 modifyConfigurationStandardSequencesFor2018_
 
 modifyConfigurationStandardSequencesFor2022_
 

Function Documentation

◆ _modify2016()

def directSimPPS_cff._modify2016 (   process)
private

Definition at line 27 of file directSimPPS_cff.py.

References print(), and unshiftVertex().

27 def _modify2016(process):
28  print('Process customised for 2016 PPS era')
29  process.load('SimPPS.DirectSimProducer.simPPS2016_cfi')
30  unshiftVertex(process, 'Realistic25ns13TeV2016CollisionVtxSmearingParameters')
31 
def unshiftVertex(process, smearingParams)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def _modify2016(process)

◆ _modify2017()

def directSimPPS_cff._modify2017 (   process)
private

Definition at line 32 of file directSimPPS_cff.py.

References print(), and unshiftVertex().

32 def _modify2017(process):
33  print('Process customised for 2017 PPS era')
34  process.load('SimPPS.DirectSimProducer.simPPS2017_cfi')
35  unshiftVertex(process, 'Realistic25ns13TeVEarly2017CollisionVtxSmearingParameters')
36 
def _modify2017(process)
def unshiftVertex(process, smearingParams)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ _modify2018()

def directSimPPS_cff._modify2018 (   process)
private

Definition at line 37 of file directSimPPS_cff.py.

References print(), and unshiftVertex().

37 def _modify2018(process):
38  print('Process customised for 2018 PPS era')
39  process.load('SimPPS.DirectSimProducer.simPPS2018_cfi')
40  unshiftVertex(process, 'Realistic25ns13TeVEarly2018CollisionVtxSmearingParameters')
41 
def unshiftVertex(process, smearingParams)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def _modify2018(process)

◆ _modify2022()

def directSimPPS_cff._modify2022 (   process)
private

Definition at line 42 of file directSimPPS_cff.py.

References print().

42 def _modify2022(process):
43  print('Process customised for 2022 PPS era')
44  process.load('SimPPS.DirectSimProducer.simPPS2022_cfi')
45  if hasattr(process, 'generator'):
46  process.generator.energy = process.profile_2022_default.ctppsLHCInfo.beamEnergy
47  if hasattr(process, 'ctppsGeometryESModule'):
48  # replaced by the composite ESSource
49  delattr(process, 'ctppsGeometryESModule')
50 
def _modify2022(process)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ unshiftVertex()

def directSimPPS_cff.unshiftVertex (   process,
  smearingParams 
)
Undo vertex smearing using the parameters used for the sample production

Definition at line 12 of file directSimPPS_cff.py.

Referenced by _modify2016(), _modify2017(), and _modify2018().

12 def unshiftVertex(process, smearingParams):
13  """Undo vertex smearing using the parameters used for the sample production"""
14  if not hasattr(process, 'ctppsBeamParametersFromLHCInfoESSource'):
15  return
16  from importlib import import_module
17  _params = import_module('IOMC.EventVertexGenerators.VtxSmearedParameters_cfi')
18  if not hasattr(_params, smearingParams):
19  raise ImportError('Failed to import {} from vertex smearing parameters!'.format(smearingParams))
20  _params = getattr(_params, smearingParams)
21  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetX45 = cms.double(-_params.X0.value())
22  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetY45 = cms.double(-_params.Y0.value())
23  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetZ45 = cms.double(-_params.Z0.value())
24 
25 # modify according to era
26 
def unshiftVertex(process, smearingParams)

Variable Documentation

◆ directSimPPS

directSimPPS_cff.directSimPPS

Definition at line 10 of file directSimPPS_cff.py.

◆ directSimPPSTask

directSimPPS_cff.directSimPPSTask

Definition at line 5 of file directSimPPS_cff.py.

◆ modifyConfigurationStandardSequencesFor2016_

directSimPPS_cff.modifyConfigurationStandardSequencesFor2016_

Definition at line 51 of file directSimPPS_cff.py.

◆ modifyConfigurationStandardSequencesFor2017_

directSimPPS_cff.modifyConfigurationStandardSequencesFor2017_

Definition at line 52 of file directSimPPS_cff.py.

◆ modifyConfigurationStandardSequencesFor2018_

directSimPPS_cff.modifyConfigurationStandardSequencesFor2018_

Definition at line 53 of file directSimPPS_cff.py.

◆ modifyConfigurationStandardSequencesFor2022_

directSimPPS_cff.modifyConfigurationStandardSequencesFor2022_

Definition at line 54 of file directSimPPS_cff.py.