diff --git a/LArCalorimeter/LArCnv/LArByteStream/share/WriteLArBS_jobOptions.py b/LArCalorimeter/LArCnv/LArByteStream/share/WriteLArBS_jobOptions.py deleted file mode 100644 index d0f4bbf5625c5a7b93b8524999f3befa298d8f02..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArCnv/LArByteStream/share/WriteLArBS_jobOptions.py +++ /dev/null @@ -1,19 +0,0 @@ -# jobOptions for creating MC LArRawChannel, then write LAr ByteStream -# works for G3 -include( "LArSim/LArSim_MC_jobOptions.py" ) - -include( "LArROD/LArROD_MC_jobOptions.py" ) - -digitmaker1 = Algorithm( "digitmaker1" ) -digitmaker1.NoiseOnOff = FALSE ; # switch noise off -digitmaker1.CrossTalk = FALSE ; # switch crosstalk off -theApp.TopAlg += [ "ReadLArRaw" ] -ReadLArRaw = Algorithm( "ReadLArRaw" ) -ReadLArRaw.LArRawChannelContainerName = "LArRawChannels" -ReadLArRaw.HistogramID = 128 -ReadLArRaw.NtupleLocID = "/FILE1/LARG" -# specify the LAr Converter and LArROD type and key for output. -theApp.Dlls += [ "LArCalibUtils" ] -theApp.Dlls += [ "LArByteStream" ] -StreamBS = Algorithm( "StreamBS" ) -StreamBS.ItemList +=["2721#*"] diff --git a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_ReadTest_jobOptions.py b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_ReadTest_jobOptions.py deleted file mode 100755 index afd1bc8a11d8e7901df5b984dae57fb83dc5a6f0..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_ReadTest_jobOptions.py +++ /dev/null @@ -1,36 +0,0 @@ -############################################################### -# -# Job options file -# -#============================================================== -#-------------------------------------------------------------- -# Load POOL support -#-------------------------------------------------------------- -include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" ) - -#-------------------------------------------------------------- -# Event related parameters -#-------------------------------------------------------------- -theApp.EvtMax = 200 -#-------------------------------------------------------------- -# Private Application Configuration options -#-------------------------------------------------------------- -#-------------------------------------------------------------- -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -#-------------------------------------------------------------- -MessageSvc = Service( "MessageSvc" ) -MessageSvc.OutputLevel = 2 -##include "$DETDESCRDICTIONARYROOT/dict/DetDescrDictionary_joboptions.txt" -##include "$LARSIMEVENTROOT/dict/LArSimEvent_joboptions.txt" -##include "$EVENTINFOROOT/dict/EventInfo_joboptions.txt" -theApp.Dlls += [ "LArSim" ] -theApp.TopAlg += [ "LArHitReader" ] -theApp.Dlls += [ "LArSimEventAthenaPoolPoolCnv" ] -EventSelector = Service( "EventSelector" ) -EventSelector.InputCollection = "LArSimTest.root" -PoolSvc = Service( "PoolSvc" ) -#============================================================== -# -# End of job options file -# -############################################################### diff --git a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_WriteTest_jobOptions.py b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_WriteTest_jobOptions.py deleted file mode 100755 index 5984520eaa02446824d35d12347d49528d411c03..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/share/LArSimAthenaPool_WriteTest_jobOptions.py +++ /dev/null @@ -1,43 +0,0 @@ -############################################################### -# -# Job options file -# -#============================================================== -theApp.setup( MONTECARLO ) - -#-------------------------------------------------------------- -# Load POOL support -#-------------------------------------------------------------- -include( "AthenaPoolCnvSvc/WriteAthenaPool_jobOptions.py" ) - -#-------------------------------------------------------------- -# Event related parameters -#-------------------------------------------------------------- -theApp.EvtMax = 20 -#-------------------------------------------------------------- -# Private Application Configuration options -#-------------------------------------------------------------- -#-------------------------------------------------------------- -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -#-------------------------------------------------------------- -##include "$LARSIMEVENTROOT/dict/LArSimEvent_joboptions.txt" -##include "$IDENTIFIERROOT/dict/Identifier_joboptions.txt" -##include "$EVENTINFOROOT/dict/EventInfo_joboptions.txt" -# LAr Hit -# #include "$TDRDETDESCRATHENAROOTROOT/share/TDRDetDescrAthenaRoot_jobOptions.txt" -# #include "$LARDETMGRDETDESCRCNVROOT/share/LArDetMgrDetDescrCnv_joboptions.txt" -# #include "$LARSIMROOT/share/LArSim_Fake_jobOptions.txt" -theApp.Dlls += [ "LArSim" ] -theApp.TopAlg += [ "LArFakeHitProducer" ] -theApp.Dlls += [ "LArSimEventAthenaPoolPoolCnv" ] -Stream1 = Algorithm( "Stream1" ) -Stream1.ItemList+=["LArHitContainer#*"] -Stream1.ItemList+=["EventInfo#*"] -MessageSvc = Service( "MessageSvc" ) -MessageSvc.OutputLevel = 2 -Stream1.OutputFile="LArSimTest.root" -#============================================================== -# -# End of job options file -# -############################################################### diff --git a/LArCalorimeter/LArL1Sim/share/LArL1Sim_MC_jobOptions.py b/LArCalorimeter/LArL1Sim/share/LArL1Sim_MC_jobOptions.py deleted file mode 100755 index 1348871cd4ba7dd2428c638d9c398adbb39c1e64..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArL1Sim/share/LArL1Sim_MC_jobOptions.py +++ /dev/null @@ -1,45 +0,0 @@ -# +===========================================================================+ -# + + -# + Author ........: F. Ledroit + -# + Institut ......: ISN Grenoble + -# + Creation date .: 04/02/2003 + -# + Subject .......: Job Option file to be used with zebra input + -# + ------------------------------------------------------------------------- + -# This jobOptions file is for creating LArTTL1 from simulated Hits. -# Not to be used for TB. -include( "LArSim/LArSim_MC_jobOptions.py" ) - -# switch neighbour initialisation off (default = true = perform init.) -#DetDescrCnvSvc.DoInitNeighbours = FALSE - -# The following are properties for LArL1Sim: -# -# -------------------------------------------------------- -# ............ declare the used top algo. -# -------------------------------------------------------- -theApp.Dlls += ["LArL1Sim"] -theApp.TopAlg += [ "LArTTL1Maker"] -# -# -------------------------------------------------------- -# ............ Algorithms Private Options -# -------------------------------------------------------- -# -# -# .................. sub-detector hit containers -# -# -LArTTL1Maker = Algorithm( "LArTTL1Maker" ) -LArTTL1Maker.SubDetectors = "LAr_All" -# LArTTL1Maker.SubDetectors = "LAr_EmBarrel" -# LArTTL1Maker.SubDetectors = "LAr_EmEndCap" -# LArTTL1Maker.SubDetectors = "LAr_Em" -# LArTTL1Maker.SubDetectors = "LAr_HEC" -# -# .................. set the TTL1 container name -# -LArTTL1Maker.EmTTL1ContainerName = "LArTTL1EM" -LArTTL1Maker.HadTTL1ContainerName = "LArTTL1HAD" -# -# ............ if true, noise added in all subdetectors (default = true) -# -#LArTTL1Maker.NoiseOnOff = FALSE diff --git a/LArCalorimeter/LArSim/CMakeLists.txt b/LArCalorimeter/LArSim/CMakeLists.txt deleted file mode 100644 index eb83225f98bcf974d0d5fef86559423bde6fd7f9..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration - -# Declare the package name: -atlas_subdir( LArSim ) - -# Component(s) in the package: -atlas_add_component( LArSim - src/*.cxx - src/components/*.cxx - LINK_LIBRARIES AthenaBaseComps GaudiKernel LArSimEvent CaloIdentifier StoreGateLib ) - -# Install files from the package: -atlas_install_joboptions( share/*.txt share/*.py ) diff --git a/LArCalorimeter/LArSim/LArSim/LArFakeClusterProducer.h b/LArCalorimeter/LArSim/LArSim/LArFakeClusterProducer.h deleted file mode 100755 index cf4816cd33a380a0a52abfec7d22307863282154..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/LArSim/LArFakeClusterProducer.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -/* Generated by Together */ - -#ifndef LARFAKECLUSTERPRODUCER_H -#define LARFAKECLUSTERPRODUCER_H -#include "LArSim/LArHitProducer.h" - -/* author : Johann Collot */ - -/* date of creation : 31/01/2001 */ -/* date of last modification : 13/09/2002 - create fake clusters in EMB */ - -/** - * Example of creation of LArHits through a LArHitProducer . <br><br> - * The only method which has to be implement is hitconstruction() .<br> - * @author Johann Collot - * @version 00-00-03 - * - */ -class LArFakeClusterProducer : public LArHitProducer { - -public: - - /** constructor */ - LArFakeClusterProducer(const std::string & name, ISvcLocator * pSvcLocator) ; - - /** destructor */ - virtual ~LArFakeClusterProducer() { } - - /** method in which the specific code <br> to produce the hits is placed */ - virtual StatusCode hitConstruction(); - -private: - - /** Total Energy of created Hits <br> - * This is a property of this algorithm <br> - * Default value : 100 GeV - */ - double m_Etot ; - - /** Number of generated Clusters in eta <br> - * Calculated from ClusterSpacing and EtaStart - */ - int m_NumberOfClusters ; - - /** number of cells in eta between 2 clusters <br> - * This is a property of this algorithm <br> - * Default value : 4 - */ - int m_ClusterSpacing ; - - /** Eta cell of first cluster <br> - * This is a property of this algorithm <br> - * Default value : 3 - */ - int m_EtaStart ; - - /** - * Sampling Fraction of EMB presampler <br> - * Property of this algorithm <br> - * Default value : 0.2 - */ - double m_SampFracEMBPS; - - /** - * Sampling Fraction of EMB first compartment <br> - * Property of this algorithm <br> - * Default value : 0.2 - */ - double m_SampFracEMB1; - - /** - * Sampling Fraction of EMB middle compartment <br> - * Property of this algorithm <br> - * Default value : 0.2 - */ - double m_SampFracEMB2; - - /** - * Sampling Fraction of EMB back compartment <br> - * Property of this algorithm <br> - * Default value : 0.2 - */ - double m_SampFracEMB3; -}; -#endif //LARFAKECLUSTERPRODUCER_H diff --git a/LArCalorimeter/LArSim/LArSim/LArFakeHitProducer.h b/LArCalorimeter/LArSim/LArSim/LArFakeHitProducer.h deleted file mode 100755 index 689745be856a4a184f95fc897e7959459f424f52..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/LArSim/LArFakeHitProducer.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -/* author : Hong Ma */ - -/* date of creation : Aug 17, 2003 */ - - -#ifndef LARFAKEHITPRODUCER_H -#define LARFAKEHITPRODUCER_H - -#include "LArSim/LArHitProducer.h" - -class LArFakeHitProducer : public LArHitProducer { - -public: - - /** usual ATHENA constructor of an algorithm*/ - LArFakeHitProducer(const std::string & name, ISvcLocator * pSvcLocator); - - /** Destructor */ - virtual ~LArFakeHitProducer() { } - - /** - * Method in which the hits are produced <br><br> This method must be redefined in the doughter <br> - * specializations of this class, to accommodate the <br> specific code - */ - virtual StatusCode hitConstruction(); - -private: - -}; -#endif //LARFAKEHITPRODUCER_H - - diff --git a/LArCalorimeter/LArSim/LArSim/LArHitMaker.h b/LArCalorimeter/LArSim/LArSim/LArHitMaker.h deleted file mode 100755 index 0f7e6b6fed1bd4d34780a17540c78fa180104672..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/LArSim/LArHitMaker.h +++ /dev/null @@ -1,119 +0,0 @@ -/* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -*/ - -/* Generated by Together */ - -/* author : Johann Collot */ - -/* date of creation : 30/01/2001 */ - -/* date of last modification : */ -/* 23/05/2001 : */ -/* 13/09/2002 : corrections of comments + include file moved to definition file */ - -#ifndef LARHITMAKER_H -#define LARHITMAKER_H - -#include <string> - -#include "AthenaBaseComps/AthLegacySequence.h" - -/** - * Specialized ATHENA algorithm which can be used to store <br> - * liquid argon hit collections in the Athena TES. <p> - * - * LArHitMaker owns a sub-algorithm ( LArHitProducer) , which creates <br> - * and subsequently fills a LArHitContainer. <p> - * - * The LArHit collections are produced by a LArHitProducer <br> - * are then stored in the Transient Event Store by LArHitMaker <br> - * using StoreGate . <p> - * @author Johann Collot - * @version 00-00-05 - * - */ -class LArHitMaker : public AthLegacySequence { - -public: - - /** Constructor */ - LArHitMaker(const std::string & name, ISvcLocator * pSvcLocator); - - /** Destructor */ - virtual ~LArHitMaker() { } - -public: - - /** Initialize method , executed once at the beginning <br> of the job execution by the control framework . <br> */ - virtual StatusCode initialize(); - - /** execute method executed for each event <br> by the control framework . <br> */ - virtual StatusCode execute(); - - /** finalize method executed at the end of <br> the job execution by the control framework . <br> */ - virtual StatusCode finalize(); - -private: - - - /** Instance Name and Type of the hit producer sub-algorithm. <br> This is a property of LArHitMaker <br><br> - * it is set by the Athena string property HitRetrieverNameAndType <br> - * default value = LArHitProducerTest/producer1 <br>*/ - std::string m_HitRetrieverNameAndType; - - /** - * Location in the TES where the hit collection, once retrieved or produced, will be stored .<br> - * This is a property of LArHitMaker <br><br> - * It is set by the Athena string property HitContainerLocation <br> - * default value = LArHits <br> - */ - std::string m_HitContainerLocation; - - /** - * Pointer to the sub-algorithm which produces the hits .<p> - * - * This sub-algorithm is a derived class of LArHitProducer <br> - * Example : LArHitProducerTest in LArSim <br> - * @clientCardinality 1 - * @supplierCardinality 1 - * @supplierRole hit retrieval/production - * @link aggregation - */ - Algorithm * m_HitRetrieverAlgorithm; - - /** - * debug Flag <br><br> - * Property of LArHitMaker <br> - * Avoids printout of the container content if set to 0 <br> - * It is set by the Athena integer proterty DebugFlag <br> - * default value = 0 ( no printout )<br> - */ - int m_DebugFlag; - - /** find Algorithm type in string property */ - std::string findType(std::string l_property); - - /** find instance name of Algorithm in string property */ - std::string findName(std::string l_property); - - /** - * @link dependency - * @clientRole stores in TDS - */ - - /*# LArHitContainer lnkLArHitContainer; */ - - /** - * @link aggregation - * @clientCardinality 1 - * @supplierCardinality 1 - * @supplierRole production/retrieval of hits - */ - - /*# LArHitProducer lnkLArHitProducer; */ -}; -#endif //LARHITMAKER_H - - - diff --git a/LArCalorimeter/LArSim/LArSim/LArHitProducer.h b/LArCalorimeter/LArSim/LArSim/LArHitProducer.h deleted file mode 100755 index 455880ed461130f91bb34e1e74d50f8afa37edaa..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/LArSim/LArHitProducer.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -/* Generated by Together */ - -/* author : Johann Collot */ - -/* date of creation : 31/01/2001 */ -/* modifications : */ -/* 10/06/2001 : */ -/* 13/09/2002 : corrections of comments */ -/* 04/10/2002 : corrections of comments */ - -#ifndef LARHITPRODUCER_H -#define LARHITPRODUCER_H - -#include <string> - -#include "AthenaBaseComps/AthAlgorithm.h" -#include "LArSimEvent/LArHitContainer.h" - -/** - * ATHENA specialized sub-algorithm which is used <br> - * to produce liquid argon hits (LArHits) . <br><br> - * In fact, a user has to write a doughter of this class <br> - * in which only the hitconstruction() method <br> - * needs to be implemented. <br><br> - * - * A LArHitContainer instance is built for each execution <br> - * of the execute() method. <br><br> - * - * Access to the new LArHitContainer is provided through hitcontainer() . <br><br> - * - * LArFakeClusterProducer in LArSim is an example of a user version of this class . <br> - * @author Johann Collot - * @version 01-00-00 , remove methods to create specialized hits - * - */ -class LArHitProducer : public AthAlgorithm { - -public: - - /** usual ATHENA constructor of an algorithm*/ - LArHitProducer(const std::string & name, ISvcLocator * pSvcLocator); - - /** Destructor */ - virtual ~LArHitProducer() { } - - /** Initialize method , executed once at the beginning <br> of the job execution by the control framework */ - virtual StatusCode initialize(); - - /** execute() method executed for each event <br> by the LArHitMaker instance which owns <br> this producer */ - virtual StatusCode execute(); - - /** finalize() method executed at the end <br> of the job execution by the control framework */ - virtual StatusCode finalize(); - - /** return a pointer to the LArHitContainer <br> in which the hits are produced */ - virtual LArHitContainer * hitContainer() const { return m_hitcontainer; } - - /** - * Method in which the hits are produced <br><br> This method must be redefined in the doughter <br> - * specializations of this class, to accommodate the <br> specific code - */ - virtual StatusCode hitConstruction() { return StatusCode::SUCCESS; } - - - - /** - * creates a new LArHit <br> - */ - virtual LArHit * newLArHit(Identifier l_cell, double l_energy, double l_time); - -private: - - /** LArHitContainer in which the produced hits will be stored - * @supplierCardinality 1 - * @clientCardinality 1 - * @clientRole creates */ - LArHitContainer * m_hitcontainer; - -}; -#endif //LARHITPRODUCER_H - - diff --git a/LArCalorimeter/LArSim/LArSim/LArHitReader.h b/LArCalorimeter/LArSim/LArSim/LArHitReader.h deleted file mode 100755 index 6f45a924ff2b2ce57ac74455d4d027583675ae29..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/LArSim/LArHitReader.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -*/ - -/* Generated by Together */ - -/* author : Johann Collot */ - -/* date of creation : 31/01/2001 */ -/* modifications : */ -/* 10/06/2001 : */ -/* 13/09/2002 : corrections of comments */ -/* 04/10/2002 : corrections of comments */ - -#ifndef LARHITREADER_H -#define LARHITREADER_H - -#include <string> - -#include "AthenaBaseComps/AthReentrantAlgorithm.h" -#include "LArSimEvent/LArHitContainer.h" -#include "StoreGate/ReadHandleKey.h" - -class LArHitReader : public AthReentrantAlgorithm { - -public: - using AthReentrantAlgorithm::AthReentrantAlgorithm; - /** Initialize method , executed once at the beginning <br> of the job execution by the control framework */ - virtual StatusCode initialize() override; - - /** execute() method executed for each event <br> by the LArHitMaker instance which owns <br> this producer */ - virtual StatusCode execute (const EventContext& ctx) const override; - -private: - SG::ReadHandleKey<LArHitContainer> m_hitKey - { this, "HitKey", "LArHitFake", "" }; - -}; -#endif //LARHITPRODUCER_H - - diff --git a/LArCalorimeter/LArSim/doc/README b/LArCalorimeter/LArSim/doc/README deleted file mode 100755 index f0a57a7de44f04742356d3881a67ccaa348d26f5..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/doc/README +++ /dev/null @@ -1,59 +0,0 @@ - -This package contains the infrastructure -(a Maker and a Producer classes) to create -and populate LArHits in the Transient Event -Store of ATHENA . - -The LAr Hit classes are defined in the package -LArSimEvent . - -A user willing to handle existing hits, -should make use of LArSimEvent/ILArHit as much as possible, -since this generic interface guaranties a better -insulation against the implementation details. - -A user who would like to create new hits -from an Athena algorithm in the -TDS , has only to write a specialized -LArHitProducer. - - -An example of how to write a specific -LArHitProducer is provided in LArFakeClusterProducer . -It creates fake clusters in the EM barrel . - - - -To execute an example program : - - - Create a new working CMT directory . - Read ``CMT in ATLAS'' if you are not familiar with CMT . - Use the TestRelease method to create a run time environment . - - - -To execute the example program: - - 1) in the file TestRelease/TestRelease-xx-yy-zz/cmt/requirements" add the lines : - - use Control Control-* - use Event Event-* - use Generators Generators-* - use LArCalorimeter-* - - 2) then , in the cmt directory under TestRelease/TestRelease-xx-yy-zz , execute : - - cmt config - source setup.sh - gmake - - 2) in directory "TestRelease/TestRelease-xx-yy-zz/run/" - - athena LArSim_test_jobOptions.txt - - - - Documentation fragment written by J. Collot on 15/10/2002 for release 4.4.0 - - diff --git a/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.py b/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.py deleted file mode 100755 index 692660054dd376d44574723104d213c0ec6f8142..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.py +++ /dev/null @@ -1,40 +0,0 @@ -############################################################### -# -# Job options file -# -# Creates LArHits corresponding to fake clusters in stores them -# in a separate container in StoreGate -# -#============================================================== -#-------------------------------------------------------------- -# Private Application Configuration options -#-------------------------------------------------------------- -theApp.Dlls += ["LArSim"] -theApp.TopAlg += ["LArHitMaker/hitmaker1"] -#-------------------------------------------------------------- -# Algorithms Private Options -#-------------------------------------------------------------- -# to communicate the Producer class name and instance name to hitmaker1 -hitmaker1 = Algorithm( "hitmaker1" ) -hitmaker1.HitRetrieverNameAndType = "LArFakeClusterProducer/producer1" -# to communicate the location in the TDS where the LArHitContainer will be stored -hitmaker1.HitContainerLocation = "LArFakeEMBHit" -# to switch on the Debug mode , in which the LArHitContainter content is fully printed out -hitmaker1.DebugFlag = 1 -# total energy in fake cluster -producer1 = Algorithm( "producer1" ) -producer1.Etot = 100. -# spacing between 2 clusters in eta ( in middle cell units ) -producer1.ClusterSpacing = 4 -# middle cell of first cluster -producer1.EtaStart = 2 -# Sampling fractions -producer1.SampFracEMBPS = 0.2 -producer1.SampFracEMB1 = 0.2 -producer1.SampFracEMB2 = 0.2 -producer1.SampFracEMB3 = 0.2 -#============================================================== -# -# End of job options file -# -############################################################### diff --git a/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.txt b/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.txt deleted file mode 100755 index a479eaa66b95b9889ef05b407ecb5fbffdd437c2..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_Fake_jobOptions.txt +++ /dev/null @@ -1,64 +0,0 @@ -//############################################################## -// -// Job options file -// -// Creates LArHits corresponding to fake clusters in stores them -// in a separate container in StoreGate -// -//============================================================== - - - -//-------------------------------------------------------------- -// Private Application Configuration options -//-------------------------------------------------------------- - -ApplicationMgr.Dlls += {"LArSim"} ; - - -ApplicationMgr.TopAlg += {"LArHitMaker/hitmaker1"} ; - - - - -//-------------------------------------------------------------- -// Algorithms Private Options -//-------------------------------------------------------------- -// to communicate the Producer class name and instance name to hitmaker1 - hitmaker1.HitRetrieverNameAndType = "LArFakeClusterProducer/producer1" ; - -// to communicate the location in the TDS where the LArHitContainer will be stored - hitmaker1.HitContainerLocation = "LArFakeEMBHit" ; - -// to switch on the Debug mode , in which the LArHitContainter content is fully printed out - hitmaker1.DebugFlag = 1 ; - -// total energy in fake cluster - producer1.Etot = 100. ; - -// spacing between 2 clusters in eta ( in middle cell units ) - producer1.ClusterSpacing = 4 ; - -// middle cell of first cluster - producer1.EtaStart = 2 ; - -// Sampling fractions - producer1.SampFracEMBPS = 0.2 ; - producer1.SampFracEMB1 = 0.2 ; - producer1.SampFracEMB2 = 0.2 ; - producer1.SampFracEMB3 = 0.2 ; - -//============================================================== -// -// End of job options file -// -//############################################################## - - - - - - - - - diff --git a/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.py b/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.py deleted file mode 100755 index 58d18ce969c98ef7ed3214c0d9f4308162c4aa83..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.py +++ /dev/null @@ -1,5 +0,0 @@ -# The jobOptions provides reading hits produced from simulation into memory -# Reading MC hits from Zebra (done by the converters): -#include( "LArHitZebraCnv/LArHitZebra_jobOptions.py" ) - -# End of JobOptions. diff --git a/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.txt b/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.txt deleted file mode 100755 index 6a2637dbb2ecb2793ff47cf1e35ce66f8493b456..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_MC_jobOptions.txt +++ /dev/null @@ -1,8 +0,0 @@ -// The jobOptions provides reading hits produced from simulation into memory - -// Reading MC hits from Zebra (done by the converters): - -#include "LArHitZebraCnv/LArHitZebra_jobOptions.txt" - - -// End of JobOptions. diff --git a/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.py b/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.py deleted file mode 100755 index 87ce1d22832addd7a6ede4709e13d1fd3670d811..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.py +++ /dev/null @@ -1,23 +0,0 @@ -############################################################### -# -# Job options file -# -# Provides a stand-alone test of LArHits -# -#============================================================== -theApp.setup( MONTECARLO ) - -include( "LArSim/LArSim_Fake_jobOptions.py" ) - -# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) -MessageSvc.OutputLevel = 2 -#-------------------------------------------------------------- -# Event related parameters -#-------------------------------------------------------------- -# Number of events to be processed (default is 10) -theApp.EvtMax = 50 -#============================================================== -# -# End of job options file -# -############################################################### diff --git a/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.txt b/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.txt deleted file mode 100755 index 46f3e7ccdad19fb36350d9a09aed4a7006ed47cb..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/share/LArSim_test_jobOptions.txt +++ /dev/null @@ -1,40 +0,0 @@ -//############################################################## -// -// Job options file -// -// Provides a stand-alone test of LArHits -// -//============================================================== - - -#include "AthenaCommon/Atlas_Gen.UnixStandardJob.txt" - -#include "LArSim/LArSim_Fake_jobOptions.txt" - -// Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) - -MessageSvc.OutputLevel = 2 ; - -//-------------------------------------------------------------- -// Event related parameters -//-------------------------------------------------------------- - -// Number of events to be processed (default is 10) - -ApplicationMgr.EvtMax = 50 ; - - -//============================================================== -// -// End of job options file -// -//############################################################## - - - - - - - - - diff --git a/LArCalorimeter/LArSim/src/LArFakeClusterProducer.cxx b/LArCalorimeter/LArSim/src/LArFakeClusterProducer.cxx deleted file mode 100755 index 2522697024d97a93844a417e1181b09c19faa172..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/LArFakeClusterProducer.cxx +++ /dev/null @@ -1,147 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -#include <string> - -#include "LArSim/LArFakeClusterProducer.h" - -#include "CaloIdentifier/CaloIdManager.h" -#include "CaloIdentifier/LArEM_ID.h" - -#include "StoreGate/StoreGateSvc.h" -#include "StoreGate/StoreGate.h" -#include "StoreGate/DataHandle.h" - -//******************************************************************************** - -// Constructor -LArFakeClusterProducer::LArFakeClusterProducer(const std::string& name, ISvcLocator* pSvcLocator ) : LArHitProducer(name, pSvcLocator) , - m_Etot(100.), - m_NumberOfClusters(12), - m_ClusterSpacing(4), - m_EtaStart(3), - m_SampFracEMBPS(0.2), - m_SampFracEMB1(0.2), - m_SampFracEMB2(0.2), - m_SampFracEMB3(0.2) -{ - // assignment of data members from property values - declareProperty("Etot", m_Etot); // total energy - declareProperty("ClusterSpacing",m_ClusterSpacing); // number of cells between 2 clusters in eta - declareProperty("EtaStart",m_EtaStart); // eta cell of first cluster - declareProperty("SampFracEMBPS", m_SampFracEMBPS ) ; // sampling fraction of EMB presampler - declareProperty("SampFracEMB1", m_SampFracEMB1 ) ; // sampling fraction of EMB first compartment - declareProperty("SampFracEMB2", m_SampFracEMB2 ) ; // sampling fraction of EMB middle compartment - declareProperty("SampFracEMB3", m_SampFracEMB3 ) ; // sampling fraction of EMB back compartment - m_NumberOfClusters = ( ( 54 - m_EtaStart ) / m_ClusterSpacing ) + 1 ; // Number of Clusters in eta -} - -//************************************************************************************ - -StatusCode LArFakeClusterProducer::hitConstruction(){ - - LArHit * hit ; // Use this Abstract Base Class as much as possible for handling hits - - const DataHandle<CaloIdManager> caloIdMgr; - ATH_CHECK( detStore()->retrieve(caloIdMgr) ); - - const LArEM_ID* id_generator=caloIdMgr->getEM_ID(); - - LArHitContainer * hit_container = this -> hitContainer() ; // get pointer to hit container - - Identifier ps_id ; // presampler ID - Identifier strip_id ; // EM strip ID - Identifier middle_id ; // EM middle ID - Identifier back_id ; // EM back ID - - double frontE = 0.05 * m_Etot * m_SampFracEMBPS; - double stripE = 0.20 * m_Etot * m_SampFracEMB1 ; - double middleE = 0.60 * m_Etot * m_SampFracEMB2 ; - double backE = 0.15 * m_Etot * m_SampFracEMB3 ; - - for( int i=0 ; i < m_NumberOfClusters ; i++ ) { - - int ieta = m_EtaStart + i * m_ClusterSpacing ; - - try{ - - for(int k=-1 ; k< 2 ; k++) { // EMB PS hits in 3 cells in eta - double profile = ( k == 0 ? 0.75 : 0.125 ) ; - ps_id = id_generator->channel_id( 1, 0 , 0 , ieta+k , 0 ) ; - hit = this->newLArHit(ps_id , frontE * profile , 0. ) ; - if( hit == 0 ){ - ATH_MSG_FATAL("Unable to create a new LArHit for cell : " << id_generator->show_to_string(ps_id) ); - return StatusCode::FAILURE; - } - hit_container->push_back( hit ) ; - } - - for(int k=-3 ; k < 4 ; k++) { // EMB PS hits in 3 cells in eta - double profile = 0 ; - switch ( k*k ) { - case 9 : - profile = 0.05 ; - break ; - case 4 : - profile = 0.075 ; - break ; - case 1 : - profile = .15 ; - break ; - case 0 : - profile = .45 ; - break ; - } - strip_id = id_generator->channel_id( 1, 1 , 0 , (ieta * 8 + 4)+k , 0 ) ; - hit = this->newLArHit(strip_id , stripE * profile , 0. ) ; - if( hit == 0 ){ // EMB front strips in 7 cells in eta - ATH_MSG_FATAL("Unable to create a new LArHit for cell : " << id_generator->show_to_string(strip_id) ); - return StatusCode::FAILURE; - } - hit_container->push_back( hit ) ; - } - - for(int k=-1 ; k< 2 ; k++) { // EMB middle layer 3 X 3 cluster - double profile = (k == 0 ? 0.8 : 0.1 ) ; - for(int p=0 ; p<3 ; p++) { - double profilep = ((p-1) == 0 ? 0.8 * profile : 0.1 * profile ) ; - middle_id = id_generator->channel_id( 1, 2 , 0 , ieta + k , p ) ; - hit = this->newLArHit(middle_id , middleE * profilep , 0. ) ; - if( hit == 0 ){ - ATH_MSG_FATAL("Unable to create a new LArHit for cell : " << id_generator->show_to_string(middle_id) ); - return StatusCode::FAILURE; - } - hit_container->push_back( hit ) ; - } - } - - - for(int k=0 ; k < 2 ; k++) { // EMB back layer - double profile = ( k== 0 ? 0.2 : 0.8 ) ; - for(int p=0 ; p<3 ; p++) { - double profilep = ((p-1) == 0 ? 0.8 * profile : 0.1 * profile ) ; - back_id = id_generator->channel_id( 1, 3 , 0 , (ieta / 2) + k , p ) ; - hit = this->newLArHit(back_id , backE * profilep , 0. ) ; - if( hit == 0 ){ - ATH_MSG_FATAL("Unable to create a new LArHit for cell : " << id_generator->show_to_string(back_id) ); - return StatusCode::FAILURE; - } - hit_container->push_back( hit ) ; - } - } - - - }catch(LArID_Exception & except) { - - ATH_MSG_FATAL("Unable to create a new Identifier " ); - ATH_MSG_FATAL( (std::string) except ); - return StatusCode::FAILURE ; - - } - - } - - return StatusCode::SUCCESS; - -} diff --git a/LArCalorimeter/LArSim/src/LArFakeHitProducer.cxx b/LArCalorimeter/LArSim/src/LArFakeHitProducer.cxx deleted file mode 100755 index b33f0e44bbc6f836213c378040c26a5f765d06b9..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/LArFakeHitProducer.cxx +++ /dev/null @@ -1,43 +0,0 @@ -/* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -*/ - -#include "LArSim/LArFakeHitProducer.h" - -#include "GaudiKernel/MsgStream.h" -#include "Gaudi/Property.h" -#include "GaudiKernel/IDataProviderSvc.h" - - -#include "LArSimEvent/LArHit.h" -#include "LArSimEvent/LArHitContainer.h" - - -// Constructor -LArFakeHitProducer::LArFakeHitProducer(const std::string& name, ISvcLocator* pSvcLocator ) : - LArHitProducer(name , pSvcLocator) -{ - -} -//Initialize method -StatusCode LArFakeHitProducer::hitConstruction(){ - - ATH_MSG_DEBUG("LArFakeHitProducer "<< this->name()<<"hitConstrution" ); - - LArHitContainer* cont = hitContainer(); - for (int i=1;i<100;++i) - { - Identifier id( (unsigned int)i ) ; - double t = i; - double e = i; - LArHit* h = new LArHit(id,e,t); - cont->push_back(h); - } - - ATH_MSG_DEBUG(" Filled the container, size = "<< cont->size() ); - - - ATH_CHECK( evtStore()->record(cont,"LArHitFake") ); - return StatusCode::SUCCESS; -} - diff --git a/LArCalorimeter/LArSim/src/LArHitMaker.cxx b/LArCalorimeter/LArSim/src/LArHitMaker.cxx deleted file mode 100755 index df0b3e3453974eeb48d46b4b322d906badb57f5b..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/LArHitMaker.cxx +++ /dev/null @@ -1,107 +0,0 @@ -/* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -*/ - -#include "LArSim/LArHitMaker.h" -#include "LArSim/LArHitProducer.h" - -#include "GaudiKernel/MsgStream.h" -#include "Gaudi/Property.h" - -#include "StoreGate/StoreGateSvc.h" - - -//******************************************************************************** - -// Constructor -LArHitMaker::LArHitMaker(const std::string& name, ISvcLocator* pSvcLocator ) : - AthLegacySequence(name , pSvcLocator), - m_HitRetrieverNameAndType("LArHitProducerTest/producer1"), - m_HitContainerLocation("LArHits"), - m_HitRetrieverAlgorithm(0) , - m_DebugFlag(0) -{ - // assignment of data members from property values - declareProperty("HitRetrieverNameAndType", m_HitRetrieverNameAndType); // Sub-Algo name - declareProperty("HitContainerLocation",m_HitContainerLocation); // Place where the hit collection will be stored in TDS - declareProperty("DebugFlag",m_DebugFlag); // to switch on( !=0 ) or off ( 0 ) the Debug Flag - // has an action on the container content printout -} - -//******************************************************************************** - -//Find type method - -std::string LArHitMaker::findType(std::string l_property){ - int slash_pos = l_property.find_first_of("/"); - std::string type = l_property.substr( 0, slash_pos ); - return type ; -} - -//********************************************************************************** - -//Find instance name - -std::string LArHitMaker::findName(std::string l_property){ - int slash_pos = l_property.find_first_of("/"); - std::string type = l_property.substr( 0, slash_pos ); - std::string name = (slash_pos > 0) ? l_property.substr( slash_pos + 1) : type ; - return name ; -} - -//*************************************************************************************** - -//Initialize method -StatusCode LArHitMaker::initialize(){ - // Get sub-algo Type and instance name - std::string type = findType(m_HitRetrieverNameAndType); - std::string name = findName(m_HitRetrieverNameAndType); - ATH_MSG_INFO("Sub-Algorithm type="<<type<<" and instance name="<<name); - ATH_MSG_INFO("location of stored hits="<<m_HitContainerLocation); - - // Instanciate LArHitProducer - ATH_CHECK( createSubAlgorithm(type, name, m_HitRetrieverAlgorithm) ); - return StatusCode::SUCCESS; -} - -//***************************************************************************************** - -//Execute method -StatusCode LArHitMaker::execute(){ - ATH_MSG_DEBUG(" Start executing execute() method of "<< m_HitRetrieverNameAndType ); - - ATH_CHECK( m_HitRetrieverAlgorithm -> execute(Gaudi::Hive::currentContext()) ); - - LArHitProducer * producer = dynamic_cast<LArHitProducer*> ( m_HitRetrieverAlgorithm ) ; - if(producer == NULL ) { - ATH_MSG_FATAL("LAr FAILURE : Impossible to down cast "<<m_HitRetrieverNameAndType<<" to LArHitProducer "); - return StatusCode::FAILURE ; - } - - LArHitContainer * hit_container = producer->hitContainer() ; - if( hit_container == 0 ) { - - ATH_MSG_FATAL("LAr FAILURE : Null pointer to LArHit Container "); - return StatusCode::FAILURE ; - - } - - ATH_MSG_DEBUG(" Storing LArHitContainer in TDS"); - ATH_CHECK( evtStore()->record(hit_container , m_HitContainerLocation ) ); - - //print contents of new LArHitContainer - - if( m_DebugFlag != 0 ) { - ATH_MSG_DEBUG ( ( (std::string) *hit_container ) ); - } - - return StatusCode::SUCCESS; -} - -//****************************************************************************************** - -//Finalize method -StatusCode LArHitMaker::finalize(){ - ATH_MSG_INFO("finalize() completed correctly"); - return StatusCode::SUCCESS; -} diff --git a/LArCalorimeter/LArSim/src/LArHitProducer.cxx b/LArCalorimeter/LArSim/src/LArHitProducer.cxx deleted file mode 100755 index ed6ba8a7a0cd5b0b5a66261162c343ed00afb8cd..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/LArHitProducer.cxx +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -#include "LArSim/LArHitProducer.h" - -#include "GaudiKernel/MsgStream.h" -#include "Gaudi/Property.h" -#include "GaudiKernel/IDataProviderSvc.h" - - -#include "LArSimEvent/LArHit.h" - - -// Constructor -LArHitProducer::LArHitProducer(const std::string& name, ISvcLocator* pSvcLocator ) : - AthAlgorithm(name , pSvcLocator), - m_hitcontainer(0) -{ - -} - - -//Initialize method -StatusCode LArHitProducer::initialize(){ - ATH_MSG_DEBUG("LArHitProducer "<< this->name()<<" initialized"); - return StatusCode::SUCCESS; -} - - -//Execute method -StatusCode LArHitProducer::execute(){ - // a new hit container for each event - // this container will be finally - // stored into the TDS by a LArHitMaker - // So no delete needed - - ATH_MSG_DEBUG("Creating a new LArHitContainer"); - m_hitcontainer = new LArHitContainer() ; - if( m_hitcontainer == 0 ) { - ATH_MSG_FATAL("FAILURE : Unable to create a new LArHitContainer "); - return StatusCode::FAILURE ; - } - - // construction of hits delegated to this method - // to be implemented in specialized classes - ATH_MSG_DEBUG("Start construction of hits " ); - return this->hitConstruction() ; -} - -//Finalize method -StatusCode LArHitProducer::finalize(){ - ATH_MSG_DEBUG("finalize() completed correctly"); - return StatusCode::SUCCESS; -} - - -//newLArHit method -LArHit * LArHitProducer::newLArHit(Identifier l_cell , double l_energy , double l_time) { - - LArHit * hit ; - - hit = new LArHit( l_cell , l_energy , l_time) ; - - return hit ; - -} diff --git a/LArCalorimeter/LArSim/src/LArHitReader.cxx b/LArCalorimeter/LArSim/src/LArHitReader.cxx deleted file mode 100755 index fa209e4c458e77a6797e2ec12c198543515a308d..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/LArHitReader.cxx +++ /dev/null @@ -1,30 +0,0 @@ -/* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -*/ - -#include "LArSim/LArHitReader.h" - -#include "Gaudi/Property.h" -#include "GaudiKernel/IDataProviderSvc.h" - -#include "LArSimEvent/LArHit.h" -#include "StoreGate/ReadHandle.h" - -//Initialize method -StatusCode LArHitReader::initialize(){ - ATH_CHECK( m_hitKey.initialize() ); - return StatusCode::SUCCESS ; -} - - -//Execute method -StatusCode LArHitReader::execute (const EventContext& ctx) const -{ - SG::ReadHandle<LArHitContainer> cont (m_hitKey, ctx); - - ATH_MSG_DEBUG(" LArHitContainer Dump ----------- " ); - ATH_MSG_DEBUG( (std::string)(*cont) ); - - return StatusCode::SUCCESS ; -} - diff --git a/LArCalorimeter/LArSim/src/components/LArSim_entries.cxx b/LArCalorimeter/LArSim/src/components/LArSim_entries.cxx deleted file mode 100644 index 5581d2393468d657cf80c7cc06a9026d70b7e7a3..0000000000000000000000000000000000000000 --- a/LArCalorimeter/LArSim/src/components/LArSim_entries.cxx +++ /dev/null @@ -1,10 +0,0 @@ -#include "LArSim/LArHitMaker.h" -#include "LArSim/LArFakeClusterProducer.h" -#include "LArSim/LArFakeHitProducer.h" -#include "LArSim/LArHitReader.h" - -DECLARE_COMPONENT( LArHitMaker ) -DECLARE_COMPONENT( LArHitReader ) -DECLARE_COMPONENT( LArFakeClusterProducer ) -DECLARE_COMPONENT( LArFakeHitProducer ) - diff --git a/Projects/Athena/package_filters.txt b/Projects/Athena/package_filters.txt index dd4978a56e770aa338c71f69a32825bff8def876..5a26e9a830f9e10eff6a784899885804deb217c6 100644 --- a/Projects/Athena/package_filters.txt +++ b/Projects/Athena/package_filters.txt @@ -60,5 +60,4 @@ - Control/PerformanceMonitoring/PerfMonVTune # Old packages that don't work with AthenaMT -- LArCalorimeter/LArSim - PhysicsAnalysis/HiggsPhys/HSG5/HSG5DPDUtils