示例#1
0
from AthenaCommon.AppMgr import ServiceMgr

# Add top algorithms to be run
from FastCaloSimHit.FastCaloSimHitConf import FastHitConv
theFastHitConv=FastHitConv("theFastHitConv")

from AthenaCommon.DetFlags import DetFlags

topSequence += theFastHitConv

job.theFastHitConv.OutputLevel = ALL
job.OutputLevel = INFO


from AthenaCommon.DetFlags import DetFlags

if DetFlags.pileup.LAr_on() or DetFlags.pileup.Tile_on():
    job.theFastHitConv.doPileup = True
else:
    job.theFastHitConv.doPileup = False
    


from CaloRec.CaloCellFlags import jobproperties
jobproperties.CaloCellFlags.doFastCaloSim = True
jobproperties.CaloCellFlags.doFastCaloSimNoise = False
jobproperties.CaloCellFlags.doLArCellEmMisCalib = False

from FastCaloSimHit.FastCaloCellGetter import CaloCellGetter
theCaloCellGetter=CaloCellGetter()                          # CaloCellGetter then goes in front of FastHitConv
示例#2
0
theFastHitConv = FastHitConv("MyFastHitConv")
#job += FastHitConv( "MyFastHitConv" )   # 1 alg, named "FastHitConv"
topSequence.insert(0, theFastHitConv)

job.MyFastHitConv.OutputLevel = ALL
job.OutputLevel = DEBUG

printfunc(topSequence)

from CaloRec.CaloCellFlags import jobproperties
jobproperties.CaloCellFlags.doFastCaloSim = True
jobproperties.CaloCellFlags.doFastCaloSimNoise = False
jobproperties.CaloCellFlags.doLArCellEmMisCalib = False

from FastCaloSimHit.FastCaloCellGetter import CaloCellGetter
theCaloCellGetter = CaloCellGetter()
#jobproperties.CaloCellFlags.doFastCaloSim = False
#theCaloCellGetter._CaloCellMakerHandle.OutputLevel = 2

printfunc("Set the TileHitVectors and LArHitContainers")

topSequence.TileHitVecToCnt.TileHitVectors += ["TileHitVec_Fast"]

topSequence.digitmaker1.EmBarrelHitContainerName = "LArHitEMB_FastComb"
topSequence.digitmaker1.EmEndCapHitContainerName = "LArHitEMEC_FastComb"
topSequence.digitmaker1.HecHitContainerName = "LArHitHEC_FastComb"
topSequence.digitmaker1.ForWardHitContainerName = "LArHitFCAL_FastComb"  # It really is spelt with a "W" in the middle!

# Print out job sequence
printfunc(" The jobsequence is now:")
printfunc(job)