CMS 3D CMS Logo

g4SimHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 
7 
8 
10 
11 
12 from Configuration.Eras.Modifier_h2tb_cff import h2tb
13 
14 
15 
16 common_heavy_suppression = cms.PSet(
17  NeutronThreshold = cms.double(30.0),
18  ProtonThreshold = cms.double(30.0),
19  IonThreshold = cms.double(30.0)
20 )
21 
22 common_maximum_time = cms.PSet(
23  MaxTrackTime = cms.double(500.0), # ns
24  MaxTrackTimeForward = cms.double(2000.0), # ns
25  MaxTimeNames = cms.vstring(),
26  MaxTrackTimes = cms.vdouble(), # ns
27  MaxZCentralCMS = cms.double(50.0), # m
28  DeadRegions = cms.vstring('QuadRegion','InterimRegion'),
29  CriticalEnergyForVacuum = cms.double(2.0), # MeV
30  CriticalDensity = cms.double(1e-15) # g/cm3
31 )
32 
33 h2tb.toModify(common_maximum_time,
34  MaxTrackTime = cms.double(1000.0),
35  DeadRegions = cms.vstring()
36 )
37 
38 common_UsePMT = cms.PSet(
39  UseR7600UPMT = cms.bool(False)
40 )
41 
42 common_UseHF = cms.PSet(
43  Lambda1 = cms.double(280.0),
44  Lambda2 = cms.double(700.0),
45  Gain = cms.double(0.33),
46  CheckSurvive = cms.bool(False),
47  FibreR = cms.double(0.3)
48 )
49 
50 common_UseLuminosity = cms.PSet(
51  InstLuminosity = cms.double(0.),
52  DelivLuminosity = cms.double(5000.)
53 )
54 
55 common_MCtruth = cms.PSet(
56  DoFineCalo = cms.bool(False),
57  SaveCaloBoundaryInformation = cms.bool(False),
58  # currently unused; left in place for future studies
59  EminFineTrack = cms.double(10000.0),
60  FineCaloNames = cms.vstring('ECAL', 'HCal', 'HGCal', 'HFNoseVol', 'VCAL'),
61  FineCaloLevels = cms.vint32(4, 4, 8, 3, 3),
62  UseFineCalo = cms.vint32(2, 3),
63 )
64 
65 
66 from Configuration.ProcessModifiers.fineCalo_cff import fineCalo
67 fineCalo.toModify(common_MCtruth,
68  DoFineCalo = True
69 )
70 
71 
72 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
73 phase2_hgcal.toModify(common_MCtruth,
74  SaveCaloBoundaryInformation = True
75 )
76 
77 g4SimHits = cms.EDProducer("OscarMTProducer",
78  g4GeometryDD4hepSource = cms.bool(False),
79  NonBeamEvent = cms.bool(False),
80  G4EventManagerVerbosity = cms.untracked.int32(0),
81  UseMagneticField = cms.bool(True),
82  StoreRndmSeeds = cms.bool(False),
83  RestoreRndmSeeds = cms.bool(False),
84  PhysicsTablesDirectory = cms.untracked.string('PhysicsTables'),
85  StorePhysicsTables = cms.untracked.bool(False),
86  RestorePhysicsTables = cms.untracked.bool(False),
87  UseParametrisedEMPhysics = cms.untracked.bool(True),
88  ThresholdForGeometryExceptions = cms.double(0.1),
89  TraceExceptions = cms.bool(False),
90  CheckGeometry = cms.untracked.bool(False),
91  OnlySDs = cms.vstring('ZdcSensitiveDetector', 'TotemT2ScintSensitiveDetector', 'TotemSensitiveDetector', 'RomanPotSensitiveDetector', 'PLTSensitiveDetector', 'MuonSensitiveDetector', 'MtdSensitiveDetector', 'BCM1FSensitiveDetector', 'EcalSensitiveDetector', 'CTPPSSensitiveDetector', 'BSCSensitiveDetector', 'CTPPSDiamondSensitiveDetector', 'FP420SensitiveDetector', 'BHMSensitiveDetector', 'CastorSensitiveDetector', 'CaloTrkProcessing', 'HcalSensitiveDetector', 'TkAccumulatingSensitiveDetector'),
92  G4CheckOverlap = cms.untracked.PSet(
93  OutputBaseName = cms.string('2021'),
94  MaterialFlag = cms.bool(True),
95  GeomFlag = cms.bool(True),
96  OverlapFlag = cms.bool(False),
97  RegionFlag = cms.bool(True), # if true - selection by G4Region name
98  gdmlFlag = cms.bool(False), # if true - dump gdml file
99  Verbose = cms.bool(True),
100  Tolerance = cms.double(0.0),
101  Resolution = cms.int32(10000),
102  ErrorThreshold = cms.int32(1),
103  Level = cms.int32(1),
104  Depth = cms.int32(3), # -1 means check whatever depth
105  PVname = cms.string(''),
106  LVname = cms.string(''),
107  NodeNames = cms.vstring('World')
108  ),
109  G4Commands = cms.vstring(),
110  SteppingVerbosity = cms.untracked.int32(0),
111  StepVerboseThreshold = cms.untracked.double(0.1), # in GeV
112  VerboseEvents = cms.untracked.vint32(),
113  VertexNumber = cms.untracked.vint32(),
114  VerboseTracks = cms.untracked.vint32(),
115  FileNameField = cms.untracked.string(''),
116  FileNameGDML = cms.untracked.string(''),
117  FileNameRegions = cms.untracked.string(''),
118  Watchers = cms.VPSet(),
119  HepMCProductLabel = cms.InputTag("generatorSmeared"),
120  theLHCTlinkTag = cms.InputTag("LHCTransport"),
121  LHCTransport = cms.bool(False),
122  CustomUIsession = cms.untracked.PSet(
123  Type = cms.untracked.string("MessageLogger"), # alternatives: MessageLoggerThreadPrefix, FilePerThread
124  ThreadPrefix = cms.untracked.string("W"), # for MessageLoggerThreadPrefix
125  ThreadFile = cms.untracked.string("sim_output_thread"), # for FilePerThread
126  ),
127  MagneticField = cms.PSet(
128  UseLocalMagFieldManager = cms.bool(False),
129  Verbosity = cms.bool(False),
130  ConfGlobalMFM = cms.PSet(
131  Volume = cms.string('OCMS'),
132  OCMS = cms.PSet(
133  Stepper = cms.string('G4TDormandPrince45'),
134  Type = cms.string('CMSIMField'),
135  StepperParam = cms.PSet(
136  VacRegions = cms.vstring(),
137 # VacRegions = cms.vstring('DefaultRegionForTheWorld','BeamPipeVacuum','BeamPipeOutside'),
138  EnergyThTracker = cms.double(0.2),
139  RmaxTracker = cms.double(8000),
140  ZmaxTracker = cms.double(11000),
141  MaximumEpsilonStep = cms.untracked.double(0.01),
142  DeltaOneStep = cms.double(0.001),
143  DeltaOneStepTracker = cms.double(1e-4),
144  MaximumLoopCounts = cms.untracked.double(1000.0),
145  DeltaChord = cms.double(0.002),
146  DeltaChordTracker = cms.double(0.001),
147  MinStep = cms.double(0.1),
148  DeltaIntersectionAndOneStep = cms.untracked.double(-1.0),
149  DeltaIntersection = cms.double(0.0001),
150  DeltaIntersectionTracker = cms.double(1e-6),
151  MaxStep = cms.double(150.),
152  MinimumEpsilonStep = cms.untracked.double(1e-05),
153  EnergyThSimple = cms.double(0.015),
154  DeltaChordSimple = cms.double(0.1),
155  DeltaOneStepSimple = cms.double(0.1),
156  DeltaIntersectionSimple = cms.double(0.01),
157  MaxStepSimple = cms.double(50.),
158  )
159  )
160  ),
161  delta = cms.double(1.0)
162  ),
163  Physics = cms.PSet(
164  common_maximum_time,
165  # NOTE : if you want EM Physics only,
166  # please select "SimG4Core/Physics/DummyPhysics" for type
167  # and turn ON DummyEMPhysics
168  #
169  type = cms.string('SimG4Core/Physics/FTFP_BERT_EMM'),
170  DummyEMPhysics = cms.bool(False),
171  CutsPerRegion = cms.bool(True),
172  CutsOnProton = cms.bool(True),
173  DefaultCutValue = cms.double(1.0),
174  G4BremsstrahlungThreshold = cms.double(0.5),
175  G4MuonBremsstrahlungThreshold = cms.double(10000.),
176  G4MscRangeFactor = cms.double(0.04),
177  G4MscGeomFactor = cms.double(2.5),
178  G4MscSafetyFactor = cms.double(0.6),
179  G4MscLambdaLimit = cms.double(1.0), # mm
180  G4MscStepLimit = cms.string("UseSafety"),
181  G4GeneralProcess = cms.bool(False),
182  ReadMuonData = cms.bool(False),
183  Verbosity = cms.untracked.int32(0),
184  # 1 will print cuts as they get set from DD
185  # 2 will do as 1 + will dump Geant4 table of cuts
186  MonopoleCharge = cms.untracked.int32(1),
187  MonopoleDeltaRay = cms.untracked.bool(True),
188  MonopoleMultiScatter = cms.untracked.bool(False),
189  MonopoleTransport = cms.untracked.bool(True),
190  MonopoleMass = cms.untracked.double(0),
191  ExoticaTransport = cms.untracked.bool(False),
192  ExoticaPhysicsSS = cms.untracked.bool(False),
193  RhadronPhysics = cms.bool(False),
194  DarkMPFactor = cms.double(1.0),
195  Region = cms.string(''),
196  TrackingCut = cms.bool(False),
197  SRType = cms.bool(True),
198  FlagMuNucl = cms.bool(False),
199  FlagFluo = cms.bool(False),
200  EMPhysics = cms.untracked.bool(True),
201  HadPhysics = cms.untracked.bool(True),
202  FlagBERT = cms.untracked.bool(False),
203  EminFTFP = cms.double(3.), # in GeV
204  EmaxBERT = cms.double(6.), # in GeV
205  EminQGSP = cms.double(12.), # in GeV
206  EmaxFTFP = cms.double(25.), # in GeV
207  EmaxBERTpi = cms.double(12.), # in GeV
208  LowEnergyGflashEcal = cms.bool(False),
209  LowEnergyGflashEcalEmax = cms.double(0.02), # in GeV
210  GflashEcal = cms.bool(False),
211  GflashHcal = cms.bool(False),
212  GflashEcalHad = cms.bool(False),
213  GflashHcalHad = cms.bool(False),
214  bField = cms.double(3.8),
215  energyScaleEB = cms.double(1.032),
216  energyScaleEE = cms.double(1.024),
217  ThermalNeutrons = cms.untracked.bool(False),
218  RusRoElectronEnergyLimit = cms.double(0.0),
219  RusRoEcalElectron = cms.double(1.0),
220  RusRoHcalElectron = cms.double(1.0),
221  RusRoMuonIronElectron = cms.double(1.0),
222  RusRoPreShowerElectron = cms.double(1.0),
223  RusRoCastorElectron = cms.double(1.0),
224  RusRoWorldElectron = cms.double(1.0),
225  ElectronStepLimit = cms.bool(False),
226  ElectronRangeTest = cms.bool(False),
227  PositronStepLimit = cms.bool(False),
228  ProtonRegionLimit = cms.bool(False),
229  PionRegionLimit = cms.bool(False),
230  LimitsPerRegion = cms.vstring('EcalRegion','HcalRegion'),
231  EnergyLimitsE = cms.vdouble(0.,0.0),
232  EnergyLimitsH = cms.vdouble(0.,0.0),
233  EnergyFactorsE = cms.vdouble(1.,0.0),
234  EnergyRMSE = cms.vdouble(0.0,0.0),
235  MinStepLimit = cms.double(1.0),
236  ModifyTransportation = cms.bool(False),
237  ThresholdWarningEnergy = cms.untracked.double(100.0), #in MeV
238  ThresholdImportantEnergy = cms.untracked.double(250.0), #in MeV
239  ThresholdTrials = cms.untracked.int32(10)
240  ),
241  Generator = cms.PSet(
242  common_maximum_time,
243  HectorEtaCut,
244  HepMCProductLabel = cms.InputTag('generatorSmeared'),
245  ApplyPCuts = cms.bool(True),
246  ApplyPtransCut = cms.bool(False),
247  MinPCut = cms.double(0.04),
248  MaxPCut = cms.double(99999.0),
249  ApplyEtaCuts = cms.bool(True),
250  MinEtaCut = cms.double(-5.5),
251  MaxEtaCut = cms.double(5.5),
252  RDecLenCut = cms.double(2.9),
253  LDecLenCut = cms.double(30.0),
254  ApplyPhiCuts = cms.bool(False),
255  MinPhiCut = cms.double(-3.14159265359),
256  MaxPhiCut = cms.double(3.14159265359),
257  ApplyLumiMonitorCuts = cms.bool(False),
258  Verbosity = cms.untracked.int32(0),
259  FixG4Primary = cms.bool(False),
260  PDGselection = cms.PSet(
261  PDGfilterSel = cms.bool(False),
262  PDGfilter = cms.vint32(21,1,2,3,4,5,6)
263  )
264  ),
265  RunAction = cms.PSet(
266  StopFile = cms.string('')
267  ),
268  EventAction = cms.PSet(
269  debug = cms.untracked.bool(False),
270  StopFile = cms.string(''),
271  PrintRandomSeed = cms.bool(False),
272  CollapsePrimaryVertices = cms.bool(False)
273  ),
274  StackingAction = cms.PSet(
275  common_heavy_suppression,
276  common_maximum_time,
277  KillDeltaRay = cms.bool(False),
278  TrackNeutrino = cms.bool(False),
279  KillHeavy = cms.bool(False),
280  KillGamma = cms.bool(True),
281  GammaThreshold = cms.double(0.0001),
282  SaveFirstLevelSecondary = cms.untracked.bool(False),
283  SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(False),
284  SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(False),
285  SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(False),
286  SaveAllPrimaryDecayProductsAndConversions = cms.untracked.bool(True),
287  RusRoGammaEnergyLimit = cms.double(5.0),
288  RusRoEcalGamma = cms.double(0.3),
289  RusRoHcalGamma = cms.double(0.3),
290  RusRoMuonIronGamma = cms.double(0.3),
291  RusRoPreShowerGamma = cms.double(0.3),
292  RusRoCastorGamma = cms.double(0.3),
293  RusRoWorldGamma = cms.double(0.3),
294  RusRoNeutronEnergyLimit = cms.double(10.0),
295  RusRoEcalNeutron = cms.double(0.1),
296  RusRoHcalNeutron = cms.double(0.1),
297  RusRoMuonIronNeutron = cms.double(0.1),
298  RusRoPreShowerNeutron = cms.double(0.1),
299  RusRoCastorNeutron = cms.double(0.1),
300  RusRoWorldNeutron = cms.double(0.1),
301  RusRoProtonEnergyLimit = cms.double(0.0),
302  RusRoEcalProton = cms.double(1.0),
303  RusRoHcalProton = cms.double(1.0),
304  RusRoMuonIronProton = cms.double(1.0),
305  RusRoPreShowerProton = cms.double(1.0),
306  RusRoCastorProton = cms.double(1.0),
307  RusRoWorldProton = cms.double(1.0)
308  ),
309  TrackingAction = cms.PSet(
310  common_MCtruth,
311  DetailedTiming = cms.untracked.bool(False),
312  CheckTrack = cms.untracked.bool(False),
313  ),
314  SteppingAction = cms.PSet(
315  common_maximum_time,
316  MaxNumberOfSteps = cms.int32(20000),
317  EkinNames = cms.vstring(),
318  EkinThresholds = cms.vdouble(),
319  EkinParticles = cms.vstring()
320  ),
321  TrackerSD = cms.PSet(
322  ZeroEnergyLoss = cms.bool(False),
323  PrintHits = cms.bool(False),
324  ElectronicSigmaInNanoSeconds = cms.double(12.06),
325  NeverAccumulate = cms.bool(False),
326  EnergyThresholdForPersistencyInGeV = cms.double(0.2),
327  EnergyThresholdForHistoryInGeV = cms.double(0.05)
328  ),
329  MuonSD = cms.PSet(
330  EnergyThresholdForPersistency = cms.double(1.0),
331  PrintHits = cms.bool(False),
332  AllMuonsPersistent = cms.bool(True),
333  UseDemoHitRPC = cms.bool(True),
334  UseDemoHitGEM = cms.bool(True),
335  HaveDemoChambers = cms.bool(True)
336  ),
337  CaloSD = cms.PSet(
338  common_heavy_suppression,
339  common_MCtruth,
340  SuppressHeavy = cms.bool(False),
341  EminTrack = cms.double(1.0),
342  TmaxHit = cms.double(1000.0),
343  HCNames = cms.vstring('EcalHitsEB','EcalHitsEE','EcalHitsES','HcalHits','ZDCHITS'),
344  EminHits = cms.vdouble(0.015,0.010,0.0,0.0,0.0),
345  EminHitsDepth = cms.vdouble(0.0,0.0,0.0,0.0,0.0),
346  TmaxHits = cms.vdouble(500.0,500.0,500.0,500.0,2000.0),
347  UseResponseTables = cms.vint32(0,0,0,0,0),
348  BeamPosition = cms.double(0.0),
349  CorrectTOFBeam = cms.bool(False),
350  DetailedTiming = cms.untracked.bool(False),
351  UseMap = cms.untracked.bool(False),
352  Verbosity = cms.untracked.int32(0),
353  CheckHits = cms.untracked.int32(25)
354  ),
355  CaloResponse = cms.PSet(
356  UseResponseTable = cms.bool(True),
357  ResponseScale = cms.double(1.0),
358  ResponseFile = cms.FileInPath('SimG4CMS/Calo/data/responsTBpim50.dat')
359  ),
360  ECalSD = cms.PSet(
361  common_UseLuminosity,
362  UseBirkLaw = cms.bool(True),
363  BirkL3Parametrization = cms.bool(True),
364  BirkSlope = cms.double(0.253694),
365  BirkCut = cms.double(0.1),
366  BirkC1 = cms.double(0.03333),
367  BirkC3 = cms.double(1.0),
368  BirkC2 = cms.double(0.0),
369  SlopeLightYield = cms.double(0.02),
370  StoreSecondary = cms.bool(False),
371  TimeSliceUnit = cms.double(1),
372  IgnoreTrackID = cms.bool(False),
373  XtalMat = cms.untracked.string('E_PbWO4'),
374  TestBeam = cms.untracked.bool(False),
375  NullNumbering = cms.untracked.bool(False),
376  StoreRadLength = cms.untracked.bool(False),
377  ScaleRadLength = cms.untracked.double(1.0),
378  StoreLayerTimeSim = cms.untracked.bool(False),
379  AgeingWithSlopeLY = cms.untracked.bool(False),
380  Detectors = cms.untracked.int32(3),
381  DumpGeometry = cms.untracked.int32(0)
382  ),
383  HCalSD = cms.PSet(
384  common_UseLuminosity,
385  UseBirkLaw = cms.bool(True),
386  BirkC3 = cms.double(1.75),
387  BirkC2 = cms.double(0.142),
388  BirkC1 = cms.double(0.0060),
389  UseShowerLibrary = cms.bool(True),
390  UseParametrize = cms.bool(False),
391  UsePMTHits = cms.bool(False),
392  UseFibreBundleHits = cms.bool(False),
393  TestNumberingScheme = cms.bool(False),
394  doNeutralDensityFilter = cms.bool(False),
395  EminHitHB = cms.double(0.0),
396  EminHitHE = cms.double(0.0),
397  EminHitHO = cms.double(0.0),
398  EminHitHF = cms.double(0.0),
399  BetaThreshold = cms.double(0.7),
400  TimeSliceUnit = cms.double(1),
401  IgnoreTrackID = cms.bool(False),
402  HBDarkening = cms.bool(False),
403  HEDarkening = cms.bool(False),
404  HFDarkening = cms.bool(False),
405  UseHF = cms.untracked.bool(True),
406  ForTBH2 = cms.untracked.bool(False),
407  ForTBHCAL = cms.untracked.bool(False),
408  UseLayerWt = cms.untracked.bool(False),
409  WtFile = cms.untracked.string('None'),
410  TestNS = cms.untracked.bool(False),
411  DumpGeometry = cms.untracked.bool(False),
412  HFDarkeningParameterBlock = HFDarkeningParameterBlock
413  ),
414  CaloTrkProcessing = cms.PSet(
415  common_MCtruth,
416  TestBeam = cms.bool(False),
417  EminTrack = cms.double(0.01),
418  PutHistory = cms.bool(False),
419  ),
420  HFShower = cms.PSet(
421  common_UsePMT,
422  common_UseHF,
423  PEPerGeV = cms.double(0.31),
424  TrackEM = cms.bool(False),
425  UseShowerLibrary = cms.bool(True),
426  UseHFGflash = cms.bool(False),
427  EminLibrary = cms.double(0.0),
428  LambdaMean = cms.double(350.0),
429  ApplyFiducialCut = cms.bool(True),
430  RefIndex = cms.double(1.459),
431  Aperture = cms.double(0.33),
432  ApertureTrapped = cms.double(0.22),
433  CosApertureTrapped= cms.double(0.5),
434  SinPsiMax = cms.untracked.double(0.5),
435  ParametrizeLast = cms.untracked.bool(False),
436  HFShowerBlock = cms.PSet(refToPSet_ = cms.string("HFShowerBlock"))
437  ),
438  HFShowerLibrary = cms.PSet(
439  HFLibraryFileBlock = cms.PSet(refToPSet_ = cms.string("HFLibraryFileBlock"))
440  ),
441  HFShowerPMT = cms.PSet(
442  common_UsePMT,
443  common_UseHF,
444  PEPerGeVPMT = cms.double(1.0),
445  RefIndex = cms.double(1.52),
446  Aperture = cms.double(0.99),
447  ApertureTrapped = cms.double(0.22),
448  CosApertureTrapped= cms.double(0.5),
449  SinPsiMax = cms.untracked.double(0.5)
450  ),
451  HFShowerStraightBundle = cms.PSet(
452  common_UsePMT,
453  common_UseHF,
454  FactorBundle = cms.double(1.0),
455  RefIndex = cms.double(1.459),
456  Aperture = cms.double(0.33),
457  ApertureTrapped = cms.double(0.22),
458  CosApertureTrapped= cms.double(0.5),
459  SinPsiMax = cms.untracked.double(0.5)
460  ),
461  HFShowerConicalBundle = cms.PSet(
462  common_UsePMT,
463  common_UseHF,
464  FactorBundle = cms.double(1.0),
465  RefIndex = cms.double(1.459),
466  Aperture = cms.double(0.33),
467  ApertureTrapped = cms.double(0.22),
468  CosApertureTrapped= cms.double(0.5),
469  SinPsiMax = cms.untracked.double(0.5)
470  ),
471  HFGflash = cms.PSet(
472  BField = cms.untracked.double(3.8),
473  WatcherOn = cms.untracked.bool(True),
474  FillHisto = cms.untracked.bool(True)
475  ),
476  CastorSD = cms.PSet(
477  useShowerLibrary = cms.bool(True),
478  minEnergyInGeVforUsingSLibrary = cms.double(1.0),
479  nonCompensationFactor = cms.double(0.817),
480  Verbosity = cms.untracked.int32(0)
481  ),
482  CastorShowerLibrary = cms.PSet(
483  FileName = cms.FileInPath('SimG4CMS/Forward/data/CastorShowerLibrary_CMSSW500_Standard.root'),
484  BranchEvt = cms.untracked.string('hadShowerLibInfo.'),
485  BranchEM = cms.untracked.string('emParticles.'),
486  BranchHAD = cms.untracked.string('hadParticles.'),
487  Verbosity = cms.untracked.bool(False)
488  ),
489  BHMSD = cms.PSet(
490  Verbosity = cms.untracked.int32(0)
491  ),
492  MtdSD = cms.PSet(
493  Verbosity = cms.untracked.int32(0),
494  TimeSliceUnit = cms.double(0.01), #stepping = 10 ps (for timing)
495  IgnoreTrackID = cms.bool(False),
496  EminHit = cms.double(0.0),
497  CheckID = cms.untracked.bool(True),
498  ),
499  HGCSD = cms.PSet(
500  Verbosity = cms.untracked.int32(0),
501  TimeSliceUnit = cms.double(0.001), #stepping = 1 ps (for timing)
502  IgnoreTrackID = cms.bool(False),
503  EminHit = cms.double(0.0),
504  FiducialCut = cms.bool(False),
505  DistanceFromEdge = cms.double(1.0),
506  StoreAllG4Hits = cms.bool(False),
507  RejectMouseBite = cms.bool(False),
508  RotatedWafer = cms.bool(False),
509  CornerMinMask = cms.int32(0),
510  WaferAngles = cms.untracked.vdouble(90.0,30.0),
511  WaferSize = cms.untracked.double(123.7),
512  MouseBite = cms.untracked.double(2.5),
513  CheckID = cms.untracked.bool(True),
514  UseDetector = cms.untracked.int32(3),
515  Detectors = cms.untracked.int32(2)
516  ),
517  HGCScintSD = cms.PSet(
518  Verbosity = cms.untracked.int32(0),
519  EminHit = cms.double(0.0),
520  UseBirkLaw = cms.bool(True),
521  BirkC3 = cms.double(1.75),
522  BirkC2 = cms.double(0.142),
523  BirkC1 = cms.double(0.0052),
524  FiducialCut = cms.bool(False),
525  DistanceFromEdge = cms.double(1.0),
526  StoreAllG4Hits = cms.bool(False),
527  ),
528  HFNoseSD = cms.PSet(
529  Verbosity = cms.untracked.int32(0),
530  TimeSliceUnit = cms.double(0.001), #stepping = 1 ps (for timing)
531  IgnoreTrackID = cms.bool(False),
532  EminHit = cms.double(0.0),
533  FiducialCut = cms.bool(False),
534  DistanceFromEdge = cms.double(1.0),
535  StoreAllG4Hits = cms.bool(False),
536  RejectMouseBite = cms.bool(False),
537  RotatedWafer = cms.bool(False),
538  CornerMinMask = cms.int32(0),
539  WaferAngles = cms.untracked.vdouble(90.0,30.0),
540  CheckID = cms.untracked.bool(True),
541  ),
542  TotemRPSD = cms.PSet(
543  Verbosity = cms.int32(0)
544  ),
545  TotemSD = cms.PSet(
546  Verbosity = cms.untracked.int32(0)
547  ),
548  TotemT2ScintSD = cms.PSet(
549  UseBirkLaw = cms.bool(True),
550  BirkC3 = cms.double(1.75),
551  BirkC2 = cms.double(0.142),
552  BirkC1 = cms.double(0.006),
553  TimeSliceUnit = cms.double(1),
554  IgnoreTrackID = cms.bool(False),
555  ),
556  PPSDiamondSD = cms.PSet(
557  Verbosity = cms.int32(0)
558  ),
559  PPSPixelSD = cms.PSet(
560  Verbosity = cms.untracked.int32(0)
561  ),
562  ZdcSD = cms.PSet(
563  Verbosity = cms.int32(0),
564  UseShowerLibrary = cms.bool(True),
565  UseShowerHits = cms.bool(False),
566  FiberDirection = cms.double(45.0),
567  ZdcHitEnergyCut = cms.double(10.0)
568  ),
569  ZdcShowerLibrary = cms.PSet(
570  Verbosity = cms.untracked.int32(0)
571  ),
572  FP420SD = cms.PSet(
573  Verbosity = cms.untracked.int32(2)
574  ),
575  BscSD = cms.PSet(
576  Verbosity = cms.untracked.int32(0)
577  ),
578  PltSD = cms.PSet(
579  EnergyThresholdForPersistencyInGeV = cms.double(0.2),
580  EnergyThresholdForHistoryInGeV = cms.double(0.05)
581  ),
582  Bcm1fSD = cms.PSet(
583  EnergyThresholdForPersistencyInGeV = cms.double(0.010),
584  EnergyThresholdForHistoryInGeV = cms.double(0.005)
585  ),
586  HcalTB02SD = cms.PSet(
587  UseBirkLaw = cms.untracked.bool(False),
588  BirkC1 = cms.untracked.double(0.013),
589  BirkC3 = cms.untracked.double(1.75),
590  BirkC2 = cms.untracked.double(0.0568)
591  ),
592  EcalTBH4BeamSD = cms.PSet(
593  UseBirkLaw = cms.bool(False),
594  BirkC1 = cms.double(0.013),
595  BirkC3 = cms.double(1.75),
596  BirkC2 = cms.double(0.0568)
597  ),
598  HGCalTestBeamSD = cms.PSet(
599  Material = cms.string('Scintillator'),
600  UseBirkLaw = cms.bool(False),
601  BirkC1 = cms.double(0.013),
602  BirkC3 = cms.double(1.75),
603  BirkC2 = cms.double(0.0568),
604  ),
605  HcalTB06BeamSD = cms.PSet(
606  UseBirkLaw = cms.bool(False),
607  BirkC1 = cms.double(0.013),
608  BirkC3 = cms.double(1.75),
609  BirkC2 = cms.double(0.0568)
610  ),
611  AHCalSD = cms.PSet(
612  UseBirkLaw = cms.bool(True),
613  BirkC3 = cms.double(1.75),
614  BirkC2 = cms.double(0.142),
615  BirkC1 = cms.double(0.0052),
616  EminHit = cms.double(0.0),
617  TimeSliceUnit = cms.double(1),
618  IgnoreTrackID = cms.bool(False),
619  ),
620 )
621 
624 from Configuration.Eras.Modifier_run2_common_cff import run2_common
625 
626 
629 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
630 run2_HCAL_2017.toModify( g4SimHits, HCalSD = dict( TestNumberingScheme = True ) )
631 
632 
635 from Configuration.Eras.Modifier_run3_common_cff import run3_common
636 run3_common.toModify( g4SimHits, CastorSD = dict( useShowerLibrary = False ) )
637 run3_common.toModify( g4SimHits, LHCTransport = True )
638 
639 
642 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
643 pp_on_PbPb_run3.toModify( g4SimHits, LHCTransport = False )
644 
645 
648 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
649 phase2_timing.toModify( g4SimHits, ECalSD = dict(
650  StoreLayerTimeSim = True,
651  TimeSliceUnit = 0.001 )
652 )
653 
654 
657 from Configuration.Eras.Modifier_h2tb_cff import h2tb
658 h2tb.toModify(g4SimHits,
659  OnlySDs = ['EcalSensitiveDetector', 'CaloTrkProcessing', 'HcalTB06BeamDetector', 'HcalSensitiveDetector'],
660  CaloSD = dict(
661  EminHits = [0.0, 0.0, 0.0, 0.0, 0.0],
662  TmaxHits = [1000.0, 1000.0, 1000.0, 1000.0, 2000.0] ),
663  CaloTrkProcessing = dict(
664  TestBeam = True ),
665  HCalSD = dict(
666  ForTBHCAL = True )
667 )
668 
669 
672 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
673 dd4hep.toModify( g4SimHits, g4GeometryDD4hepSource = True )
674 
675 
678 from Configuration.ProcessModifiers.run3_primaries_for_geant4_cff import run3_g4primaries
679 run3_g4primaries.toModify( g4SimHits, Generator = dict( FixG4Primary = True ) )
680 
681 
684 
685 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
686 phase2_common.toModify(g4SimHits,
687  OnlySDs = ['ZdcSensitiveDetector', 'TotemT2ScintSensitiveDetector', 'TotemSensitiveDetector', 'RomanPotSensitiveDetector', 'PLTSensitiveDetector', 'MuonSensitiveDetector', 'MtdSensitiveDetector', 'BCM1FSensitiveDetector', 'EcalSensitiveDetector', 'CTPPSSensitiveDetector', 'HGCalSensitiveDetector', 'BSCSensitiveDetector', 'CTPPSDiamondSensitiveDetector', 'FP420SensitiveDetector', 'BHMSensitiveDetector', 'HFNoseSensitiveDetector', 'HGCScintillatorSensitiveDetector', 'CastorSensitiveDetector', 'CaloTrkProcessing', 'HcalSensitiveDetector', 'TkAccumulatingSensitiveDetector'],
688  LHCTransport = False,
689  MuonSD = dict(
690  HaveDemoChambers = False )
691 )
692 
693 from Configuration.Eras.Modifier_hgcaltb_cff import hgcaltb
694 hgcaltb.toModify(g4SimHits,
695  OnlySDs = ['AHcalSensitiveDetector', 'HGCSensitiveDetector', 'HGCalTB1601SensitiveDetector', 'HcalTB06BeamDetector']
696 )
HF Raddam Dose Class in /SimG4CMS/Calo.