Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-13 05:55:08

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('VolumesZPosition.txt'),
0019         #In the beginning of each track, the track will first hit an HGCAL volume and it will
0020         #save the upper z volume boundary. So, the low boundary of the first
0021         #volume is never saved. Here we give the low boundary of the first volume.
0022         #This can be found by asking first to run not on 'HGCal' volume below but
0023         #on 'CALOECTSRear', which at the moment of this writing it contains
0024         #HGCalService, HGCal and thermal screen. You should run Fireworks to
0025         #check if these naming conventions and volumes are valid in the future.
0026         #Then, check the VolumesZPosition.txt file to see where CEService ends and
0027         #put that number in hgcalzfront below. Keep in mind to run on the desired volume here:
0028         #https://github.com/cms-sw/cmssw/blob/master/SimTracker/TrackerMaterialAnalysis/plugins/TrackingMaterialProducer.cc#L95
0029         #and to replace the volume name of the material first hit at the file creation line:
0030         #https://github.com/cms-sw/cmssw/blob/master/SimTracker/TrackerMaterialAnalysis/plugins/TrackingMaterialProducer.cc#L159-L168
0031         hgcalzfront = cms.double(3210.5),
0032         SelectedVolumes = cms.vstring('HGCal')#CALOECTSRear HGCal
0033     ),
0034     type = cms.string('TrackingMaterialProducer')
0035 ))