CMS 3D CMS Logo

Functions | Variables
base_cff Namespace Reference

Functions

def SetLargeTheta (process)
 
def SetLevel1 (process)
 
def SetLevel2 (process)
 
def SetLevel3 (process)
 
def SetLevel4 (process)
 
def SetLowTheta (process)
 
def SetSmearingLevel1 (obj)
 
def SetSmearingLevel2 (obj)
 
def UseCrossingAngle (xangle, process)
 
def UseXangleBetaStarHistogram (process, f, obj)
 

Variables

 beamDivergenceVtxGenerator
 
 beamDivX45
 
 beamDivX56
 
 beamDivY45
 
 beamDivY56
 
 beamEnergy
 
 beamMom45
 
 beamMom56
 
 betaStar
 
 betaStarX45
 
 betaStarX56
 
 betaStarY45
 
 betaStarY56
 
 ctppsBeamParametersESSource
 
 ctppsDirectProtonSimulation
 
 ctppsLHCInfoESSource
 
 default_xangle_beta_star_file
 
 firstRun
 
 generator
 
 halfXangleX45
 
 halfXangleX56
 
 halfXangleY45
 
 halfXangleY56
 
 hepMCTag
 
 includeDiamonds
 
 initialSeed
 
 label
 
 numberEventsInLuminosityBlock
 
 pitchPixelsHor
 
 pitchPixelsVer
 
 pitchStrips
 
 produceHitsRelativeToBeam
 
 produceRecHits
 
 produceScoringPlaneHits
 
 RandomNumberGeneratorService
 
 recHitsTag
 
 roundToPitch
 
 setBeamPars
 
 source
 
 sourceSeed
 
 tagLocalTrackLite
 
 tagRecHit
 
 theta_x_sigma
 
 theta_y_sigma
 
 validityRange
 
 verbosity
 
 vtxOffsetT45
 
 vtxOffsetT56
 
 vtxOffsetX45
 
 vtxOffsetX56
 
 vtxOffsetY45
 
 vtxOffsetY56
 
 vtxOffsetZ45
 
 vtxOffsetZ56
 
 vtxStddevT
 
 vtxStddevX
 
 vtxStddevY
 
 vtxStddevZ
 
 xangle
 
 xi_max
 

Function Documentation

◆ SetLargeTheta()

def base_cff.SetLargeTheta (   process)

Definition at line 167 of file base_cff.py.

167 def SetLargeTheta(process):
168  pass
169 
170 # xangle in murad

◆ SetLevel1()

def base_cff.SetLevel1 (   process)

Definition at line 131 of file base_cff.py.

131 def SetLevel1(process):
132  if hasattr(process, "ctppsBeamParametersESSource"):
133  SetSmearingLevel1(process.ctppsBeamParametersESSource)
134  else:
135  SetSmearingLevel1(process.ctppsBeamParametersFromLHCInfoESSource)
136 
137  process.ctppsDirectProtonSimulation.roundToPitch = False
138 

References SetSmearingLevel1().

◆ SetLevel2()

def base_cff.SetLevel2 (   process)

Definition at line 145 of file base_cff.py.

145 def SetLevel2(process):
146  if hasattr(process, "ctppsBeamParametersESSource"):
147  SetSmearingLevel2(process.ctppsBeamParametersESSource)
148  else:
149  SetSmearingLevel2(process.ctppsBeamParametersFromLHCInfoESSource)
150 
151  process.ctppsDirectProtonSimulation.roundToPitch = False
152 
153 

References SetSmearingLevel2().

◆ SetLevel3()

def base_cff.SetLevel3 (   process)

Definition at line 154 of file base_cff.py.

154 def SetLevel3(process):
155  process.ctppsDirectProtonSimulation.roundToPitch = False
156 
157 

◆ SetLevel4()

def base_cff.SetLevel4 (   process)

Definition at line 158 of file base_cff.py.

158 def SetLevel4(process):
159  pass
160 
161 

◆ SetLowTheta()

def base_cff.SetLowTheta (   process)

Definition at line 162 of file base_cff.py.

162 def SetLowTheta(process):
163  process.generator.theta_x_sigma = 0E-6
164  process.generator.theta_y_sigma = 0E-6
165 
166 

◆ SetSmearingLevel1()

def base_cff.SetSmearingLevel1 (   obj)

Definition at line 122 of file base_cff.py.

122 def SetSmearingLevel1(obj):
123  obj.vtxStddevX = 0E-4
124  obj.vtxStddevZ = 0
125 
126  obj.beamDivX45 = 0E-6
127  obj.beamDivX56 = 0E-6
128  obj.beamDivY45 = 0E-6
129  obj.beamDivY56 = 0E-6
130 

Referenced by SetLevel1().

◆ SetSmearingLevel2()

def base_cff.SetSmearingLevel2 (   obj)

Definition at line 139 of file base_cff.py.

139 def SetSmearingLevel2(obj):
140  obj.beamDivX45 = 0E-6
141  obj.beamDivX56 = 0E-6
142  obj.beamDivY45 = 0E-6
143  obj.beamDivY56 = 0E-6
144 

Referenced by SetLevel2().

◆ UseCrossingAngle()

def base_cff.UseCrossingAngle (   xangle,
  process 
)

Definition at line 171 of file base_cff.py.

171 def UseCrossingAngle(xangle, process):
172  process.ctppsLHCInfoESSource.xangle = xangle
173  process.ctppsBeamParametersESSource.halfXangleX45 = xangle * 1E-6
174  process.ctppsBeamParametersESSource.halfXangleX56 = xangle * 1E-6
175 

Referenced by year_2018_postTS2_cff.UseDefaultXangleBetaStar(), year_2018_TS1_TS2_cff.UseDefaultXangleBetaStar(), year_2018_preTS1_cff.UseDefaultXangleBetaStar(), year_2017_preTS2_cff.UseDefaultXangleBetaStar(), year_2017_postTS2_cff.UseDefaultXangleBetaStar(), year_2016_postTS2_cff.UseDefaultXangleBetaStar(), and year_2016_preTS2_cff.UseDefaultXangleBetaStar().

◆ UseXangleBetaStarHistogram()

def base_cff.UseXangleBetaStarHistogram (   process,
  f,
  obj 
)

Definition at line 178 of file base_cff.py.

178 def UseXangleBetaStarHistogram(process, f, obj):
179  process.load("CalibPPS.ESProducers.ctppsLHCInfoRandomXangleESSource_cfi")
180  process.ctppsLHCInfoRandomXangleESSource.generateEveryNEvents = 10 # this is to be synchronised with source.numberEventsInLuminosityBlock
181  process.ctppsLHCInfoRandomXangleESSource.xangleBetaStarHistogramFile = f
182  process.ctppsLHCInfoRandomXangleESSource.xangleBetaStarHistogramObject = obj
183  process.ctppsLHCInfoRandomXangleESSource.beamEnergy = ctppsLHCInfoESSource.beamEnergy
184 
185  del process.ctppsLHCInfoESSource
186 
187  process.load("CalibPPS.ESProducers.ctppsBeamParametersFromLHCInfoESSource_cfi")
188  process.ctppsBeamParametersFromLHCInfoESSource.beamDivX45 = process.ctppsBeamParametersESSource.beamDivX45
189  process.ctppsBeamParametersFromLHCInfoESSource.beamDivX56 = process.ctppsBeamParametersESSource.beamDivX56
190  process.ctppsBeamParametersFromLHCInfoESSource.beamDivY45 = process.ctppsBeamParametersESSource.beamDivY45
191  process.ctppsBeamParametersFromLHCInfoESSource.beamDivY56 = process.ctppsBeamParametersESSource.beamDivY56
192  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetX45 = process.ctppsBeamParametersESSource.vtxOffsetX45
193  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetX56 = process.ctppsBeamParametersESSource.vtxOffsetX56
194  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetY45 = process.ctppsBeamParametersESSource.vtxOffsetY45
195  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetY56 = process.ctppsBeamParametersESSource.vtxOffsetY56
196  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetZ45 = process.ctppsBeamParametersESSource.vtxOffsetZ45
197  process.ctppsBeamParametersFromLHCInfoESSource.vtxOffsetZ56 = process.ctppsBeamParametersESSource.vtxOffsetZ56
198  process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevX = process.ctppsBeamParametersESSource.vtxStddevX
199  process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevY = process.ctppsBeamParametersESSource.vtxStddevY
200  process.ctppsBeamParametersFromLHCInfoESSource.vtxStddevZ = process.ctppsBeamParametersESSource.vtxStddevZ
201 
202  del process.ctppsBeamParametersESSource

Referenced by year_2018_postTS2_cff.UseDefaultXangleBetaStarDistribution(), year_2018_TS1_TS2_cff.UseDefaultXangleBetaStarDistribution(), year_2018_preTS1_cff.UseDefaultXangleBetaStarDistribution(), year_2017_preTS2_cff.UseDefaultXangleBetaStarDistribution(), year_2017_postTS2_cff.UseDefaultXangleBetaStarDistribution(), year_2016_postTS2_cff.UseDefaultXangleBetaStarDistribution(), and year_2016_preTS2_cff.UseDefaultXangleBetaStarDistribution().

Variable Documentation

◆ beamDivergenceVtxGenerator

base_cff.beamDivergenceVtxGenerator

Definition at line 74 of file base_cff.py.

◆ beamDivX45

base_cff.beamDivX45

Definition at line 39 of file base_cff.py.

◆ beamDivX56

base_cff.beamDivX56

Definition at line 40 of file base_cff.py.

◆ beamDivY45

base_cff.beamDivY45

Definition at line 41 of file base_cff.py.

◆ beamDivY56

base_cff.beamDivY56

Definition at line 42 of file base_cff.py.

◆ beamEnergy

base_cff.beamEnergy

Definition at line 19 of file base_cff.py.

◆ beamMom45

base_cff.beamMom45

Definition at line 29 of file base_cff.py.

◆ beamMom56

base_cff.beamMom56

Definition at line 30 of file base_cff.py.

◆ betaStar

base_cff.betaStar

Definition at line 21 of file base_cff.py.

◆ betaStarX45

base_cff.betaStarX45

Definition at line 33 of file base_cff.py.

◆ betaStarX56

base_cff.betaStarX56

Definition at line 34 of file base_cff.py.

◆ betaStarY45

base_cff.betaStarY45

Definition at line 35 of file base_cff.py.

◆ betaStarY56

base_cff.betaStarY56

Definition at line 36 of file base_cff.py.

◆ ctppsBeamParametersESSource

base_cff.ctppsBeamParametersESSource

Definition at line 25 of file base_cff.py.

◆ ctppsDirectProtonSimulation

base_cff.ctppsDirectProtonSimulation

Definition at line 75 of file base_cff.py.

◆ ctppsLHCInfoESSource

base_cff.ctppsLHCInfoESSource

Definition at line 16 of file base_cff.py.

◆ default_xangle_beta_star_file

base_cff.default_xangle_beta_star_file

Definition at line 176 of file base_cff.py.

◆ firstRun

base_cff.firstRun

Definition at line 80 of file base_cff.py.

◆ generator

base_cff.generator

Definition at line 73 of file base_cff.py.

◆ halfXangleX45

base_cff.halfXangleX45

Definition at line 45 of file base_cff.py.

◆ halfXangleX56

base_cff.halfXangleX56

Definition at line 46 of file base_cff.py.

◆ halfXangleY45

base_cff.halfXangleY45

Definition at line 47 of file base_cff.py.

◆ halfXangleY56

base_cff.halfXangleY56

Definition at line 48 of file base_cff.py.

◆ hepMCTag

base_cff.hepMCTag

Definition at line 96 of file base_cff.py.

◆ includeDiamonds

base_cff.includeDiamonds

Definition at line 115 of file base_cff.py.

◆ initialSeed

base_cff.initialSeed

Definition at line 72 of file base_cff.py.

◆ label

base_cff.label

Definition at line 17 of file base_cff.py.

◆ numberEventsInLuminosityBlock

base_cff.numberEventsInLuminosityBlock

Definition at line 81 of file base_cff.py.

◆ pitchPixelsHor

base_cff.pitchPixelsHor

Definition at line 99 of file base_cff.py.

◆ pitchPixelsVer

base_cff.pitchPixelsVer

Definition at line 100 of file base_cff.py.

◆ pitchStrips

base_cff.pitchStrips

Definition at line 98 of file base_cff.py.

◆ produceHitsRelativeToBeam

base_cff.produceHitsRelativeToBeam

Definition at line 101 of file base_cff.py.

◆ produceRecHits

base_cff.produceRecHits

Definition at line 103 of file base_cff.py.

◆ produceScoringPlaneHits

base_cff.produceScoringPlaneHits

Definition at line 102 of file base_cff.py.

◆ RandomNumberGeneratorService

base_cff.RandomNumberGeneratorService

Definition at line 71 of file base_cff.py.

◆ recHitsTag

base_cff.recHitsTag

Definition at line 113 of file base_cff.py.

◆ roundToPitch

base_cff.roundToPitch

Definition at line 97 of file base_cff.py.

◆ setBeamPars

base_cff.setBeamPars

Definition at line 26 of file base_cff.py.

◆ source

base_cff.source

Definition at line 79 of file base_cff.py.

◆ sourceSeed

base_cff.sourceSeed

Definition at line 72 of file base_cff.py.

◆ tagLocalTrackLite

base_cff.tagLocalTrackLite

Definition at line 118 of file base_cff.py.

◆ tagRecHit

base_cff.tagRecHit

Definition at line 111 of file base_cff.py.

◆ theta_x_sigma

base_cff.theta_x_sigma

Definition at line 87 of file base_cff.py.

◆ theta_y_sigma

base_cff.theta_y_sigma

Definition at line 88 of file base_cff.py.

◆ validityRange

base_cff.validityRange

Definition at line 18 of file base_cff.py.

◆ verbosity

base_cff.verbosity

Definition at line 95 of file base_cff.py.

◆ vtxOffsetT45

base_cff.vtxOffsetT45

Definition at line 57 of file base_cff.py.

◆ vtxOffsetT56

base_cff.vtxOffsetT56

Definition at line 58 of file base_cff.py.

◆ vtxOffsetX45

base_cff.vtxOffsetX45

Definition at line 51 of file base_cff.py.

◆ vtxOffsetX56

base_cff.vtxOffsetX56

Definition at line 52 of file base_cff.py.

◆ vtxOffsetY45

base_cff.vtxOffsetY45

Definition at line 53 of file base_cff.py.

◆ vtxOffsetY56

base_cff.vtxOffsetY56

Definition at line 54 of file base_cff.py.

◆ vtxOffsetZ45

base_cff.vtxOffsetZ45

Definition at line 55 of file base_cff.py.

◆ vtxOffsetZ56

base_cff.vtxOffsetZ56

Definition at line 56 of file base_cff.py.

◆ vtxStddevT

base_cff.vtxStddevT

Definition at line 64 of file base_cff.py.

◆ vtxStddevX

base_cff.vtxStddevX

Definition at line 61 of file base_cff.py.

◆ vtxStddevY

base_cff.vtxStddevY

Definition at line 62 of file base_cff.py.

◆ vtxStddevZ

base_cff.vtxStddevZ

Definition at line 63 of file base_cff.py.

◆ xangle

base_cff.xangle

Definition at line 20 of file base_cff.py.

◆ xi_max

base_cff.xi_max

Definition at line 86 of file base_cff.py.

base_cff.SetLevel1
def SetLevel1(process)
Definition: base_cff.py:131
base_cff.SetLargeTheta
def SetLargeTheta(process)
Definition: base_cff.py:167
base_cff.SetLowTheta
def SetLowTheta(process)
Definition: base_cff.py:162
base_cff.SetSmearingLevel1
def SetSmearingLevel1(obj)
Definition: base_cff.py:122
base_cff.SetLevel4
def SetLevel4(process)
Definition: base_cff.py:158
base_cff.UseCrossingAngle
def UseCrossingAngle(xangle, process)
Definition: base_cff.py:171
base_cff.SetLevel2
def SetLevel2(process)
Definition: base_cff.py:145
base_cff.UseXangleBetaStarHistogram
def UseXangleBetaStarHistogram(process, f, obj)
Definition: base_cff.py:178
base_cff.SetSmearingLevel2
def SetSmearingLevel2(obj)
Definition: base_cff.py:139
base_cff.SetLevel3
def SetLevel3(process)
Definition: base_cff.py:154