ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4H6SD
src
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
8
#include "
LArG4Code/LArG4SDTool.h
"
9
#include <string>
10
#include <vector>
11
12
#include "
StoreGate/WriteHandle.h
"
13
#include "
LArSimEvent/LArHitContainer.h
"
14
#include "
LArG4Code/ILArCalculatorSvc.h
"
15
16
class
LArG4SimpleSD
;
17
21
class
LArG4H62004HECSDTool
:
public
LArG4SDTool
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
40
SG
::WriteHandle<
LArHitContainer
>
m_HitColl
;
41
ServiceHandle
<
ILArCalculatorSvc
>
m_calculator
{
this
,
"Calculator"
,
"LArH62004HECLocalCalculator"
};
42
LArG4SimpleSD
*
m_wheelSD
{
nullptr
};
43
};
44
45
#endif
ILArCalculatorSvc.h
LArG4SDTool.h
LArHitContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
ILArCalculatorSvc
Definition
ILArCalculatorSvc.h:25
LArG4H62004HECSDTool::~LArG4H62004HECSDTool
virtual ~LArG4H62004HECSDTool()=default
LArG4H62004HECSDTool::Gather
StatusCode Gather() override final
End of an athena event.
LArG4H62004HECSDTool::m_wheelSD
LArG4SimpleSD * m_wheelSD
Definition
LArG4H62004HECSDTool.h:42
LArG4H62004HECSDTool::initializeSD
StatusCode initializeSD() override final
LArG4H62004HECSDTool::m_HitColl
SG::WriteHandle< LArHitContainer > m_HitColl
Definition
LArG4H62004HECSDTool.h:40
LArG4H62004HECSDTool::LArG4H62004HECSDTool
LArG4H62004HECSDTool(const std::string &type, const std::string &name, const IInterface *parent)
LArG4H62004HECSDTool::m_calculator
ServiceHandle< ILArCalculatorSvc > m_calculator
Definition
LArG4H62004HECSDTool.h:41
LArG4H62004HECSDTool::initializeCalculators
virtual StatusCode initializeCalculators() override final
LArG4SDTool::LArG4SDTool
LArG4SDTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
LArG4SimpleSD
Common sensitive detector class for LAr systems.
Definition
LArG4SimpleSD.h:36
LArHitContainer
Hit collection.
Definition
LArHitContainer.h:26
ServiceHandle
Definition
ClusterMakerTool.h:36
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
type
private
#define private
Definition
xAODTruthCnvAlg.h:20
Generated on
for ATLAS Offline Software by
1.14.0