ATLAS Offline Software
Loading...
Searching...
No Matches
LArG4H62004HECSDTool.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 LARG4H62004HECSDTOOL_H
6#define LARG4H62004HECSDTOOL_H
7
9#include <string>
10#include <vector>
11
15
16class LArG4SimpleSD;
17
22{
23 public:
24 // Constructor
25 LArG4H62004HECSDTool(const std::string& type, const std::string& name, const IInterface *parent);
26
27 // Destructor
28 virtual ~LArG4H62004HECSDTool() = default;
29
30 virtual StatusCode initializeCalculators() override final;
31
32 // Method in which all the SDs are created and assigned to the relevant volumes
33 StatusCode initializeSD() override final;
34
35 // Calls down to all the SDs to get them to pack their hits into a central collection
36 StatusCode Gather() override final;
37
38 private:
39 // The actual hit container - here because the base class is for both calib and standard SD tools
41 ServiceHandle<ILArCalculatorSvc> m_calculator{this, "Calculator", "LArH62004HECLocalCalculator"};
43};
44
45#endif
Handle class for recording to StoreGate.
virtual ~LArG4H62004HECSDTool()=default
StatusCode Gather() override final
End of an athena event.
StatusCode initializeSD() override final
SG::WriteHandle< LArHitContainer > m_HitColl
LArG4H62004HECSDTool(const std::string &type, const std::string &name, const IInterface *parent)
ServiceHandle< ILArCalculatorSvc > m_calculator
virtual StatusCode initializeCalculators() override final
LArG4SDTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Common sensitive detector class for LAr systems.
Hit collection.
Forward declaration.
#define private