CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MCParticleReplacer_cfi.py
Go to the documentation of this file.
2 
5 
6 # Note: currently this is just a sketch and should not be used
7 
8 newSource = cms.EDProducer("MCParticleReplacer",
9  src = cms.InputTag("selectedMuons"),
10  beamSpotSrc = cms.InputTag("dummy"),
11  primaryVertexLabel = cms.InputTag("dummy"),
12  hepMcSrc = cms.InputTag("generator"),
13 
14  algorithm = cms.string("ParticleGun"), # "ParticleGun", "ZTauTau"
15  hepMcMode = cms.string("new"), # "new" for new HepMCProduct with taus and decay products,
16  # "replace" for replacing muons in the existing HepMCProcuct
17  verbose = cms.bool(False),
18 
19  ParticleGun = cms.PSet(
20  gunParticle = cms.int32(15),
21  particleOrigin = cms.string("muonReferencePoint"), # "primaryVertex", "muonReferencePoint"
22  forceTauPolarization = cms.string("W"), # "W", "H+", "h", "H", "A"
23  forceTauDecay = cms.string("none"), # "none", "hadrons", "1prong", "3prong"
24  forceTauPlusHelicity = cms.int32(0),
25  forceTauMinusHelicity = cms.int32(0),
26  generatorMode = cms.string("Tauola"), # "Tauola", "Pythia" (not implemented yet)
27  ExternalDecays = cms.PSet(
28  Tauola = cms.PSet(
29  TauolaPolar,
30  TauolaDefaultInputCards
31  ),
32  parameterSets = cms.vstring('Tauola')
33  ),
34  PythiaParameters = cms.PSet(
35  pythiaUESettingsBlock,
36  pgunTauolaParameters = cms.vstring(["MDME(%d,1)=0" % x for x in range(89, 143)]),
37  parameterSets = cms.vstring("pythiaUESettings")
38  ),
39  ),
40 
41  ZTauTau = cms.PSet(
42  TauolaOptions = cms.PSet(
43  TauolaPolar,
44  InputCards = cms.PSet
45  (
46  pjak1 = cms.int32(0),
47  pjak2 = cms.int32(0),
48  mdtau = cms.int32(102)
49  )
50  ),
51  filterEfficiency = cms.untracked.double(1.0),
52  pythiaHepMCVerbosity = cms.untracked.bool(False),
53  generatorMode = cms.string("Tauola"), # "Tauola", "Pythia" (not implemented yet)
54 
55  )
56 
57 )
58 
59 # Disable tau decays in Pythia for particle gun
60 def customise(process):
61  if process.newSource.generatorMode.value() != "Pythia" and abs(process.newSource.ParticleGun.gunParticle.value()) == 15:
62  process.newSource.ParticleGun.PythiaParameters.parameterSets.append("pgunTauolaParameters")
#define abs(x)
Definition: mlp_lapack.h:159