Skip to content
Snippets Groups Projects
Commit 38317d5d authored by Walter Lampl's avatar Walter Lampl Committed by Tadej Novak
Browse files

remove obsolete jobO-only packate Calorimeter/CaloTestBeam/CaloTBRec

remove obsolete jobO-only packate Calorimeter/CaloTestBeam/CaloTBRec
parent f9bfd6be
No related merge requests found
################################################################################
# Package: CaloTBRec
################################################################################
# Declare the package name:
atlas_subdir( CaloTBRec )
# Install files from the package:
atlas_install_joboptions( share/*.py )
#*******************************************************************
#
# JobOption to define global tags for Calo testbeam data
#
# Important note : you need, either in your topOption of here
#
# the lines :
# from RecExCommon.GlobalFlags import GlobalFlags
# from RecExCommon.DetFlags import DetFlags
#
# GlobalFlags.DetGeo.set_ctbh8()
#
# if not 'doSim' in dir():
# doSim=False ( or true )
#
# if doSim:
# # Reading G4 simulated data from Pool
# GlobalFlags.DataSource.set_geant4()
# GlobalFlags.InputFormat.set_pool()
# else:
# # Reading ByteStream real data
# GlobalFlags.DataSource.set_data()
# GlobalFlags.InputFormat.set_bytestream()
#
#
#*******************************************************************
# make sure that the proper DB is used for Table position reading
#LArCondCnvDbServer = 'atlobk02.cern.ch'
# set default flags if not done by a topOption :
# ---------------------------------------------
#set RecExTB flags if not done by a topOption :
if not 'doLAr' in dir():
doLAr=True
DetFlags.digitize.LAr_on()
if not 'doTile' in dir():
doTile=True
DetFlags.digitize.Tile_on()
#set RecExCommon flags if not done by a topOption :
# Sliding Window on EM
if not 'doEmCluster' in dir():
doEmCluster=doLAr
# Combined Sliding Window?
if not 'doCaloCluster' in dir():
doCaloCluster=doLAr and doTile
# Combined TopoCluster?
if not 'doCaloTopoCluster' in dir():
doCaloTopoCluster=doLAr or doTile
#EMTB style clustering
if not 'doEMTBCluster' in dir():
doEMTBCluster=doLAr
if not 'doLArHVCorrection' in dir():
doLArHVCorrection=False
#now real internal business starts:
#-----------------------------------
if globalflags.InputFormat.is_zebra():
doCaloNoise=False
doLArCellDirect=True
if globalflags.DataSource.is_geant4():
doCaloNoise=True
#*******************************************************************
#
# JobOption to analyse Combined testbeam data : Calo reconstruction
#
# same jobOpt as RecExCommon, with DetFlags.makeRIO.Calo_on()
#*******************************************************************
#abc --------- RawChannel -> Cell ------------
#abc
#abc These 2 lines are identical to RecExCommon :
#abc
include( "CaloRec/CaloCellMaker_config.py" )
include( "CaloRec/CaloCellMaker_jobOptions.py" )
#abc ==> modified because collections have a different name here:
if doTile:
include( "TileTBRec/TileTBRCToCellSelect_jobOptions.py" )
if doLAr:
#already above ToolSvc = Service( "ToolSvc" )
ToolSvc.cellbuilderLAr.LArRegion = "LAr_EM"
ToolSvc.cellbuilderLAr.EThreshold =-100000. * MeV
#
include( "CaloRec/CaloTopoCluster_jobOptions.py" )
include( "CaloRec/EMTopoCluster_jobOptions.py" )
#*******************************************************************
#
# JobOption to analyse Combined testbeam data : Calo reconstruction
#
# same jobOpt as RecExCommon, with DetFlags.makeRIO.Calo_on()
#*******************************************************************
#from CaloRec.CaloRecConf import CaloCellMaker
#CaloCellMaker = CaloCellMaker()
#CaloCellMaker.CaloCellsOutputName = "AllCalo"
#from CaloRec.CaloCellGetter import CaloCellGetter
#CaloCellGetter()
include ("CaloRec/CaloRec_jobOptions.py")
#from LArCellRec.LArCellRecConf import LArCellBuilderFromLArRawChannelTool
ToolSvc.LArCellBuilderFromLArRawChannelTool.LArRegion = "LAr_EM"
ToolSvc.LArCellBuilderFromLArRawChannelTool.EThreshold =-1.e32* MeV # lowered the threshold to get rid of unuseful warnings!
#abc : apply HV correction to real data
#if not doSim:
# if doLArHVCorrection:
# from CaloRec.CaloRecConf import CaloCellContainerCorrectorTool
# LArCellCorrectorTool = CaloCellContainerCorrectorTool("LArCellCorrectorTool")
# ToolSvc += LArCellCorrectorTool
# ToolSvc.LArCellCorrectorTool.CellCorrectionToolNames = [ "LArCellHVCorrection" ]
# include( "LArRecUtils/LArHVScaleTool_jobOptions.py" )
#if doTile:
# if not hasattr( ToolSvc, "TileCellBuilder" ):
# from TileRecUtils.TileRecUtilsConf import TileCellBuilder
# theTileCellBuilder=TileCellBuilder()
# ToolSvc += theTileCellBuilder
# from TileRecUtils.TileRecFlags import jobproperties
# if doSim:
# set correct name of input container in CTB simulation
# jobproperties.TileRecFlags.TileRawChannelContainer = "TileRawChannelFit"
# ToolSvc.TileCellBuilder.maskBadChannels = True
# ToolSvc.TileCellBuilder.TileRawChannelContainer = jobproperties.TileRecFlags.TileRawChannelContainer()
# CaloCellMaker.CaloCellMakerToolNames += [ ToolSvc.TileCellBuilder.getFullName() ]
#from CaloRec.CaloRecConf import CaloCellContainerFinalizerTool
#CaloCellContainerFinalizerTool = CaloCellContainerFinalizerTool()
#ToolSvc += CaloCellContainerFinalizerTool
#CaloCellMaker.CaloCellMakerToolNames += [ CaloCellContainerFinalizerTool ]
#from CaloRec.CaloRecConf import CaloCellContainerCheckerTool
#CaloCellContainerCheckerTool = CaloCellContainerCheckerTool()
#ToolSvc += CaloCellContainerCheckerTool
#CaloCellMaker.CaloCellMakerToolNames += [CaloCellContainerCheckerTool]
#topSequence += CaloCellMaker
# Job Option fragemnt to produce CaloClusters out of LArCells.
# Currently only used for Monitoring
#--- topo cluster maker ---------------------------
theApp.TopAlg += ["CaloClusterMaker/CaloTopoClusterEMMaker"]
CaloTopoClusterEMMaker = Algorithm( "CaloTopoClusterEMMaker" )
CaloTopoClusterEMMaker.ClustersOutputName="CaloTopoClusterEM"
CaloTopoClusterEMMaker.ClusterMakerTools=[
"CaloTopoClusterMaker/TopoCluster"
]
CaloTopoClusterEMMaker.TopoCluster.CellsNames=["AllCalo"]
CaloTopoClusterEMMaker.TopoCluster.CalorimeterNames=[
"LAREM"
]
CaloTopoClusterEMMaker.TopoCluster.SeedSamplingNames = [
"PreSamplerB", "EMB1", "EMB2", "EMB3",
"PreSamplerE", "EME1", "EME2", "EME3"]
CaloTopoClusterEMMaker.TopoCluster.UsePileUpNoise=FALSE
CaloTopoClusterEMMaker.TopoCluster.NeighborOption = "all3D"
CaloTopoClusterEMMaker.TopoCluster.NoiseSigma = 200.0*MeV
CaloTopoClusterEMMaker.TopoCluster.CellThresholdOnAbsEinSigma = 0.0
CaloTopoClusterEMMaker.TopoCluster.NeighborThresholdOnAbsEinSigma = 3.0
CaloTopoClusterEMMaker.TopoCluster.SeedThresholdOnEinSigma = 4.0
CaloTopoClusterEMMaker.TopoCluster.CellThresholdOnAbsEt = -1
CaloTopoClusterEMMaker.TopoCluster.NeighborThresholdOnAbsEt = -1
CaloTopoClusterEMMaker.TopoCluster.SeedThresholdOnEt = -1
CaloTopoClusterEMMaker.TopoCluster.OutputLevel = INFO
#*******************************************************************
#
# JobOption to analyse Combined testbeam data : Calo reconstruction
#
# same jobOpt as RecExCommon, with DetFlags.makeRIO.Calo_on()
#*******************************************************************
#abc -------- Now Cluster reconstruction : --------------
#abc
if doCaloCluster:
include( "CaloRec/CaloCluster_jobOptions.py" )
#abc but needs to overwrite a few things :
CmbTowerBldr.TowerBuilderTools=[
"LArTowerBuilderTool/LArCmbTwrBldr" ]
LArCmbTwrBldr.IncludedCalos = [ "LAREM" ]
if doEmCluster:
#sliding window
include( "LArClusterRec/LArCluster_jobOptions.py" )
if doEMTBCluster:
#special TB clustering
include( "LArClusterRec/LArTBCluster_jobOptions.py" )
include( "CaloClusterCorrection/CaloTB_ClusterCorrection.py" )
if doCaloTopoCluster:
include( "CaloRec/CaloTopoCluster_jobOptions.py" )
include( "CaloRec/EMTopoCluster_jobOptions.py" )
topSequence.CaloTopoCluster.TopoMoments.MomentsNames += [
"ENG_FRAC_EM" ,
"ENG_FRAC_MAX" ,
"ENG_FRAC_CORE" ,
"SECOND_ENG_DENS" ,
]
#*******************************************************************
#
# JobOption to analyse Combined testbeam data : Calo reconstruction
#
# same jobOpt as RecExCommon, with DetFlags.makeRIO.Calo_on()
#*******************************************************************
include( "CaloTBRec/CaloTBRec_H8_Cell_jobOptions.py" )
include( "CaloTBRec/CaloTBRec_H8_Cluster_jobOptions.py" )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment