CMS 3D CMS Logo

Functions
TB2006Analysis_cfi Namespace Reference

Functions

def testbeam2006 (process)
 

Function Documentation

◆ testbeam2006()

def TB2006Analysis_cfi.testbeam2006 (   process)

Definition at line 5 of file TB2006Analysis_cfi.py.

References mathSSE.return().

5 def testbeam2006(process):
6 
7  process.load('FWCore.MessageService.MessageLogger_cfi')
8  process.load('Configuration.StandardSequences.Services_cff')
9  process.load('SimGeneral.HepPDTESSource.pdt_cfi')
10  process.load('Configuration.EventContent.EventContent_cff')
11  process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
12  process.load('Geometry.HcalTestBeamData.hcalDDDSimConstants_cff')
13  process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
14  process.load('GeneratorInterface.Core.generatorSmeared_cfi')
15  process.load('SimG4Core.Application.g4SimHits_cfi')
16  process.load('IOMC.RandomEngine.IOMC_cff')
17 
18  process.RandomNumberGeneratorService.generator.initialSeed = 456789
19  process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
20  process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
21 
22  process.source = cms.Source("EmptySource",
23  firstRun = cms.untracked.uint32(1),
24  firstEvent = cms.untracked.uint32(1)
25  )
26 
27  process.load('SimG4CMS.HcalTestBeam.TBDirectionParameters_cfi')
28  process.load('SimG4CMS.HcalTestBeam.TBVtxSmeared_cfi')
29  process.load('SimG4CMS.HcalTestBeam.TB06Analysis_cfi')
30 
31  process.generator = cms.EDProducer("FlatRandomEGunProducer",
32  PGunParameters = cms.PSet(
33  process.common_beam_direction_parameters
34  ),
35  Verbosity = cms.untracked.int32(0),
36  AddAntiParticle = cms.bool(False)
37  )
38 
39  process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.testbeam)
40 
41  process.common_maximum_time.MaxTrackTime = cms.double(1000.0)
42  process.common_maximum_time.MaxTimeNames = cms.vstring()
43  process.common_maximum_time.MaxTrackTimes = cms.vdouble()
44  process.common_maximum_time.DeadRegions = cms.vstring()
45 
46  process.g4SimHits.NonBeamEvent = True
47  process.g4SimHits.UseMagneticField = False
48 
49  process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
50  process.g4SimHits.Physics.Region = 'HcalRegion'
51  process.g4SimHits.Physics.MaxTrackTime = cms.double(1000.0)
52 
53  process.g4SimHits.Generator.ApplyEtaCuts = cms.bool(False)
54 
55  process.g4SimHits.StackingAction.MaxTrackTime = cms.double(1000.0)
56  process.g4SimHits.StackingAction.MaxTimeNames = cms.vstring()
57  process.g4SimHits.StackingAction.MaxTrackTimes = cms.vdouble()
58  process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
59 
60  process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(1000.0)
61  process.g4SimHits.SteppingAction.MaxTimeNames = cms.vstring()
62  process.g4SimHits.SteppingAction.MaxTrackTimes = cms.vdouble()
63  process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
64 
65  process.g4SimHits.CaloSD.EminHits = cms.vdouble(0.0,0.0,0.0,0.0)
66  process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(1000.0,1000.0,1000.0,1000.0)
67  process.g4SimHits.CaloTrkProcessing.TestBeam = True
68 
69  process.g4SimHits.HCalSD.UseShowerLibrary = False
70  process.g4SimHits.HCalSD.UseHF = False
71  process.g4SimHits.HCalSD.ForTBHCAL = True
72  process.g4SimHits.HCalSD.ForTBH2 = False
73 
74  return(process)
75 
return((rh ^ lh) &mask)
def testbeam2006(process)