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  Verbosity = cms.untracked.int32(0),
37  type = cms.string('SimG4Core/Physics/CustomPhysics'),
38  EMPhysics = cms.untracked.bool(True), ##G4 default true
39  HadPhysics = cms.untracked.bool(True), ##G4 default true
40  FlagBERT = cms.untracked.bool(False),
41  FlagCHIPS = cms.untracked.bool(False),
42  FlagFTF = cms.untracked.bool(False),
43  FlagGlauber = cms.untracked.bool(False),
44  FlagHP = cms.untracked.bool(False),
45  GFlash = cms.PSet(
46  GflashHistogram = cms.bool(False),
47  GflashEMShowerModel = cms.bool(False),
48  GflashHadronPhysics = cms.string('QGSP_BERT_EMV'),
49  GflashHadronShowerModel = cms.bool(False)
50  )
51  )
52  process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
53 
54  elif FLAVOR =="stau":
55  process.g4SimHits.Physics = cms.PSet(
56  process.customPhysicsSetup,
57  DummyEMPhysics = cms.bool(True),
58  G4BremsstrahlungThreshold = cms.double(0.5), ## cut in GeV
59  DefaultCutValue = cms.double(1.), ## cuts in cm,default 1cm
60  CutsPerRegion = 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