ATLAS Offline Software
Loading...
Searching...
No Matches
TileGeoG4SDTool.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//************************************************************
6//
7// Class TileGeoG4SDTool
8// AthTool class for holding the Tile sensitive detector
9//
10//************************************************************
11
12#ifndef TILEGEOG4SD_TILEGEOG4SDTOOL_H
13#define TILEGEOG4SD_TILEGEOG4SDTOOL_H
14
15// Base class header
17
19
20// STL headers
21#include <string>
22
23class G4VSensitiveDetector;
24
26{
27public:
29 TileGeoG4SDTool (const std::string& type, const std::string& name, const IInterface *parent);
31
33 virtual StatusCode initialize() override final;
34
35 virtual StatusCode SetupEvent(HitCollectionMap&) override final;
36
38 virtual StatusCode Gather(HitCollectionMap&) override final;
39
42 G4VSensitiveDetector* makeSD() const override final;
43
46 ServiceHandle<ITileCalculator> m_tileCalculator{this, "TileCalculator", "TileGeoG4SDCalc"};
47
48};
49
50#endif
#define protected
Small wrapper around hit collection map to facilitate accessing the hit collection.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual StatusCode Gather(HitCollectionMap &) override final
End of an athena event.
G4VSensitiveDetector * makeSD() const override final
Make me an SD!
ServiceHandle< ITileCalculator > m_tileCalculator
Calculator Service.
virtual StatusCode SetupEvent(HitCollectionMap &) override final
TileGeoG4SDTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual StatusCode initialize() override final
Default destructor is just fine.
#define private