Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-23 04:29:12

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 caloParticles = cms.PSet(
0004     accumulatorType = cms.string('CaloTruthAccumulator'),
0005 #   createUnmergedCollection = cms.bool(True),
0006 #   createMergedBremsstrahlung = cms.bool(True),
0007 #   createInitialVertexCollection = cms.bool(False),
0008 #   alwaysAddAncestors = cms.bool(True),
0009         MinEnergy = cms.double(0.5),
0010         MaxPseudoRapidity = cms.double(5.0),
0011         premixStage1 = cms.bool(False),
0012         doHGCAL = cms.bool(True),
0013     maximumPreviousBunchCrossing = cms.uint32(0),
0014     maximumSubsequentBunchCrossing = cms.uint32(0),
0015     simHitCollections = cms.PSet(
0016             hgc = cms.VInputTag(
0017                 cms.InputTag('g4SimHits','HGCHitsEE'),
0018                 cms.InputTag('g4SimHits','HGCHitsHEfront'),
0019                 cms.InputTag('g4SimHits','HGCHitsHEback')
0020             ),
0021 #            hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits')),
0022 #            ecal = cms.VInputTag(
0023 #                cms.InputTag('g4SimHits','EcalHitsEE'),
0024 #                cms.InputTag('g4SimHits','EcalHitsEB'),
0025 #                cms.InputTag('g4SimHits','EcalHitsES')
0026 #            )
0027     ),
0028     simTrackCollection = cms.InputTag('g4SimHits'),
0029     simVertexCollection = cms.InputTag('g4SimHits'),
0030     genParticleCollection = cms.InputTag('genParticles'),
0031     allowDifferentSimHitProcesses = cms.bool(False), # should be True for FastSim, False for FullSim
0032     HepMCProductLabel = cms.InputTag('generatorSmeared'),
0033 )
0034 
0035 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
0036 premix_stage1.toModify(caloParticles, premixStage1 = True)
0037 
0038 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0039 phase2_hfnose.toModify(
0040     caloParticles,
0041     simHitCollections = dict(
0042         hgc = caloParticles.simHitCollections.hgc + [cms.InputTag('g4SimHits','HFNoseHits')],
0043 #        hcal = cms.VInputTag(cms.InputTag('g4SimHits','HcalHits'))
0044     )
0045 )
0046 
0047 from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
0048 run3_ecalclustering.toModify(
0049         caloParticles,
0050     simHitCollections = cms.PSet(
0051             ecal = cms.VInputTag(
0052                 cms.InputTag('g4SimHits','EcalHitsEE'),
0053                 cms.InputTag('g4SimHits','EcalHitsEB'),
0054                 cms.InputTag('g4SimHits','EcalHitsES')
0055             )
0056     )
0057 )
0058 
0059 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0060 fastSim.toReplaceWith(caloParticles, cms.PSet()) # don't allow this to run in fastsim
0061