diff --git a/LArCalorimeter/LArG4/LArG4GenShowerLib/share/LArG4FSStartPointFilterBody.py b/LArCalorimeter/LArG4/LArG4GenShowerLib/share/LArG4FSStartPointFilterBody.py deleted file mode 100755 index de3c1e8e8877eab79ed4d4ce3c2516b9efb10758..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4/LArG4GenShowerLib/share/LArG4FSStartPointFilterBody.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -ServiceMgr.MessageSvc.OutputLevel = INFO -## Algorithm sequence -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - -## AthenaCommon flags -from AthenaCommon.AthenaCommonFlags import athenaCommonFlags - -i = options['outevents'] - -athenaCommonFlags.EvtMax = i -athenaCommonFlags.PoolHitsOutput.set_Off() - -from AthenaCommon.AppMgr import theApp -theApp.EvtMax = i - -import AthenaCommon.AtlasUnixGeneratorJob - -from TruthIO.TruthIOConf import HepMCReadFromFile -read = HepMCReadFromFile() -read.InputFile = options['outfile'] -topSequence += read - -from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream -outStream = AthenaPoolOutputStream("OutStream") -outStream.ItemList = ["EventInfo#*", "McEventCollection#*"] - -outfile = options['outfile'] -if outfile.endswith(".ascii") : - outfile = outfile[:-6] -outStream.OutputFile = outfile+".pool.root" diff --git a/LArCalorimeter/LArG4/LArG4H6SD/CMakeLists.txt b/LArCalorimeter/LArG4/LArG4H6SD/CMakeLists.txt index 190a2296666a1454e1fe273220ce204ae4205229..3004ca9ed017cc71901dbf3cf2252a3a47951cd8 100644 --- a/LArCalorimeter/LArG4/LArG4H6SD/CMakeLists.txt +++ b/LArCalorimeter/LArG4/LArG4H6SD/CMakeLists.txt @@ -22,5 +22,3 @@ atlas_add_library( LArG4H6SD PRIVATE_INCLUDE_DIRS ${CORAL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} PRIVATE_LINK_LIBRARIES ${CORAL_LIBRARIES} ${Boost_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} GaudiKernel CaloG4SimLib CaloSimEvent AthenaBaseComps AthenaKernel StoreGateLib GeoModelUtilities Identifier GeneratorObjects LArG4Code LArG4RunControl LArG4TBSimEvent LArReadoutGeometry LArSimEvent G4AtlasInterfaces G4AtlasToolsLib SimHelpers HitManagement MCTruth TBEvent PathResolver GeoModelInterfaces RDBAccessSvcLib ) -# Install files from the package: -atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) diff --git a/LArCalorimeter/LArG4/LArG4H6SD/python/LArTBH6BeamInfoGetter.py b/LArCalorimeter/LArG4/LArG4H6SD/python/LArTBH6BeamInfoGetter.py deleted file mode 100644 index 32d7ff5e4ec188d3d9bb61fa2c83b73c79301f85..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4/LArG4H6SD/python/LArTBH6BeamInfoGetter.py +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon.Logging import logging -from RecExConfig.Configured import Configured -import traceback - -# -# These should probably be in a common library. -# -def _makeconf (cls, name = None, **kwargs): - if name is not None: - x = cls(name) - else: - x = cls() - for (k,v) in kwargs.items(): - setattr (x, k, v) - return x - - -class LArTBH6BeamInfoGetter (Configured): - # Must be set - #_name = xxx - #_suffix = xxx - - def configure (self): - # Make a logger. - clsname = self.__class__.__name__ - mlog = logging.getLogger ('%s:configure : ' % clsname) - - # Create the configurable. - try: - from LArG4H6SD.LArG4H6SDConf import LArTBH6BeamInfo - theLArTBH6BeamInfo = LArTBH6BeamInfo() - except Exception: - mlog.error("could not import LArG4H6SD.LArTBH6BeamInfo") - mlog.error (traceback.format_exc()) - return False - self._LArTBH6BeamInfoHandle = theLArTBH6BeamInfo - - theLArTBH6BeamInfo.HitsContainer = ["LArTBFrontHitCollection"] - theLArTBH6BeamInfo.PrimaryTrackOnly = True - theLArTBH6BeamInfo.PrimaryParticle = 999 - - # now add algorithm to topSequence - from __main__ import topSequence - topSequence += theLArTBH6BeamInfo - - return True - - def handle(self): - return self._handle - - diff --git a/LArCalorimeter/LArG4/LArG4H6SD/python/__init__.py b/LArCalorimeter/LArG4/LArG4H6SD/python/__init__.py deleted file mode 100644 index 8860c71335c1b6066affc4363f9e5164ee187ebf..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4/LArG4H6SD/python/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -#======================================================================= -# File: LArG4H6SD/python/__init__.py -#======================================================================= -__version__ = '0.0.1' -__author__ = 'Pavol Strizenec ' -__all__ = [ 'LArTBH6BeamInfoGetter' ] -__doc__ =""" - Python modules for the LArG4H6SD - - LArTBH6BeamInfo -> store H6BeamInfo in Ntuple - """ -__description__ ='Python interface for LArG4H6SD ' - -# -#======================================================================= - diff --git a/LArCalorimeter/LArG4/LArG4Validation/share/AODElectronContainerReaderBody.py b/LArCalorimeter/LArG4/LArG4Validation/share/AODElectronContainerReaderBody.py deleted file mode 100755 index f68e0dcebc35fbabdcd3fdd56dfef51a6163ebb0..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4/LArG4Validation/share/AODElectronContainerReaderBody.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -from AthenaCommon.AppMgr import ServiceMgr -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() - - -from LArG4Validation.LArG4ValidationConf import AODReader -topSequence += AODReader() - -topSequence.AODReader.OutputLevel = WARNING - -AthenaEventLoopMgr = Service("AthenaEventLoopMgr") -AthenaEventLoopMgr.OutputLevel = ERROR - -import AthenaPoolCnvSvc.ReadAthenaPool -ServiceMgr.EventSelector.InputCollections = args - -theApp.Dlls += [ 'RootHistCnv' ] -theApp.HistogramPersistency = 'ROOT' -NTupleSvc = Service( "NTupleSvc" ) -NTupleSvc.Output = [ "FILE DATAFILE=\'"+"ntuple.root"+"\' TYP='ROOT' OPT='NEW'" ] diff --git a/LArCalorimeter/LArG4/LArG4Validation/share/postInclude.SingleTrackValidation.py b/LArCalorimeter/LArG4/LArG4Validation/share/postInclude.SingleTrackValidation.py deleted file mode 100644 index f57902df7202b5a30ce521baa8eaf68611f52009..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArG4/LArG4Validation/share/postInclude.SingleTrackValidation.py +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -# get a handle to the default top-level algorithm sequence -from AthenaCommon.AlgSequence import AlgSequence -topSequence = AlgSequence() -from LArG4Validation.LArG4ValidationConf import SingleTrackValidation -topSequence += SingleTrackValidation() - -# The following lines are to construct our ntuple: - -if "RootFileName" not in dir() : - RootFileName = "sp.tuple.root" - -NtupleSvc = Service( "NTupleSvc" ) -NtupleSvc.Output = [ "FILE DATAFILE=\'" + RootFileName + "\' OPT='NEW'" ] - -theApp.Dlls += [ "RootHistCnv" ] -theApp.HistogramPersistency = "ROOT"