コード例 #1
0
ファイル: aging.py プロジェクト: vberta/cmssw
def agedHGCal(process):
    from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCal_setEndOfLifeNoise
    for subdet in ['EE', 'FH', 'BH']:
        hgcaldigi = getHGCalDigitizer(process, subdet)
        if hgcaldigi is not None: HGCal_setEndOfLifeNoise(hgcaldigi)
    return process
コード例 #2
0
ファイル: aging.py プロジェクト: archiesharma/muonPhase2
def agedHGCal(process):
    from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCal_setEndOfLifeNoise
    process = HGCal_setEndOfLifeNoise(process)
    return process
コード例 #3
0
if os.path.isdir(options.input):
    fList = ['file:'+os.path.join(options.input,f) for f in os.listdir(options.input) if '.root' in f]
else:
    fList = ['file:'+x for x in options.input.split(',')]

process.source = cms.Source("PoolSource",
                            fileNames = cms.untracked.vstring(fList),
                            duplicateCheckMode = cms.untracked.string("noDuplicateCheck")
                        )
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) )

#prepare digitization parameters fo the end of life
process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
process.load('RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi')
from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCal_setEndOfLifeNoise
HGCal_setEndOfLifeNoise(process,byDoseAlgo=options.byDoseAlgo)

#analyzer
process.ana = cms.EDAnalyzer("HGCDigiTester",
                             hgceeDigitizer=process.hgceeDigitizer,                             
                             hgcehDigitizer=process.hgchefrontDigitizer,
                             hgcehsciDigitizer=process.hgchebackDigitizer,
                             hgcee_fCPerMIP=process.HGCalRecHit.HGCEE_fCPerMIP,
                             hgceh_fCPerMIP=process.HGCalRecHit.HGCHEF_fCPerMIP,
                             hgcehsci_keV2DIGI=process.HGCalRecHit.HGCHEB_keV2DIGI,
                             useVanillaCfg=cms.bool(options.useVanillaCfg),
                             hardProcOnly=cms.bool(options.hardProcOnly),
                             onlyROCTree=cms.bool(options.onlyROCTree)
                         )

process.RandomNumberGeneratorService.ana = cms.PSet( initialSeed = cms.untracked.uint32(0),
コード例 #4
0
def agedHGCal(process):
    from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCal_setEndOfLifeNoise
    HGCal_setEndOfLifeNoise(getHGCalDigitizer(process,'EE'))
    HGCal_setEndOfLifeNoise(getHGCalDigitizer(process,'FH'))
    HGCal_setEndOfLifeNoise(getHGCalDigitizer(process,'BH'))
    return process
コード例 #5
0
def agedHGCal(process,algo=0):
    from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCal_setEndOfLifeNoise
    process = HGCal_setEndOfLifeNoise(process,byDose=True,byDoseAlgo=algo)
    return process