diff --git a/LArCalorimeter/LArTest/LArCalibTest/CMakeLists.txt b/LArCalorimeter/LArTest/LArCalibTest/CMakeLists.txt index 66a54d1faf8f5c7b206edae8bcdc3af5a8874eff..7c96c0b0281642823ea28fbfff4b5f0c9841fbe7 100644 --- a/LArCalorimeter/LArTest/LArCalibTest/CMakeLists.txt +++ b/LArCalorimeter/LArTest/LArCalibTest/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( LArCalibTest ) @@ -15,5 +15,4 @@ atlas_add_component( LArCalibTest # Install files from the package: atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) -atlas_install_joboptions( share/*.py ) diff --git a/LArCalorimeter/LArTest/LArCalibTest/python/HECNoiseD3PDFlags.py b/LArCalorimeter/LArTest/LArCalibTest/python/HECNoiseD3PDFlags.py deleted file mode 100644 index f3dbca58695cd0dcc4dbd0b308e074d2b43f045b..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArTest/LArCalibTest/python/HECNoiseD3PDFlags.py +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer -from AthenaCommon.JobProperties import jobproperties - -class FileName(JobProperty): - statusOn = False - allowedTypes = ['str'] - StoredValue = "HECNoiseD3PD.root" - pass - - -class HECNoiseD3PDFlags(JobPropertyContainer): - pass - -jobproperties.add_Container(HECNoiseD3PDFlags) -list_jobproperties = [ - FileName] - -for i in list_jobproperties: - jobproperties.HECNoiseD3PDFlags.add_JobProperty(i) - pass - -del list_jobproperties - -HECNoiseflags=jobproperties.HECNoiseD3PDFlags diff --git a/LArCalorimeter/LArTest/LArCalibTest/share/DumpCaloBadChannels.py b/LArCalorimeter/LArTest/LArCalibTest/share/DumpCaloBadChannels.py deleted file mode 100644 index ef7750f5882bdba3ff91f02f52956fb1e4695a79..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArTest/LArCalibTest/share/DumpCaloBadChannels.py +++ /dev/null @@ -1,79 +0,0 @@ -#No input file -> use MC event selector -import AthenaCommon.AtlasUnixGeneratorJob - -from AthenaCommon.GlobalFlags import GlobalFlags -GlobalFlags.DetGeo.set_commis() -GlobalFlags.Luminosity.set_zero() -GlobalFlags.DataSource.set_data() -GlobalFlags.InputFormat.set_bytestream() - -from AthenaCommon.JobProperties import jobproperties -jobproperties.Global.DetDescrVersion = "ATLAS-Comm-00-00-00" - -from AthenaCommon.DetFlags import DetFlags -DetFlags.Calo_setOff() -DetFlags.ID_setOff() -DetFlags.Muon_setOff() -DetFlags.Truth_setOff() -DetFlags.LVL1_setOff() -DetFlags.digitize.all_setOff() - -#Set up GeoModel (not really needed but crashes without) -from AtlasGeoModel import SetGeometryVersion -from AtlasGeoModel import GeoModelInit - -#Get identifier mapping -include( "LArConditionsCommon/LArIdMap_comm_jobOptions.py" ) -include( "LArIdCnv/LArIdCnv_joboptions.py" ) - -include( "IdDictDetDescrCnv/IdDictDetDescrCnv_joboptions.py" ) -include( "CaloConditions/CaloConditions_jobOptions.py" ) - -#include( "ByteStreamCnvSvc/BSEventStorageEventSelector_jobOptions.py" ) - -theApp.EvtMax = 1 - -svcMgr.EventSelector.RunNumber = 1 -#svcMgr.EventSelector.EventsPerRun = 1 -svcMgr.EventSelector.FirstEvent = 1 -#svcMgr.EventSelector.InitialTimeStamp = 0 -#svcMgr.EventSelector.TimeStampInterval = 5 -# svcMgr.EventSelector.MaxBadEvents = 0 - -# -# Provides ByteStreamInputSvc name of the data file to process in the offline context -# - -## get a handle to the default top-level algorithm sequence -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -## get a handle to the ApplicationManager, to the ServiceManager and to the ToolSvc -from AthenaCommon.AppMgr import (theApp, ServiceMgr as svcMgr,ToolSvc) - -theApp.EvtMax=1 - -## theByteStreamInputSvc=svcMgr.ByteStreamInputSvc -## svcMgr.EventSelector.Input=["/home/wlampl/LArOFIter/ramp/inputs/daq.Ramp.0029146.No.Streaming.LB0000.EB-EMBA._0001.data"] - - - -from LArCalibTest.LArCalibTestConf import DumpCaloBadChannels -theDumper=DumpCaloBadChannels() -theDumper.FileName="list.txt" -topSequence+=theDumper; - - - -svcMgr+=CfgMgr.AthenaEventLoopMgr(OutputLevel = WARNING) - -from AthenaCommon.AppMgr import theAuditorSvc -from AthenaCommon.ConfigurableDb import getConfigurable -theAuditorSvc += getConfigurable("MemStatAuditor")(OutputLevel = WARNING) -theAuditorSvc += getConfigurable("ChronoAuditor")() -theAuditorSvc += getConfigurable("NameAuditor")() - - -########################################################################### - -svcMgr.DetectorStore.Dump=True diff --git a/LArCalorimeter/LArTest/LArCalibTest/share/HECD3PDFilter.py b/LArCalorimeter/LArTest/LArCalibTest/share/HECD3PDFilter.py deleted file mode 100644 index 456d2e8dd53afe4a74b35016d046b99b7a357958..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArTest/LArCalibTest/share/HECD3PDFilter.py +++ /dev/null @@ -1,17 +0,0 @@ -include('LArIdCnv/LArIdCnv_joboptions.py') -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -from LArCalibTest.HECNoiseD3PDFlags import HECNoiseflags -from LArCalibTest.HECNoiseD3PDMaker import HECNoiseD3PDMaker - -from LArRecUtils.LArRecUtilsConf import LArFlatConditionSvc -theLArCondSvc=LArFlatConditionSvc(DoSuperCells=False,DoRegularCells=True) -svcMgr+=theLArCondSvc -svcMgr.ProxyProviderSvc.ProviderNames += [ "LArFlatConditionSvc" ] -conddb.addFolder("LAR","/LAR/ElecCalibFlat/Pedestal") -svcMgr.LArFlatConditionSvc.PedestalInput="/LAR/ElecCalibFlat/Pedestal" - -filAlg=HECNoiseD3PDMaker("HECNoiseFilter", NtupleFileName = HECNoiseflags.FileName()) -topSequence += filAlg - diff --git a/LArCalorimeter/LArTest/LArCalibTest/share/LArReadHadDMCoeff.py b/LArCalorimeter/LArTest/LArCalibTest/share/LArReadHadDMCoeff.py deleted file mode 100755 index f0b2c25d2e8770e3c73ec1092229be5a00d68853..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArTest/LArCalibTest/share/LArReadHadDMCoeff.py +++ /dev/null @@ -1,47 +0,0 @@ -from AthenaCommon.DetFlags import DetFlags -DetFlags.Calo_setOff() -DetFlags.ID_setOff() -DetFlags.Muon_setOff() -DetFlags.Truth_setOff() -DetFlags.LVL1_setOff() -DetFlags.digitize.all_setOff() - -include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" ) - -include( "IdDictDetDescrCnv/IdDictDetDescrCnv_joboptions.py" ) -include( "CaloConditions/CaloConditions_jobOptions.py" ) - -theApp.Dlls+=["LArCalibTest"] -theApp.TopAlg+=["LArReadHadDMCoeffFile2"] -LArReadHadDMCoeff=Algorithm("LArReadHadDMCoeffFile2") -LArReadHadDMCoeff.HadDMCoeffFileName = "/afs/cern.ch/user/p/pospelov/public/HadDMCoeff2/HadDMCoeff2_11122007.txt" -LArReadHadDMCoeff.CorrectionKey="HadDMCoeff2" - -# Number of events to be processed (default is 10) -theApp.EvtMax = 1 - -include( "AthenaPoolCnvSvc/AthenaPool_jobOptions.py" ) - -include("CaloCondAthenaPool/CaloCondAthenaPool_joboptions.py") - -from RegistrationServices.OutputConditionsAlg import OutputConditionsAlg -myOCA=OutputConditionsAlg("myOCA","HadDMCoeff2_11122007.pool.root") -#myOCA.ObjectList = ["CaloHadDMCoeff2#HadDMCoeff2"] -myOCA.ObjectList = ["CaloHadDMCoeff2#HadDMCoeff2#/CALO/HadCalibration/CaloDMCorr2"] -myOCA.WriteIOV = True -myOCA.OutputLevel= DEBUG -myOCA.IOVTagList = [ "CaloHadDMCorr-002-00" ] - -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -MessageSvc = Service( "MessageSvc" ) -MessageSvc.OutputLevel = INFO - -#DetectorStore = Service( "DetectorStore" ) -#DetectorStore.Dump = TRUE -#DetectorStore.OutputLevel = INFO - - -include( "IOVDbSvc/IOVDbSvc_jobOptions.py" ) -IOVDbSvc = Service( "IOVDbSvc" ) - -IOVDbSvc.dbConnection = "impl=cool;techno=sqlite;schema=myDBHadDMCoeff200.db;X:OFLP200"