示例#1
0
def cust_2023HGCal_common(process):
    process = customise_rpc(process)
    process = fixRPCConditions(process)
    process = customise_HcalPhase1(process)
    process = customisePhase1Tk(process)
    if hasattr(process, 'L1simulation_step'):
        process.simEcalTriggerPrimitiveDigis.BarrelOnly = cms.bool(True)
    if hasattr(process, 'digitisation_step'):
        if hasattr(process.mix.digitizers, 'ecal'):
            process.mix.digitizers.ecal.doEE = cms.bool(False)
            process.mix.digitizers.ecal.doES = cms.bool(False)
        process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
        process.mix.digitizers.hgceeDigitizer = process.hgceeDigitizer
        process.mix.digitizers.hgchebackDigitizer = process.hgchebackDigitizer
        process.mix.digitizers.hgchefrontDigitizer = process.hgchefrontDigitizer
        # Also need to tell the MixingModule to make the correct collections available from
        # the pileup, even if not creating CrossingFrames.
        process.mix.mixObjects.mixCH.input.append(
            cms.InputTag("g4SimHits",
                         process.hgceeDigitizer.hitCollection.value()))
        process.mix.mixObjects.mixCH.input.append(
            cms.InputTag("g4SimHits",
                         process.hgchebackDigitizer.hitCollection.value()))
        process.mix.mixObjects.mixCH.input.append(
            cms.InputTag("g4SimHits",
                         process.hgchefrontDigitizer.hitCollection.value()))
        process.mix.mixObjects.mixCH.subdets.append(
            process.hgceeDigitizer.hitCollection.value())
        process.mix.mixObjects.mixCH.subdets.append(
            process.hgchebackDigitizer.hitCollection.value())
        process.mix.mixObjects.mixCH.subdets.append(
            process.hgchefrontDigitizer.hitCollection.value())
    return process
示例#2
0
def cust_2023HGCal_common(process):   
    process = fixRPCConditions(process)
    process = customise_HcalPhase1(process)
    process = customisePhase1Tk(process)    
    if hasattr(process,'L1simulation_step'):
        process.simEcalTriggerPrimitiveDigis.BarrelOnly = cms.bool(True)
    if hasattr(process,'digitisation_step'):
        if hasattr(process.mix.digitizers,'ecal'):
            process.mix.digitizers.ecal.doEE = cms.bool(False)
            process.mix.digitizers.ecal.doES = cms.bool(False)
        process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
        process.mix.digitizers.hgceeDigitizer=process.hgceeDigitizer
        process.mix.digitizers.hgchebackDigitizer=process.hgchebackDigitizer
        process.mix.digitizers.hgchefrontDigitizer=process.hgchefrontDigitizer
        # update the HCAL Endcap for BH geom.
        newFactors = cms.vdouble(
            210.55, 197.93, 186.12, 189.64, 189.63,
            189.96, 190.03, 190.11, 190.18, 190.25,
            190.32, 190.40, 190.47, 190.54, 190.61,
            190.69, 190.83, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94)
        process.mix.digitizers.hcal.he.samplingFactors = newFactors
        process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*len(newFactors))
        # Also need to tell the MixingModule to make the correct collections available from
        # the pileup, even if not creating CrossingFrames.
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgceeDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgchebackDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgchefrontDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.subdets.append( process.hgceeDigitizer.hitCollection.value() )
        process.mix.mixObjects.mixCH.subdets.append( process.hgchebackDigitizer.hitCollection.value() )
        process.mix.mixObjects.mixCH.subdets.append( process.hgchefrontDigitizer.hitCollection.value() )    
    return process
示例#3
0
def cust_2023HGCal_common(process):   
    process = customise_rpc(process)
    process = fixRPCConditions(process)
    process = customise_HcalPhase1(process)
    process = customisePhase1Tk(process)    
    if hasattr(process,'L1simulation_step'):
        process.simEcalTriggerPrimitiveDigis.BarrelOnly = cms.bool(True)
    if hasattr(process,'digitisation_step'):
        if hasattr(process.mix.digitizers,'ecal'):
            process.mix.digitizers.ecal.doEE = cms.bool(False)
            process.mix.digitizers.ecal.doES = cms.bool(False)
        process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
        process.mix.digitizers.hgceeDigitizer=process.hgceeDigitizer
        process.mix.digitizers.hgchebackDigitizer=process.hgchebackDigitizer
        process.mix.digitizers.hgchefrontDigitizer=process.hgchefrontDigitizer
        # update the HCAL Endcap for BH geom.
        newFactors = cms.vdouble(
            210.55, 197.93, 186.12, 189.64, 189.63,
            189.96, 190.03, 190.11, 190.18, 190.25,
            190.32, 190.40, 190.47, 190.54, 190.61,
            190.69, 190.83, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94,
            190.94, 190.94, 190.94, 190.94, 190.94)
        process.mix.digitizers.hcal.he.samplingFactors = newFactors
        process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*len(newFactors))
        # Also need to tell the MixingModule to make the correct collections available from
        # the pileup, even if not creating CrossingFrames.
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgceeDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgchebackDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.input.append( cms.InputTag("g4SimHits",process.hgchefrontDigitizer.hitCollection.value()) )
        process.mix.mixObjects.mixCH.subdets.append( process.hgceeDigitizer.hitCollection.value() )
        process.mix.mixObjects.mixCH.subdets.append( process.hgchebackDigitizer.hitCollection.value() )
        process.mix.mixObjects.mixCH.subdets.append( process.hgchefrontDigitizer.hitCollection.value() )    
    return process
示例#4
0
                                process.genfiltersummary_step,
                                process.simulation_step,
                                process.digitisation_step, process.endjob_step,
                                process.FEVTDEBUGHLToutput_step)
# filter all path with the production filter sequence
for path in process.paths:
    getattr(process,
            path)._seq = process.generator * getattr(process, path)._seq

# customisation of the process.

# Automatic addition of the customisation function from SimMuon.GEMDigitizer.customizeGEMDigi
from SimMuon.GEMDigitizer.customizeGEMDigi import customize_digi_addGEM_muon_only

#call to customisation function customize_digi_addGEM_muon_only imported from SimMuon.GEMDigitizer.customizeGEMDigi
process = customize_digi_addGEM_muon_only(process)

# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads
from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixRPCConditions

#call to customisation function fixRPCConditions imported from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads
process = fixRPCConditions(process)

# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.me0Customs
from SLHCUpgradeSimulations.Configuration.me0Customs import customise_Digi

#call to customisation function customise_Digi imported from SLHCUpgradeSimulations.Configuration.me0Customs
process = customise_Digi(process)

# End of customisation functions
示例#5
0
def cust_2023MuonOnly(process):
    process = fixRPCConditions(process)
    return process
示例#6
0
    input = cms.untracked.int32(1) 
)

#process.Timing = cms.Service("Timing")
process.options = cms.untracked.PSet( 
    wantSummary = cms.untracked.bool(True) 
)

# customization of the process.pdigi sequence to add the GEM digitizer 
from SimMuon.GEMDigitizer.customizeGEMDigi import customize_digi_addGEM_muon_only
process = customize_digi_addGEM_muon_only(process) 

### Fix RPC Digitization ###
############################
from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixRPCConditions 
process = fixRPCConditions(process)
############################

process.source = cms.Source("PoolSource",
    fileNames = cms.untracked.vstring(
    'file:out_sim.root'
    )
)

process.output = cms.OutputModule("PoolOutputModule",
    fileName = cms.untracked.string( 
        'file:out_digi.root'
    ),
    outputCommands = cms.untracked.vstring(
        'keep  *_*_*_*',
        # drop all CF stuff
示例#7
0
def cust_2023MuonOnly(process):
    process = customise_gem2023(process)
    process = customise_rpc(process)
    process = fixRPCConditions(process)
    return process
示例#8
0
def cust_2023MuonOnly(process):
    process=customise_gem2023(process)
    process=customise_rpc(process)
    process=fixRPCConditions(process)
    return process
示例#9
0
def cust_2023MuonOnly(process):
    process=fixRPCConditions(process)
    return process