ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4H6SD
src
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
8
#include "
LArG4Code/LArG4SDTool.h
"
9
#include "
LArG4Code/ILArCalculatorSvc.h
"
10
11
#include <string>
12
#include <vector>
13
14
#include "
StoreGate/WriteHandle.h
"
15
#include "
LArSimEvent/LArHitContainer.h
"
16
17
class
LArG4SimpleSD
;
18
22
class
LArG4H62004EMECSDTool
:
public
LArG4SDTool
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
32
StatusCode
initializeSD
() override final;
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
:
42
StatusCode
initializeCalculators
() override final;
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"
};
47
LArG4SimpleSD
*
m_emecSD
{
nullptr
};
48
};
49
50
#endif
ILArCalculatorSvc.h
LArG4SDTool.h
LArHitContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
ILArCalculatorSvc
Definition
ILArCalculatorSvc.h:25
LArG4H62004EMECSDTool::LArG4H62004EMECSDTool
LArG4H62004EMECSDTool(const std::string &type, const std::string &name, const IInterface *parent)
LArG4H62004EMECSDTool::m_emecSD
LArG4SimpleSD * m_emecSD
Definition
LArG4H62004EMECSDTool.h:47
LArG4H62004EMECSDTool::Gather
StatusCode Gather() override final
End of an athena event.
LArG4H62004EMECSDTool::initializeCalculators
StatusCode initializeCalculators() override final
Beginning of an athena event.
LArG4H62004EMECSDTool::initializeSD
StatusCode initializeSD() override final
LArG4H62004EMECSDTool::~LArG4H62004EMECSDTool
virtual ~LArG4H62004EMECSDTool()=default
LArG4H62004EMECSDTool::m_HitColl
SG::WriteHandle< LArHitContainer > m_HitColl
Definition
LArG4H62004EMECSDTool.h:45
LArG4H62004EMECSDTool::m_calculator
ServiceHandle< ILArCalculatorSvc > m_calculator
Definition
LArG4H62004EMECSDTool.h:46
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