CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customise_mixing Namespace Reference

Functions

def customise_NoCrossing
 
def customise_NoCrossing_PU
 
def customise_pixelMixing
 
def customise_pixelMixing_PU
 

Function Documentation

def customise_mixing.customise_NoCrossing (   process)

Definition at line 21 of file customise_mixing.py.

Referenced by customise_NoCrossing_PU(), and combinedCustoms.noCrossing().

21 
22 def customise_NoCrossing(process):
23  process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring(
24  'BSCHits',
25  'FP420SI',
26  'MuonCSCHits',
27  'MuonDTHits',
28  'MuonRPCHits',
29  'TotemHitsRP',
30  'TotemHitsT1',
31  'TotemHitsT2Gem')
32  process.mix.mixObjects.mixCH.crossingFrames = cms.untracked.vstring('')
33  process.mix.mixObjects.mixTracks.makeCrossingFrame = cms.untracked.bool(False)
34 # process.mix.mixObjects.mixVertices.makeCrossingFrame = cms.untracked.bool(False)
35  process.mix.mixObjects.mixHepMC.makeCrossingFrame = cms.untracked.bool(False)
36  return (process)
def customise_mixing.customise_NoCrossing_PU (   process)

Definition at line 53 of file customise_mixing.py.

References customise_NoCrossing(), and customise_pixelMixing_PU().

53 
54 def customise_NoCrossing_PU(process):
55  process=customise_pixelMixing_PU(process)
56  process=customise_NoCrossing(process)
57  return (process)
58 
def customise_mixing.customise_pixelMixing (   process)

Definition at line 4 of file customise_mixing.py.

4 
5 def customise_pixelMixing(process):
6  process.mix.digitizers.pixel.MissCalibrate = False
7  process.mix.digitizers.pixel.LorentzAngle_DB = False
8  process.mix.digitizers.pixel.killModules = False
9  process.mix.digitizers.pixel.useDB = False
10  process.mix.digitizers.pixel.DeadModules_DB = False
11  process.mix.digitizers.pixel.NumPixelBarrel = cms.int32(4)
12  process.mix.digitizers.pixel.NumPixelEndcap = cms.int32(3)
13  process.mix.digitizers.pixel.ThresholdInElectrons_FPix = cms.double(2000.0)
14  process.mix.digitizers.pixel.ThresholdInElectrons_BPix = cms.double(2000.0)
15  process.mix.digitizers.pixel.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
16  process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(0.999)
17  process.mix.digitizers.pixel.thePixelEfficiency_BPix4 = cms.double(0.999)
18  process.mix.digitizers.pixel.thePixelChipEfficiency_BPix4 = cms.double(0.999)
19  return (process)
20 
# Remove the Crossing Frames to save memory
def customise_mixing.customise_pixelMixing_PU (   process)

Definition at line 37 of file customise_mixing.py.

Referenced by phase1TkCustoms.customise_Digi(), and customise_NoCrossing_PU().

37 
38 def customise_pixelMixing_PU(process):
39  if hasattr(process,'mix'):
40  n=0
41  if hasattr(process.mix,'input'):
42  n=process.mix.input.nbPileupEvents.averageNumber.value()
43  if n>0:
44  process.mix.digitizers.pixel.thePixelColEfficiency_BPix1 = cms.double(1.0-(0.0238*n/50.0))
45  process.mix.digitizers.pixel.thePixelColEfficiency_BPix2 = cms.double(1.0-(0.0046*n/50.0))
46  process.mix.digitizers.pixel.thePixelColEfficiency_BPix3 = cms.double(1.0-(0.0018*n/50.0))
47  process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(1.0-(0.0008*n/50.0))
48  process.mix.digitizers.pixel.thePixelColEfficiency_FPix1 = cms.double(1.0-(0.0018*n/50.0))
49  process.mix.digitizers.pixel.thePixelColEfficiency_FPix2 = cms.double(1.0-(0.0018*n/50.0))
50  process.mix.digitizers.pixel.thePixelColEfficiency_FPix3 = cms.double(1.0-(0.0018*n/50.0))
51 
52  return (process)