CMS 3D CMS Logo

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

Functions

def testbeam2006
 

Function Documentation

def TB2006Analysis_cfi.testbeam2006 (   process)

Definition at line 5 of file TB2006Analysis_cfi.py.

References gpuVertexFinder.return.

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