Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-23 03:28:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def CloseByParticleGunProducer(*args, **kwargs):
0004   mod = cms.EDProducer('CloseByParticleGunProducer',
0005     AddAntiParticle = cms.bool(False),
0006     PGunParameters = cms.PSet(
0007       ControlledByEta = cms.bool(False),
0008       ControlledByREta = cms.bool(False),
0009       Delta = cms.double(10),
0010       VarMax = cms.double(200),
0011       VarMin = cms.double(25),
0012       MaxVarSpread = cms.bool(False),
0013       LogSpacedVar = cms.bool(False),
0014       FlatPtGeneration = cms.bool(False),
0015       MaxEta = cms.double(2.7),
0016       MaxPhi = cms.double(3.14159265359),
0017       MinEta = cms.double(1.7),
0018       MinPhi = cms.double(-3.14159265359),
0019       NParticles = cms.int32(2),
0020       Overlapping = cms.bool(False),
0021       PartID = cms.vint32(22),
0022       Pointing = cms.bool(True),
0023       RMax = cms.double(120),
0024       RMin = cms.double(60),
0025       RandomShoot = cms.bool(False),
0026       ZMax = cms.double(321),
0027       ZMin = cms.double(320),
0028       UseDeltaT = cms.bool(False),
0029       TMin = cms.double(0),
0030       TMax = cms.double(0.05),
0031       OffsetFirst = cms.double(0)
0032     ),
0033     Verbosity = cms.untracked.int32(0),
0034     firstRun = cms.untracked.uint32(1),
0035     psethack = cms.string('random particles in phi and r windows'),
0036     mightGet = cms.optional.untracked.vstring
0037   )
0038   for a in args:
0039     mod.update_(a)
0040   mod.update_(kwargs)
0041   return mod