CMS 3D CMS Logo

trackingMaterialProducerHGCal_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import copy
5 # Detector simulation (Geant4-based)
6 trackingMaterialProducer = copy.deepcopy(g4SimHits)
7 trackingMaterialProducer.Generator.HepMCProductLabel = 'generatorSmeared'
8 
9 #trackingMaterialProducer.Physics.type = 'SimG4Core/Physics/DummyPhysics'
10 #trackingMaterialProducer.Physics.DummyEMPhysics = True
11 #trackingMaterialProducer.Physics.CutsPerRegion = False
12 trackingMaterialProducer.UseMagneticField = False
13 
14 trackingMaterialProducer.Watchers = cms.VPSet(cms.PSet(
15  TrackingMaterialProducer = cms.PSet(
16  PrimaryTracksOnly = cms.bool(True),
17  #The file to direct the HGCal volumes z position
18  txtOutFile = cms.untracked.string('VolumesZPosition.txt'),
19  #In the beginning of each track, the track will first hit an HGCAL volume and it will
20  #save the upper z volume boundary. So, the low boundary of the first
21  #volume is never saved. Here we give the low boundary of the first volume.
22  #This can be found by asking first to run not on 'HGCal' volume below but
23  #on 'CALOECTSRear', which at the moment of this writing it contains
24  #HGCalService, HGCal and thermal screen. You should run Fireworks to
25  #check if these naming conventions and volumes are valid in the future.
26  #Then, check the VolumesZPosition.txt file to see where CEService ends and
27  #put that number in hgcalzfront below. Keep in mind to run on the desired volume here:
28  #https://github.com/cms-sw/cmssw/blob/master/SimTracker/TrackerMaterialAnalysis/plugins/TrackingMaterialProducer.cc#L95
29  #and to replace the volume name of the material first hit at the file creation line:
30  #https://github.com/cms-sw/cmssw/blob/master/SimTracker/TrackerMaterialAnalysis/plugins/TrackingMaterialProducer.cc#L159-L168
31  hgcalzfront = cms.double(3210.5),
32  SelectedVolumes = cms.vstring('HGCal')#CALOECTSRear HGCal
33  ),
34  type = cms.string('TrackingMaterialProducer')
35 ))