Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import copy
0004 from SimG4Core.Application.g4SimHits_cfi import *
0005 # Detector simulation (Geant4-based)
0006 trackingMaterialProducer = copy.deepcopy(g4SimHits)
0007 trackingMaterialProducer.Generator.HepMCProductLabel = 'generatorSmeared'
0008 
0009 #trackingMaterialProducer.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0010 #trackingMaterialProducer.Physics.DummyEMPhysics = True
0011 #trackingMaterialProducer.Physics.CutsPerRegion = False
0012 trackingMaterialProducer.UseMagneticField = False
0013 
0014 trackingMaterialProducer.Watchers = cms.VPSet(cms.PSet(
0015     TrackingMaterialProducer = cms.PSet(
0016         PrimaryTracksOnly = cms.bool(True),
0017         #The file to direct the HGCal volumes z position
0018         txtOutFile = cms.untracked.string('VolumesZPositionHFNose.txt'),
0019         #In the beginning of each track, the track will first hit SS and it will 
0020         #save the upper z volume boundary. So, the low boundary of the first SS 
0021         #volume is never saved. Here we give the low boundary. 
0022         #This can be found by running
0023         #Geometry/HGCalCommonData/test/testHGCalParameters_cfg.py
0024         #on the geometry under study and looking for zFront print out. 
0025         #Plus or minus endcap is being dealt with inside the code. 
0026         hgcalzfront = cms.double(10484.0),
0027         SelectedVolumes = cms.vstring('HFNose')
0028     ),
0029     type = cms.string('TrackingMaterialProducer')
0030 ))