CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def Exotica_HSCP_SIM_cfi.customise (   process)

Definition at line 3 of file Exotica_HSCP_SIM_cfi.py.

3 
4 def customise(process):
5 
6  FLAVOR = process.generator.hscpFlavor.value()
7  MASS_POINT = process.generator.massPoint.value()
8  SLHA_FILE = process.generator.slhaFile.value()
9  PROCESS_FILE = process.generator.processFile.value()
10  PARTICLE_FILE = process.generator.particleFile.value()
11  USE_REGGE = process.generator.useregge.value()
12 
13  process.load("SimG4Core.CustomPhysics.CustomPhysics_cfi")
14  process.customPhysicsSetup.particlesDef = PARTICLE_FILE
15  process.customPhysicsSetup.reggeModel = USE_REGGE
16  process.g4SimHits.Watchers = cms.VPSet (
17  cms.PSet(
18  type = cms.string('RHStopTracer'),
19  RHStopTracer = cms.PSet(
20  verbose = cms.untracked.bool (False),
21  traceParticle = cms.string ("(~|tau1).*"),
22  stopRegularParticles = cms.untracked.bool (False)
23  )
24  )
25  )
26 
27 
28  if FLAVOR=="gluino" or FLAVOR=="stop":
29  process.customPhysicsSetup.processesDef = PROCESS_FILE
30  process.g4SimHits.Physics = cms.PSet(
31  process.customPhysicsSetup,
32  DummyEMPhysics = cms.bool(True),
33  G4BremsstrahlungThreshold = cms.double(0.5), ## cut in GeV
34  DefaultCutValue = cms.double(1.), ## cuts in cm,default 1cm
35  CutsPerRegion = cms.bool(True),
36  CutsOnProton = cms.bool(True),
37  Verbosity = cms.untracked.int32(0),
38  type = cms.string('SimG4Core/Physics/CustomPhysics'),
39  EMPhysics = cms.untracked.bool(True), ##G4 default true
40  HadPhysics = cms.untracked.bool(True), ##G4 default true
41  FlagBERT = cms.untracked.bool(False),
42  FlagMuNucl = cms.bool(False),
43  FlagFluo = cms.bool(False),
44  GFlash = cms.PSet(
45  GflashHistogram = cms.bool(False),
46  GflashEMShowerModel = cms.bool(False),
47  GflashHadronPhysics = cms.string('QGSP_BERT_EMV'),
48  GflashHadronShowerModel = cms.bool(False)
49  )
50  )
51  process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
52 
53  elif FLAVOR =="stau":
54  process.g4SimHits.Physics = cms.PSet(
55  process.customPhysicsSetup,
56  DummyEMPhysics = cms.bool(True),
57  G4BremsstrahlungThreshold = cms.double(0.5), ## cut in GeV
58  DefaultCutValue = cms.double(1.), ## cuts in cm,default 1cm
59  CutsPerRegion = cms.bool(True),
60  CutsOnProton = cms.bool(True),
61  Verbosity = cms.untracked.int32(0),
62  type = cms.string('SimG4Core/Physics/CustomPhysics'),
63  )
64  process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
65 
66  else:
67  print "Wrong flavor %s. Only accepted are gluino, stau, stop." % FLAVOR
68 
69  return process
70