ATLAS Offline Software
LArG4H62004EMECSDTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARG4H62004EMECSDTOOL_H
6 #define LARG4H62004EMECSDTOOL_H
7 
10 
11 #include <string>
12 #include <vector>
13 
14 #include "StoreGate/WriteHandle.h"
16 
17 class LArG4SimpleSD;
18 
23 {
24 public:
25  // Constructor
26  LArG4H62004EMECSDTool(const std::string& type, const std::string& name, const IInterface *parent);
27 
28  // Destructor
29  virtual ~LArG4H62004EMECSDTool() = default;
30 
31  // Method in which all the SDs are created and assigned to the relevant volumes
33 
34  // Calls down to all the SDs to get them to pack their hits into a central collection
35  StatusCode Gather() override final;
36 
39  // StatusCode SetupEvent() override final;
40 
41 private:
43 
44  // The actual hit container - here because the base class is for both calib and standard SD tools
45  SG::WriteHandle<LArHitContainer> m_HitColl;
46  ServiceHandle<ILArCalculatorSvc> m_calculator{this, "Calculator", "EMECPosInnerWheel_ECOR_GADJCalculator"};
48 };
49 
50 #endif
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
LArG4H62004EMECSDTool
DEPRECATED AND WILL BE REMOVED.
Definition: LArG4H62004EMECSDTool.h:23
LArG4H62004EMECSDTool::initializeCalculators
StatusCode initializeCalculators() override final
Beginning of an athena event.
LArG4SimpleSD
Common sensitive detector class for LAr systems.
Definition: LArG4SimpleSD.h:36
LArHitContainer
Hit collection.
Definition: LArHitContainer.h:26
LArG4SDTool
A base class for tools that manage LAr SDs.
Definition: LArG4SDTool.h:35
LArG4H62004EMECSDTool::LArG4H62004EMECSDTool
LArG4H62004EMECSDTool(const std::string &type, const std::string &name, const IInterface *parent)
LArG4H62004EMECSDTool::m_HitColl
SG::WriteHandle< LArHitContainer > m_HitColl
Definition: LArG4H62004EMECSDTool.h:45
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
LArG4H62004EMECSDTool::initializeSD
StatusCode initializeSD() override final
WriteHandle.h
Handle class for recording to StoreGate.
LArG4H62004EMECSDTool::~LArG4H62004EMECSDTool
virtual ~LArG4H62004EMECSDTool()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArG4H62004EMECSDTool::m_emecSD
LArG4SimpleSD * m_emecSD
Definition: LArG4H62004EMECSDTool.h:47
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ILArCalculatorSvc
Definition: ILArCalculatorSvc.h:25
columnar::final
CM final
Definition: ColumnAccessor.h:106
LArG4H62004EMECSDTool::m_calculator
ServiceHandle< ILArCalculatorSvc > m_calculator
Definition: LArG4H62004EMECSDTool.h:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
LArG4H62004EMECSDTool::Gather
StatusCode Gather() override final
End of an athena event.
ILArCalculatorSvc.h
LArHitContainer.h
private
#define private
Definition: xAODTruthCnvAlg.h:20
LArG4SDTool.h
ServiceHandle
Definition: ClusterMakerTool.h:37