diff --git a/LArCalorimeter/LArDigitization/CMakeLists.txt b/LArCalorimeter/LArDigitization/CMakeLists.txt index 03b361355032ec6aa2b9e4edf240995714ec36bd..16e09060f8b4d6aa338f23d49a5b35867014bc15 100644 --- a/LArCalorimeter/LArDigitization/CMakeLists.txt +++ b/LArCalorimeter/LArDigitization/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( LArDigitization ) @@ -12,7 +12,7 @@ atlas_add_library( LArDigitizationLib src/LArHitEMap.cxx PUBLIC_HEADERS LArDigitization LINK_LIBRARIES AthenaKernel CaloDetDescrLib - LArCablingLib LArRawEvent + LArCablingLib LArRawEvent PRIVATE_LINK_LIBRARIES AtlasHepMCLib TruthUtils AthAllocators GaudiKernel GeneratorObjects Identifier LArIdentifier ) @@ -21,7 +21,7 @@ atlas_add_component( LArDigitization src/*.cxx src/components/*.cxx PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${Boost_LIBRARIES} + LINK_LIBRARIES ${CLHEP_LIBRARIES} ${Boost_LIBRARIES} AthenaBaseComps AtlasHepMCLib TruthUtils CaloIdentifier EventInfoUtils GeneratorObjects Identifier LArDigitizationLib LArElecCalib LArIdentifier LArRawConditions @@ -30,4 +30,3 @@ atlas_add_component( LArDigitization # 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/LArDigitization/python/LArDigitGetter.py b/LArCalorimeter/LArDigitization/python/LArDigitGetter.py deleted file mode 100644 index 69ae4afbb2f3cb42b5b26637fd292d1c35c812fe..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/python/LArDigitGetter.py +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -# Getter for LArDigit from LArHit for MC digitization - -from AthenaCommon.Logging import logging -from RecExConfig.Configured import Configured - -class LArDigitGetter (Configured) : - _outputType = "LArDigitContainer" - _outputType_DigiHSTruth = "LArDigitContainer_DigiHSTruth" - _output = { _outputType : "LArDigitContainer_MC" } - _output_DigiHSTruth = { _outputType_DigiHSTruth : "LArDigitContainer_DigiHSTruth"} - - def configure(self): - mlog = logging.getLogger( 'LArDigitGetter.py::configure :' ) - mlog.info ('entering') - - from AthenaCommon.AlgSequence import AlgSequence - job = AlgSequence() - - try: - from AthenaCommon import CfgGetter - # if using new scheme for pileup - from Digitization.DigitizationFlags import digitizationFlags - if digitizationFlags.doXingByXingPileUp(): - # Defined in LArDigitizationConfigLegacy.py - job.PileUpToolsAlg.PileUpTools += [ CfgGetter.getPrivateTool("LArPileUpTool", checkType=True) ] - job.PileUpToolsAlg.PileUpTools["LArPileUpTool"].DoDigiTruthReconstruction = digitizationFlags.doDigiTruth() - else: - # Defined in LArDigitizationConfigLegacy.py - job += CfgGetter.getAlgorithm("digitmaker1", tryDefaultConfigurable=True) - job += CfgGetter.getAlgorithm("LArHitEMapToDigitAlg") - job.digitmaker1.LArPileUpTool.DoDigiTruthReconstruction = digitizationFlags.doDigiTruth() - # if pileup or overlay - from AthenaCommon.DetFlags import DetFlags - from LArDigitization.LArDigitizationConfigLegacy import isOverlay - from OverlayCommonAlgs.OverlayFlags import overlayFlags - if DetFlags.pileup.LAr_on() or (isOverlay() and not overlayFlags.isOverlayMT()): - from AthenaCommon.AppMgr import ServiceMgr - # Defined in LArDigitizationConfigLegacy.py - ServiceMgr.PileUpMergeSvc.Intervals += [ CfgGetter.getPrivateTool("LArRangeEM", checkType=True) ] - ServiceMgr.PileUpMergeSvc.Intervals += [ CfgGetter.getPrivateTool("LArRangeHEC", checkType=True) ] - ServiceMgr.PileUpMergeSvc.Intervals += [ CfgGetter.getPrivateTool("LArRangeFCAL", checkType=True) ] - except Exception: - import traceback - traceback.print_exc() - mlog.error ("ERROR Problem with configuration") - - return True - - def outputKey(cls): - return cls._output[cls._outputType] - - def outputKey_DigiHSTruth(cls): - return cls._output_DigiHSTruth[cls._outputType_DigiHSTruth] - - def outputType(cls): - return cls._outputType - - def outputTypeKey(self): - return str(self.outputType()+"#"+self.outputKey()) - - def outputTypeKey_DigiHSTruth(self): - return str(self.outputType()+"#"+self.outputKey_DigiHSTruth()) - diff --git a/LArCalorimeter/LArDigitization/python/LArPileUpToolDefault.py b/LArCalorimeter/LArDigitization/python/LArPileUpToolDefault.py deleted file mode 100644 index bbe99ce704b71f2e447c184a1d50674b3e6eb5ea..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/python/LArPileUpToolDefault.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon.AlgSequence import AthSequencer - -# function to configure LArPileUpTool -def LArPileUpToolDefault(useLArFloat=True,isOverlay=False,name='LArPileUpToolDefault'): - - if isOverlay: - #For all other cases, this is already done by LArConditionsCommon_MC_jobOptions.py - from LArRecUtils.LArRecUtilsConf import LArSymConditionsAlg_LArfSamplMC_LArfSamplSym_ as LArfSamplSymAlg - condSeq = AthSequencer("AthCondSeq") - condSeq+=LArfSamplSymAlg(ReadKey="LArfSampl",WriteKey="LArfSamplSym") - - try: - from AthenaCommon import CfgGetter - theTool = CfgGetter.getPublicTool("LArPileUpTool") - from Digitization.DigitizationFlags import digitizationFlags - theTool.DoDigiTruthReconstruction = digitizationFlags.doDigiTruth() - # Need new conditions - from LArRecUtils.LArXTalkWeightCondAlgDefault import LArXTalkWeightCondAlgDefault - LArXTalkWeightCondAlgDefault() - - - except Exception: - import traceback - traceback.print_exc() - - return theTool diff --git a/LArCalorimeter/LArDigitization/share/LArDigitization_G4_jobOptions.py b/LArCalorimeter/LArDigitization/share/LArDigitization_G4_jobOptions.py deleted file mode 100755 index 9ebbf94460fe4887b9b3062189929e38b1e170e0..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/share/LArDigitization_G4_jobOptions.py +++ /dev/null @@ -1,42 +0,0 @@ -################################################################ -# -# job Options fragment to create LArDigits from LArHits which -# should be already in StoreGate -# to be used on G4 output -# -################################################################ - -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -from Digitization.DigitizationFlags import jobproperties - -# flag to use old event/run number seeding for backwards compatibility -if not 'LArDigitUseOldSeed' in dir(): - LArDigitUseOldSeed = False - -# Number of samples option (could be set by top JobOptions) -if not 'LArNSamples' in dir(): - LArNSamples = 5 - -# We also need the conditions svc for MC constants: -include("LArConditionsCommon/LArConditionsCommon_MC_jobOptions.py") - -# -# -------------------------------------------------------- -# ............ declare the used top algo. -# -------------------------------------------------------- -from LArDigitization.LArDigitizationConf import LArHitEMapMaker -digitmaker1 = LArHitEMapMaker("digitmaker1") -topSequence += digitmaker1 - -# Number of samples -digitmaker1.Nsamples = LArNSamples -# Calorimeter Noise -digitmaker1.NoiseOnOff = jobproperties.Digitization.doCaloNoise.get_Value() - -######################################################################### -# -# end of LArDigitization job Options fragment -# -##########################################################################" diff --git a/LArCalorimeter/LArDigitization/share/LArDigitization_jobOptions.py b/LArCalorimeter/LArDigitization/share/LArDigitization_jobOptions.py deleted file mode 100755 index b78a9d738ee681db0b48a0d86f0920ba4eb90506..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/share/LArDigitization_jobOptions.py +++ /dev/null @@ -1,3 +0,0 @@ -# Default jobOptions file for LArDigitization: -# Currently set for MC data -include( "LArDigitization/LArDigitization_G4_jobOptions.py" ) diff --git a/LArCalorimeter/LArDigitization/share/mergeLArHit_jobOptions.py b/LArCalorimeter/LArDigitization/share/mergeLArHit_jobOptions.py deleted file mode 100644 index f911650839cc77b0fb4e9cb4e2b8b49e13b4c4bc..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/share/mergeLArHit_jobOptions.py +++ /dev/null @@ -1,185 +0,0 @@ -# ========================================================================================================================= -# -# Example jobOptions to merge together LArhits from N subevents at the same time to produce a merged event corresponding -# to one bunch crossing -# -# Ncoll is average number of collisions in the bunch crossing (Poisson fluctuated) -# -# ============================================================================================================================= - - -# Overall common flags -include( "AthenaCommon/AthenaCommonFlags.py" ) - -PoolHITsOutput="mergedHits_23.pool.root" - -Ncoll=23 - -from AthenaCommon.AthenaCommonFlags import jobproperties -jobproperties.AthenaCommonFlags.EvtMax=100 - -from AthenaCommon.GlobalFlags import jobproperties -jobproperties.Global.DetDescrVersion='ATLAS-GEO-02-01-00' - -#-------------------------------------------------------------------- -# Perfmon configuration -#-------------------------------------------------------------------- -from PerfMonComps.PerfMonFlags import jobproperties -jobproperties.PerfMonFlags.doMonitoring = True -jobproperties.PerfMonFlags.doPersistencyMonitoring = True - - -PoolHitsInput = ["rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root"] - -minBiasInputCols=["rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00070.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00076.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00070.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00076.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00070.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00076.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00070.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00076.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00070.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00076.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00090.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00129.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00138.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00140.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00030.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00067.pool.root", - "rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105001.pythia_minbias.simul.HITS.e349_s462/HITS.024528._00069.pool.root"] - -from AthenaCommon.DetFlags import DetFlags -DetFlags.ID_setOff() -DetFlags.Calo_setOn() -DetFlags.Muon_setOff() -DetFlags.Truth_setOff() -DetFlags.LVL1_setOff() - -#Pool input -import AthenaPoolCnvSvc.ReadAthenaPool -# EventInfo Converters -include( "EventAthenaPool/EventAthenaPool_joboptions.py" ) - -from AtlasGeoModel import SetGeometryVersion -from AtlasGeoModel import GeoModelInit - -from AthenaCommon.AppMgr import ServiceMgr -from PileUpComps.PileUpCompsConf import PileUpEventLoopMgr - -# ad-hoc configuration of pileup event loop manager - -theApp.EventLoop = "PileUpEventLoopMgr" - -pileUpEventLoopMgr = PileUpEventLoopMgr() -from Digitization.DigitizationFlags import jobproperties -pupStream = "PileUpCollXingStream" -jobproperties.Digitization.rndmSeedList.addSeed( pupStream, 123, 345 ) -#define inputs -pileUpEventLoopMgr.OrigSelector="EventSelector" - -from PileUpComps.PileUpCompsConf import BkgStreamsCache -from Digitization import PileUpEventType -from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import EventSelectorAthenaPool -minBiasCache = BkgStreamsCache("MinBiasCache") -minBiasCache.CollPerXing=Ncoll -minBiasCache.CollDistribution="Poisson" -minBiasCache.ReadDownscaleFactor=1 # read one new event every event -minBiasCache.RndmGenSvc=jobproperties.Digitization.rndmSvc() -minBiasCache.RndmStreamName=pupStream -minBiasEvtSel = EventSelectorAthenaPool("minBiasEventSelector") -minBiasEvtSel.InputCollections = minBiasInputCols -minBiasEvtSel.KeepInputFilesOpen = True -ServiceMgr += minBiasEvtSel -minBiasCache.EventSelector="minBiasEventSelector" -pileUpEventLoopMgr.bkgCaches += [ minBiasCache ] - -#define time range to be studied. t0 at t=0, xing=0 -pileUpEventLoopMgr.XingFrequency=25; -pileUpEventLoopMgr.firstXing=0 -pileUpEventLoopMgr.lastXing=0 - -pileUpEventLoopMgr.OutputLevel=VERBOSE - -ServiceMgr += pileUpEventLoopMgr - -# in any case we need the PileUpMergeSvc for the digitize algos -from AthenaCommon.AppMgr import ServiceMgr -if not hasattr(ServiceMgr, 'PileUpMergeSvc'): - from PileUpTools.PileUpToolsConf import PileUpMergeSvc - ServiceMgr += PileUpMergeSvc() - - -# Pool input (Change this to use a different file) -from AthenaCommon.AppMgr import ServiceMgr -if not hasattr(ServiceMgr, 'EventSelector'): - import AthenaPoolCnvSvc.ReadAthenaPool -ServiceMgr.EventSelector.InputCollections = PoolHitsInput - -# Pool Output -from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream -Stream1 = AthenaPoolOutputStream("Stream1") -Stream1.OutputFile = PoolHITsOutput -Stream1.ItemList+=["EventInfo#*"]; -Stream1.ItemList+=["LArHitContainer#*"]; - - -# the LAr and Calo detector description package -include( "CaloConditions/CaloConditions_jobOptions.py" ) -include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_joboptions.py" ) -# Pool Converters -include( "LArAthenaPool/LArAthenaPool_joboptions.py" ) - -#algorithm -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -from LArDigitization.LArDigitizationConf import LArHitMerger -LArHitMerger = LArHitMerger("LArHitMerger") - -topSequence += LArHitMerger - -# -#-------------------------------------------------------------- -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -#-------------------------------------------------------------- -ServiceMgr.MessageSvc.OutputLevel = 3 -#-------------------------------------------------------------- -# Event related parameters -#-------------------------------------------------------------- -# Number of events to be processed (default is 10) -theApp.EvtMax = jobproperties.AthenaCommonFlags.EvtMax() diff --git a/LArCalorimeter/LArDigitization/share/pileup_mergeBunchCrossing_jobOptions.py b/LArCalorimeter/LArDigitization/share/pileup_mergeBunchCrossing_jobOptions.py deleted file mode 100755 index 75361e21aca68b86e7f488d1ab05552c92364fc5..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArDigitization/share/pileup_mergeBunchCrossing_jobOptions.py +++ /dev/null @@ -1,61 +0,0 @@ -# =========================================================================================================================== -# -# Example jobOptions to perform LAr pileup starting from merged bunch crossing -# Pileup is done with one "super event" per bunch crossing (fixed) (produced from merging of n subevets) -# jobproperties.Digitization.numberOfCollisions should still correspond to the real luminosity such that OFC optimization is done -# correctly -# -# ========================================================================================================================== -# -#-------------------------------------------------------------------- -# Perfmon configuration -#-------------------------------------------------------------------- -from PerfMonComps.PerfMonFlags import jobproperties -jobproperties.PerfMonFlags.doMonitoring = True -jobproperties.PerfMonFlags.doPersistencyMonitoring = True - -#-------------------------------------------------------------- -# AthenaCommon configuration -#-------------------------------------------------------------- -from AthenaCommon.AthenaCommonFlags import jobproperties -jobproperties.AthenaCommonFlags.EvtMax=10 -jobproperties.AthenaCommonFlags.PoolHitsInput=["rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/digitization/RTT/mc08/mc08.105200.T1_McAtNlo_Jimmy.simul.HITS.e357_s462/HITS.025431._02899.pool.root.1"] -jobproperties.AthenaCommonFlags.PoolRDOOutput="DigitizationOutput_newMerge_23.pool.root" - -#-------------------------------------------------------------- -# Digitiziation and Pileup configuration -#-------------------------------------------------------------- -from Digitization.DigitizationFlags import jobproperties -jobproperties.Digitization.doMinimumBias=True -jobproperties.Digitization.doCavern=False -jobproperties.Digitization.doBeamGas=False -jobproperties.Digitization.doBeamHalo=False - -jobproperties.Digitization.bunchSpacing=25 -jobproperties.Digitization.numberOfCollisions=23. -jobproperties.Digitization.initialBunchCrossing=-32 -jobproperties.Digitization.finalBunchCrossing=5 - -jobproperties.Digitization.minBiasInputCols=["mergedHits_23.pool.root"] - -#-------------------------------------------------------------- -# Global flags. Like eg the DD version: -#-------------------------------------------------------------- -from AthenaCommon.GlobalFlags import jobproperties -jobproperties.Global.DetDescrVersion='ATLAS-GEO-02-01-00' - -#-------------------------------------------------------------------- -# DetFlags. Use to turn on/off individual subdetector or LVL1 trigger -#-------------------------------------------------------------------- -from AthenaCommon.DetFlags import DetFlags -DetFlags.ID_setOff() -DetFlags.Calo_setOn() -DetFlags.Tile_setOff() -DetFlags.Muon_setOff() -DetFlags.Truth_setOff() -DetFlags.LVL1_setOff() - -include( "Digitization/Digitization.py" ) - -minBiasCache.CollDistribution="Fixed" -minBiasCache.CollPerXing=1 diff --git a/LArCalorimeter/LArG4TB/H6G4Sim/share/LArDigitization_H6G4_jobOptions.py b/LArCalorimeter/LArG4TB/H6G4Sim/share/LArDigitization_H6G4_jobOptions.py deleted file mode 100755 index 14f397b94a355b8c529a8c5a11cc16b91ad9d21e..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4TB/H6G4Sim/share/LArDigitization_H6G4_jobOptions.py +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration -################################################################ -# -# job Options fragment to create LArDigits from LArHits which -# should be already in StoreGate -# to be used on G4 output -# -################################################################ - -# overall calorimeter noise options (could be set by top jobOptions) -if 'doCaloNoise' not in dir(): - doCaloNoise = True - -# We also need the conditions svc for MC constants: -# to use new calibration classes (WorkMode=1) -# not needed for new mode -# include( "LArG4TBH6/LArCondCnv_H6G4_jobOptions.py" ) -#include( "LArCondCnv/LArCondCnv_Config_jobOptions.py" ) -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -#theApp.Dlls += [ "LArTools","LArCalibUtils" ] -#ToolSvc = Service( "ToolSvc" ) -from Digitization.DigitizationFlags import jobproperties -from AthenaCommon.AppMgr import ToolSvc -theADC2MeVTool.MCSym=True -ToolSvc += theADC2MeVTool -# The following are properties for LArDigitization: -isOverlay = False -useLArFloat = True -# get main tool which does the real work -from LArDigitization.LArPileUpToolDefault import LArPileUpToolDefault -theLArPileUpTool = LArPileUpToolDefault(useLArFloat,isOverlay,"LArDigitContainer_MC","LArPileUpTool") -theLArPileUpTool.UseTriggerTime = True -theLArPileUpTool.TriggerTimeToolName = "LArTBH6TriggerTimeTool" -# ................... electronic noise -if doCaloNoise: - theLArPileUpTool.NoiseOnOff = True # if true, noise added in all subdetectors -else: - theLArPileUpTool.NoiseOnOff = False - -# -# -------------------------------------------------------- -# ............ declare the used top algo. -# -------------------------------------------------------- -#theApp.Dlls += ["LArDigitization"] -#theApp.TopAlg += [ "LArHitEMapMaker/digitmaker1"] -from LArDigitization.LArDigitizationConf import LArHitEMapMaker -digitmaker1 = LArHitEMapMaker("digitmaker1") -topSequence += digitmaker1 -# -digitmaker1.LArPileUpTool = theLArPileUpTool -# -# -------------------------------------------------------- -# all properties now to tool -# -------------------------------------------------------- -# -# .................. sub-detector hit containers -# -# -theLArPileUpTool.SubDetectors = "LAr_EndCap" -# -# -# .................. set the Low gain threshold (ADC counts) -# -theLArPileUpTool.LowGainThreshEM = 3900 -theLArPileUpTool.LowGainThreshHEC = 2500 -theLArPileUpTool.LowGainThreshFCAL = 2000 -# -# .................. set the high gain threshold (ADC counts) -# -theLArPileUpTool.HighGainThreshEM = 1300 -theLArPileUpTool.HighGainThreshHEC = 0 -theLArPileUpTool.HighGainThreshFCAL = 1100 -# -# .................. set High gain value: applied if E < HighGainThreshrPileUpTool -# -#digitmaker1.HighGainValue = 100. -# -# .................. set Medium gain value: applied if HighGainThresh E < LowGainThresh -# -#digitmaker1.MediumGainValue = 10. -# -# .................. set Low gain value: applied if E > LowGainThresh -# -#digitmaker1.LowGainValue = 1. -# -# .................. set pedestal -# -#digitmaker1.AdcPedestal = 1000. -# -# .................. set Adc to GeV constant -# .................. (adc = UnCalibretedEnergy*Gain/AdcPerGeV + Pedestal) -# .................. this number is correlated to ped and gain -# -#digitmaker1.AdcPerGev = 5. -# -# .................. set the energy threshold for zero suppression -# -theLArPileUpTool.EnergyThresh = -99. -# -# .................. switches on the noise -#put false if you want cancel the noise in one or several sub-detectors -theLArPileUpTool.NoiseInEMB = False # if false, noise in Barrel is off -theLArPileUpTool.NoiseInEMEC = True # if false, noise in EndCap is off -theLArPileUpTool.NoiseInHEC = True # if false, noise in HEC is off -theLArPileUpTool.NoiseInFCAL = True # if false, noise in FCAL is off -# -# .................... turn on cross-talk in EM calorimeter -theLArPileUpTool.CrossTalk = True -# -# ..................... Pile up turned off -# ... use new calibration classes -#digitmaker1.WorkMode = 1 -# ... use the trigger time tool -######################################################################### -# -# end of LArDigitization job Options fragment -# -##########################################################################" diff --git a/LArCalorimeter/LArL1Sim/python/LArSCL1Getter.py b/LArCalorimeter/LArL1Sim/python/LArSCL1Getter.py deleted file mode 100644 index a9d5aff53894ff451e0ed0d5dc832f86987000e1..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/python/LArSCL1Getter.py +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -# LArSCL1 creation from LArHits with LArSCL1Maker algorithm - -from AthenaCommon.Logging import logging -from RecExConfig.Configured import Configured -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() -import traceback - -from IOVDbSvc.CondDB import conddb - -def addLArFlatFolder (db, obj, calg, folder_base='/LAR/ElecCalibFlat/',qual=''): - from AthenaCommon.AlgSequence import AthSequencer - condSequence = AthSequencer("AthCondSeq") - - folder = folder_base + obj - if not conddb.folderRequested(folder): - conddb.addFolder(db, folder + qual, - className = 'CondAttrListCollection') - condSequence += calg (ReadKey=folder, WriteKey='LAr'+obj+'SC') - return - -class LArSCL1Getter ( Configured ) : - - - def configure(self): - mlog = logging.getLogger( 'LArSCL1Getter::configure:' ) - mlog.info ('entering') - - # get handle to upstream object - try: - from LArL1Sim.LArSCL1Getter import LArSCL1Getter - theLArSCL1Getter=LArSCL1Getter() - except Exception: - mlog.error("could not get handle to LArSCL1Getter Quit") - traceback.print_exc() - return False - - if not theLArSCL1Getter.usable(): - if not self.ignoreConfigError(): - mlog.error("LArSCL1Getter unusable. Quit.") - return False - else: - mlog.error("LArSCL1Getter unusable. Continue nevertheless") - - # Instantiation of the C++ algorithm - try: - from LArL1Sim.LArL1SimConf import LArSCL1Maker - except Exception: - mlog.error("could not import LArL1Sim.LArSCL1Maker") - traceback.print_exc() - return False - - from LArCabling.LArCablingAccess import LArOnOffIdMappingSC - from LArRecUtils.LArRecUtilsConf import LArFlatConditionsAlg_LArNoiseSC_ as LArNoiseSCCondAlg - from LArRecUtils.LArRecUtilsConf import LArFlatConditionsAlg_LArPedestalSC_ as LArPedestalSCFlatCondAlg - from LArRecUtils.LArRecUtilsConf import LArFlatConditionsAlg_LArShapeSC_ as LArShapeSCCondAlg - from LArRecUtils.LArRecUtilsConf import LArFlatConditionsAlg_LArfSamplSC_ as LArfSamplSCCondAlg - - - LArOnOffIdMappingSC() - addLArFlatFolder ('LAR_OFL', 'Shape', LArShapeSCCondAlg,'/LAR/ElecCalibMCSC/') - addLArFlatFolder ('LAR_OFL', 'Pedestal', LArPedestalSCFlatCondAlg,'/LAR/ElecCalibMCSC/') - addLArFlatFolder ('LAR_OFL', 'Noise', LArNoiseSCCondAlg,'/LAR/ElecCalibMCSC/') - addLArFlatFolder ('LAR_OFL', 'fSampl', LArfSamplSCCondAlg,'/LAR/ElecCalibMCSC/') - from LArRecUtils.LArAutoCorrNoiseSCCondAlgDefault import LArAutoCorrNoiseSCCondAlgDefault - LArAutoCorrNoiseSCCondAlgDefault() - from LArRecUtils.LArADC2MeVSCCondAlgDefault import LArADC2MeVSCCondAlgDefault - LArADC2MeVSCCondAlgDefault() - theLArSCL1Maker=LArSCL1Maker() - from LArROD.LArRODFlags import larRODFlags - theLArSCL1Maker.NSamples = larRODFlags.nSamples() + 2 # For consistency with LArAutoCorrNoiseSC - see ATLASSIM-5483 - from Digitization.DigitizationFlags import digitizationFlags - if digitizationFlags.PileUpPresampling and 'LegacyOverlay' not in digitizationFlags.experimentalDigi(): - from OverlayCommonAlgs.OverlayFlags import overlayFlags - theLArSCL1Maker.SCL1ContainerName = overlayFlags.bkgPrefix() + "LArDigitSCL2" - else: - theLArSCL1Maker.SCL1ContainerName = "LArDigitSCL2" - - self._LArSCL1Maker = theLArSCL1Maker - - from AthenaCommon.AlgSequence import AlgSequence - topSequence = AlgSequence() - - # check if LArdigitization is run before. If yes, uses hit map from detector store produces from lardigitization - from AthenaCommon.DetFlags import DetFlags - if DetFlags.digitize.LAr_on(): - mlog.info("Using hit map from LArHitEMapMaker algoritm") - else: - mlog.info("digitmaker1 not found in topSequence, using own map in LArSCL1Maker") - return False - - - mlog.info(" now adding to topSequence") - topSequence += theLArSCL1Maker - - - return True - - def LArSCL1Maker(self): - return self._LArSCL1Maker - - def outputKey(cls): - return cls._output[cls._outputType] - - def outputType(cls): - return cls._outputType - - def outputTypeKey(self): - return str(self.outputType()+"#"+self.outputKey()) - - diff --git a/LArCalorimeter/LArL1Sim/share/LArL1Sim_G4_jobOptions.py b/LArCalorimeter/LArL1Sim/share/LArL1Sim_G4_jobOptions.py deleted file mode 100755 index a1a52b64101c694049ec183b8823c0225a2bfc9d..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/share/LArL1Sim_G4_jobOptions.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration - -from LArL1Sim.LArTTL1Getter import * -theLArTTL1Getter = LArTTL1Getter() - -from LArL1Sim.LArL1SimConf import * -theLArTTL1Maker=LArTTL1Maker() -from Digitization.DigitizationFlags import digitizationFlags -theLArTTL1Maker.RandomSeedOffset = digitizationFlags.rndmSeedOffset1.get_Value() + digitizationFlags.rndmSeedOffset2.get_Value() -#include( "LArDetDescr/LArDetDescr_joboptions.py" ) - -#include( "CaloConditions/CaloConditions_jobOptions.py" ) - -if digitizationFlags.PileUpPresampling and 'LegacyOverlay' not in digitizationFlags.experimentalDigi(): - from OverlayCommonAlgs.OverlayFlags import overlayFlags - theLArTTL1Maker.EmTTL1ContainerName = overlayFlags.bkgPrefix() + "LArTTL1EM" - theLArTTL1Maker.HadTTL1ContainerName = overlayFlags.bkgPrefix() + "LArTTL1HAD" diff --git a/LArCalorimeter/LArL1Sim/share/LArL1Sim_calib_jobOptions.py b/LArCalorimeter/LArL1Sim/share/LArL1Sim_calib_jobOptions.py deleted file mode 100755 index 728bb8cff87ef400528af695667de67d1cb888a6..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/share/LArL1Sim_calib_jobOptions.py +++ /dev/null @@ -1,69 +0,0 @@ -# +===========================================================================+ -# + + -# + Author ........: F. Ledroit + -# + Institut ......: LPSC Grenoble + -# + Creation date .: 21/04/2004 Version 0.01 + -# + Subject .......: Job Option file to make calibration of the TTL1s + -# +===========================================================================+ -include( "LArL1Sim/LArL1Sim_testG4_jobOptions.py" ) - -theApp.TopAlg += [ "LArTTL1Calib"] - -#-------------------------------------------------------------- -# Private Application Configuration options -#-------------------------------------------------------------- - -#-------------------------------------------------------------- -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -#-------------------------------------------------------------- -LArTTL1Calib = Algorithm( "LArTTL1Calib" ) -#LArTTL1Calib.OutputLevel = 2 -svcMgr.MessageSvc.useColors = TRUE -svcMgr.MessageSvc.OutputLevel = 3 -svcMgr.MessageSvc.debugLimit = 100000 - -theLArTTL1Maker=LArTTL1Maker() -theLArTTL1Maker.OutputLevel = 3 - -theApp.EvtMax = 100000 - -#-------------------------------------------------------------- -# Select HBOOK or ROOT persistency -#-------------------------------------------------------------- -theApp.HistogramPersistency = "HBOOK" -#-------------------------------------------------------------- -# Histogram output file -#-------------------------------------------------------------- -# Specify the appropriate output file type -HistogramPersistencySvc = Service( "HistogramPersistencySvc" ) -HistogramPersistencySvc.OutputFile = "histo.hbook" -#HistogramPersistencySvc.OutputFile = "histo.rt" -#-------------------------------------------------------------- -# Ntuples -#-------------------------------------------------------------- -NTupleSvc = Service( "NTupleSvc" ) -NTupleSvc.Output = [ "FILE1 DATAFILE='tuple1.hbook' OPT='NEW'" ] -# -# -# ............ if true, noise added in all subdetectors (default = true) -# -theLArTTL1Maker.NoiseOnOff = FALSE -# -# ....... if true, NO calibration is applied to EM towers (for calibration coeffs computation !) -#.................(default = false ) -# -#theLArTTL1Maker.NoEmCalibrationMode = TRUE -# -# ....... if true, NO calibration is applied to HEC towers (for calibration coeffs computation !) -#.................(default = false ) -# -#theLArTTL1Maker.NoHadCalibrationMode = TRUE -# -# ............ transverse energy threshold for debug printout (default = 5000 MeV) -# -#theLArTTL1Maker.DebugThreshold = 1000. -#============================================================== -# -# End of job options file -# -############################################################### diff --git a/LArCalorimeter/LArL1Sim/share/LArL1Sim_poolTestWrite_jobOptions.py b/LArCalorimeter/LArL1Sim/share/LArL1Sim_poolTestWrite_jobOptions.py deleted file mode 100755 index da916b9f05b0b50f84d45150bc6ef431ade366fd..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/share/LArL1Sim_poolTestWrite_jobOptions.py +++ /dev/null @@ -1,37 +0,0 @@ -# +===================================================================================+ -# + + -# + Author ........: F. Ledroit + -# + Institut ......: LPSC Grenoble + -# + Creation date .: 16/12/2004 Version 0.01 + -# + Subject .......: Job Option file to test the writing of pool persistified LArTTL1 + -# +===================================================================================+ - -# to read pool Data (hits) -include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" ) - -# G4 Pool input -# make sure the file listed is in PoolFileCatalog.xml in run directory -# AND that you have a copy or soft link of this file in the run directory -# it is possible to specify a list of files to be processed consecutively -EventSelector = Service( "EventSelector" ) - -#EventSelector.InputCollection = "$INFN"; -#EventSelector.InputCollections = ["rfio:/castor/cern.ch/grid/atlas/datafiles/dc2/simul/dc2.003026.simul.A0_top/dc2.003026.simul.A0_top._00001.pool.root.1","rfio:/castor/cern.ch/grid/atlas/datafiles/dc2/simul/dc2.003026.simul.A0_top/dc2.003026.simul.A0_top._00002.pool.root.1"] -#EventSelector.InputCollections = ["rfio:/castor/cern.ch/user/c/costanzo/validation/data/dc2val.e_et25_eta25.006002.g4sim/dc2val.e_et25_eta25.006002.g4sim.0000.root","rfio:/castor/cern.ch/user/c/costanzo/validation/data/dc2val.e_et25_eta25.006002.g4sim/dc2val.e_et25_eta25.006002.g4sim.0001.root"] -EventSelector.InputCollections = ["/afs/cern.ch/user/f/fledroit/scratch0/castor/dc2val.e_et25_eta25.006002.g4sim.0000.root"] - -# Number of events to be processed (default is 10) -theApp.EvtMax = 3 - -include( "LArAthenaPool/LArAthenaPool_joboptions.py" ) - -include( "LArL1Sim/LArL1Sim_G4_jobOptions.py" ) - -# Pool Output -Stream1 = Algorithm( "Stream1" ) -theApp.OutStream +=["Stream1"] -Stream1.EvtConversionSvc ="AthenaPoolCnvSvc" -Stream1.OutputFile = "TTL1PoolFile2.root" -Stream1.ItemList+=["xAOD::EventInfo#*"] -Stream1.ItemList+=["LArTTL1Container#*"] - diff --git a/LArCalorimeter/LArL1Sim/share/LArL1Sim_testG4_jobOptions.py b/LArCalorimeter/LArL1Sim/share/LArL1Sim_testG4_jobOptions.py deleted file mode 100755 index 076219741282ab71a8aec0cde9ab5b30282da8fa..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/share/LArL1Sim_testG4_jobOptions.py +++ /dev/null @@ -1,87 +0,0 @@ -# +===========================================================================+ -# + + -# + Author ........: F. Ledroit + -# + Institut ......: ISN Grenoble + -# + Creation date .: 15/09/2004 Version 0.01 + -# + Subject .......: Job Option file to test LArTTL1Maker on G4 + -# +===========================================================================+ -# Top Level JobOptions to test LArTTl1Maker algorithm. -# Input is from LArHits (simulation) - -DetDescrVersion = "ATLAS-GEO-03-00-00" -include( "RecExCond/RecExCommon_flags.py" ) - -#DetFlags.detdescr.ID_setOff() -#DetFlags.detdescr.Calo_setOff() -#DetFlags.detdescr.LAr_setOff() -#DetFlags.detdescr.Tile_setOff() -#DetFlags.detdescr.Muon_setOff() -DetFlags.detdescr.all_setOff() -DetFlags.detdescr.Calo_setOn() - -# set up all detector description -include ("RecExCond/AllDet_detDescr.py") - -#globalflags.ConditionsTag = 'OFLCOND-SIM-00-00-03' -if len(globalflags.ConditionsTag())!=0: - from IOVDbSvc.CondDB import conddb - conddb.setGlobalTag(globalflags.ConditionsTag()) - -# Number of events to be processed (default is 10) -theApp.EvtMax = 10 -##svcMgr.EventSelector.FirstEvent = 1 - -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -svcMgr.MessageSvc.OutputLevel = 3 -#svcMgr.MessageSvc.verboseLimit = 100000 -#svcMgr.MessageSvc.debugLimit = 100000 -#ServiceMgr.IOVSvc.OutputLevel = VERBOSE - -# to read pool Data -import AthenaPoolCnvSvc.ReadAthenaPool - -# G4 Pool input -#svcMgr.EventSelector.InputCollections = ["LFN:input.root"]; -#svcMgr.EventSelector.InputCollections = "$INFN"; - -# csc datasets -#svcMgr.EventSelector.InputCollections = ["rfio:/castor/cern.ch/user/f/fledroit/csc7051/calib0_mc12.007051.singlepart_gammaTT_emecIW.simul.HITS.v12003103_tid004119._00015.pool.root"] -#svcMgr.EventSelector.InputCollections = ["rfio:/castor/cern.ch/user/f/fledroit/csc7003/calib0_csc11.007003.singlepart_e_Et25.simul.HITS.v12000301_tid003216._00001.pool.root"] -#svcMgr.EventSelector.InputCollections = ["rfio:/castor/cern.ch/user/s/svahsen/digitization/RTT/calib1_csc11.005200.T1_McAtNlo_Jimmy.simul.HITS.v12003104_tid004131._00069.pool.root.10"] -#svcMgr.EventSelector.InputCollections = ["/afs/cern.ch/user/f/fledroit/scratch0/test_ntuples/calib0_csc11.007003.singlepart_e_Et25.simul.HITS.v12000301_tid003216._00001.pool.root"] -# -#svcMgr.EventSelector.InputCollections = ["rfio:/castor/cern.ch/grid/atlas/atlasmcdisk/valid1/HITS/valid1.007003.singlepart_e_Et25.simul.HITS.e322_s472_tid025400/HITS.025400._00002.pool.root.1"] -svcMgr.EventSelector.InputCollections = ["/afs/cern.ch/user/k/ketevi/w0/data/singleMuon100.HITS.020162._00001.pool.root"] - - - -include( "LArL1Sim/LArL1Sim_G4_jobOptions.py" ) -theLArTTL1Maker.OutputLevel = 2 - -# Configure LArTTL1Maker here -#theLArTTL1Maker.SubDetectors="LAr_All" -#theLArTTL1Maker.EmBarrelHitContainerName="LArHitEMB" -#theLArTTL1Maker.EmEndCapHitContainerName="LArHitEMEC" -#theLArTTL1Maker.HecHitContainerName="LArHitHEC" -#theLArTTL1Maker.ForWardHitContainerName="LArHitFCAL" - -#theLArTTL1Maker.EmTTL1ContainerName="LArTTL1EM" -#theLArTTL1Maker.HadTTL1ContainerName="LArTTL1HAD" - -#theLArTTL1Maker.NoiseOnOff=true - -#theLArTTL1Maker.PileUp=false -#theLArTTL1Maker.UseTriggerTime=false -#theLArTTL1Maker.TriggerTimeToolName="CosmicTriggerTimeTool" - -#theLArTTL1Maker.EmBarrelCalibrationCoeffs=[1.03, 1.024, 1.019, 1.02, 1.02, 1.024, 1.03, 1.046, 1.06, 1.053, 1.057, 1.062, 1.063, 1.076, 1.176] -#theLArTTL1Maker.EmEndCapCalibrationCoeffs=[1.176, 1.061, 1.087, 1.015, 1.019, 1.014, 1.014, 1.009, 1.01, 1.003, 1.016, 1.003, 0.993, 1.005, 0.963] -#theLArTTL1Maker.HECCalibrationCoeffs=[1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.] -#theLArTTL1Maker.EmFcalCalibrationCoeffs=[1., 1., 1., 1.] -#theLArTTL1Maker.HadFcalCalibrationCoeffs=[1., 1., 1., 1.] - -#theLArTTL1Maker.NoEmCalibrationMode=false -#theLArTTL1Maker.NoHadCalibrationMode=false -#theLArTTL1Maker.ChronoTest=false -#theLArTTL1Maker.DebugThreshold=5000. - diff --git a/LArCalorimeter/LArROD/python/LArRODConfigDb.py b/LArCalorimeter/LArROD/python/LArRODConfigDb.py deleted file mode 100644 index 11327f0e863dcd61fe53acbd4757adb7ca27811e..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArROD/python/LArRODConfigDb.py +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon.CfgGetter import addAlgorithm -addAlgorithm("LArROD.LArRODConfigLegacy.getLArRawChannelBuilder", "LArRawChannelBuilder") - diff --git a/LArCalorimeter/LArROD/python/LArRODConfigLegacy.py b/LArCalorimeter/LArROD/python/LArRODConfigLegacy.py deleted file mode 100644 index 08b81953b64e81bed05b223098c1b7436f7c1736..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArROD/python/LArRODConfigLegacy.py +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon import CfgMgr, CfgGetter - -def getLArRawChannelBuilder(name="LArRawChannelBuilder" , **kwargs): - - kwargs.setdefault('LArRawChannelKey', "LArRawChannels") - - from Digitization.DigitizationFlags import digitizationFlags - if digitizationFlags.PileUpPresampling and 'LegacyOverlay' not in digitizationFlags.experimentalDigi(): - from OverlayCommonAlgs.OverlayFlags import overlayFlags - kwargs.setdefault('LArDigitKey', overlayFlags.bkgPrefix() + 'LArDigitContainer_MC') - else: - kwargs.setdefault('LArDigitKey', 'LArDigitContainer_MC') - - #Call required Cond-Algos: - from LArRecUtils.LArAutoCorrTotalCondAlgDefault import LArAutoCorrTotalCondAlgDefault - from LArRecUtils.LArOFCCondAlgDefault import LArOFCCondAlgDefault - from LArRecUtils.LArADC2MeVCondAlgDefault import LArADC2MeVCondAlgDefault - - #The order matters when running w/o MT - LArADC2MeVCondAlgDefault() - LArAutoCorrTotalCondAlgDefault() - LArOFCCondAlgDefault() - - - kwargs.setdefault("ShapeKey","LArShapeSym") - - from LArROD.LArRODFlags import larRODFlags - kwargs.setdefault('firstSample',larRODFlags.firstSample()) - iovDbSvc=CfgGetter.getService("IOVDbSvc") - from AthenaCommon.AlgSequence import AthSequencer - condSeq = AthSequencer("AthCondSeq") - condLoader=condSeq.CondInputLoader - - from AtlasGeoModel.CommonGMJobProperties import CommonGeometryFlags - if CommonGeometryFlags.Run() == "RUN1": # back to flat threshold - kwargs.setdefault('useDB', False) - kwargs.setdefault('Run2DSPThresholdsKey', '') - else: - fld="/LAR/NoiseOfl/DSPThresholds" - kwargs.setdefault('Run2DSPThresholdsKey', fld) - iovDbSvc.Folders.append(fld+"<db>COOLOFL_LAR/OFLP200</db>") - condLoader.Load.add(("AthenaAttributeList",fld)) - - return CfgMgr.LArRawChannelBuilderAlg(name, **kwargs) - -def getLArRawChannelBuilder_DigiHSTruth(name="LArRawChannelBuilder_DigiHSTruth" , **kwargs): - - kwargs.setdefault('LArRawChannelKey', "LArRawChannels_DigiHSTruth") - kwargs.setdefault('LArDigitKey', 'LArDigitContainer_DigiHSTruth') - - #Call required Cond-Algos: - from LArRecUtils.LArAutoCorrTotalCondAlgDefault import LArAutoCorrTotalCondAlgDefault - from LArRecUtils.LArOFCCondAlgDefault import LArOFCCondAlgDefault - from LArRecUtils.LArADC2MeVCondAlgDefault import LArADC2MeVCondAlgDefault - - #The order matters when running w/o MT - LArADC2MeVCondAlgDefault() - LArAutoCorrTotalCondAlgDefault() - LArOFCCondAlgDefault() - - kwargs.setdefault("ShapeKey","LArShapeSym") - from LArROD.LArRODFlags import larRODFlags - kwargs.setdefault('firstSample',larRODFlags.firstSample()) - iovDbSvc=CfgGetter.getService("IOVDbSvc") - from AthenaCommon.AlgSequence import AthSequencer - condSeq = AthSequencer("AthCondSeq") - condLoader=condSeq.CondInputLoader - - - from AtlasGeoModel.CommonGMJobProperties import CommonGeometryFlags - if CommonGeometryFlags.Run() == "RUN1": # back to flat threshold - kwargs.setdefault('useDB', False) - kwargs.setdefault('Run2DSPThresholdsKey', '') - else: - fld="/LAR/NoiseOfl/DSPThresholds" - kwargs.setdefault('Run2DSPThresholdsKey', fld) - iovDbSvc.Folders.append(fld+"<db>COOLOFL_LAR/OFLP200</db>") - condLoader.Load.add(("AthenaAttributeList",fld)) - - return CfgMgr.LArRawChannelBuilderAlg(name, **kwargs) diff --git a/LArCalorimeter/LArROD/python/LArSCellGetter.py b/LArCalorimeter/LArROD/python/LArSCellGetter.py deleted file mode 100755 index 93997d526d610ce0acae42e728136d38ba51f90a..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArROD/python/LArSCellGetter.py +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -# specifies LArSCell getting - -from AthenaCommon.Logging import logging -from RecExConfig.Configured import Configured - -class LArSCellGetter ( Configured ) : - #_outputType = "CaloCellContainer" - #_output = { _outputType : "SCell" } # do not want to list all the IDC - - def configure(self): - mlog = logging.getLogger( 'Py:LArSCellGetter::configure %s:' % self.__class__ ) - - from AthenaCommon.AlgSequence import AlgSequence - topSequence = AlgSequence() - - - # get LArDigitGetter in MC case - from AthenaCommon.DetFlags import DetFlags - if DetFlags.digitize.LAr_on() : - try: - from LArL1Sim.LArSCL1Getter import LArSCL1Getter - theLArSCL1Getter = LArSCL1Getter() - except Exception: - import traceback - mlog.error(traceback.format_exc()) - mlog.error("could not get handle to LArDigitGetter Quit") - return False - if not theLArSCL1Getter.usable(): - mlog.error("LArSCL1Getter unusable. Quite") - return False - -# Only MC case - - from LArROD.LArSuperCellBuilderAlgDefault import LArSuperCellBuilderAlgDefault,LArSuperCellBCIDAlgDefault - topSequence+=LArSuperCellBuilderAlgDefault() - topSequence+=LArSuperCellBCIDAlgDefault() - - - return True - -# would work only if one output object type - def LArSCellBuilder(self): - return self._LArSCellBuilder - def outputKey(cls): - return cls._output[cls._outputType] - - def outputType(cls): - return cls._outputType - - def outputTypeKey(self): - return str(self.outputType()+"#"+self.outputKey()) diff --git a/LArCalorimeter/LArROD/share/LArSuperCellEnable.py b/LArCalorimeter/LArROD/share/LArSuperCellEnable.py deleted file mode 100644 index 31051a5c79e672b0eda67294c20653d59349122b..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArROD/share/LArSuperCellEnable.py +++ /dev/null @@ -1,21 +0,0 @@ - -from LArL1Sim.LArSCL1Getter import * -theLArSCL1Getter = LArSCL1Getter() - -theLArSCL1Maker=LArSCL1Maker() - -from LArROD.LArSCellGetter import LArSCellGetter -theLArSCellGetter = LArSCellGetter() - -from AthenaCommon.AlgSequence import AthSequencer -condSeq = AthSequencer("AthCondSeq") -if not hasattr(condSeq,"CaloSuperCellAlignCondAlg"): - from CaloAlignmentAlgs.CaloAlignmentAlgsConf import CaloSuperCellAlignCondAlg - condSeq += CaloSuperCellAlignCondAlg("CaloSuperCellAlignCondAlg") - -streamRDO.ItemList+=["LArDigitContainer#LArDigitSCL2"] -streamRDO.ItemList+=["CaloCellContainer#SCellnoBCID"] -streamRDO.ItemList+=["CaloCellContainer#SCell"] - -topSequence.remove(streamRDO) -topSequence += streamRDO