ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellContainerSD.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ISF_FASTCALOSIMPARAMETRIZATION_CALOCELLCONTAINERSD_H
6#define ISF_FASTCALOSIMPARAMETRIZATION_CALOCELLCONTAINERSD_H
7
8/* Base class header */
9#include "G4VSensitiveDetector.hh"
10/* Athena WriteHandle include */
12/* Empty cell builder interface include */
14/* CaloCellContainer include */
16
17
18class G4TouchableHistory;
20
21class CaloCellContainerSD : public G4VSensitiveDetector
22{
23public:
24 CaloCellContainerSD(const std::string& name, const std::string& CaloCellContainerName, PublicToolHandle<ICaloCellMakerTool> FastHitConvertTool);
26
27 // Start of *ATHENA* event
28 void StartOfAthenaEvent(const EventContext& ctx);
29
30 // End of *ATHENA* event
31 void EndOfAthenaEvent(const EventContext& ctx);
32
33 // Needs to be implemented, but is not used for this SD
34 G4bool ProcessHits(G4Step*, G4TouchableHistory*) override final;
35
36 // Method to record the cells from a TFCSSimulationState
38
39protected:
40 // The empty cell builder tool to initialize an empty calo cell container
41 PublicToolHandle<ICaloCellMakerTool> m_EmptyCellBuilderTool;
42 // The write handle to the CaloCellContainer
44 // Fast hit converter - converts CaloCells into LAr and Tile Hits - takes into account sampling fractions
45 PublicToolHandle<ICaloCellMakerTool> m_FastHitConvertTool;
46
47
48};
49
50#endif // ISF_FASTCALOSIMPARAMETRIZATION_CALOCELLCONTAINERSD_H
Handle class for recording to StoreGate.
void StartOfAthenaEvent(const EventContext &ctx)
void EndOfAthenaEvent(const EventContext &ctx)
PublicToolHandle< ICaloCellMakerTool > m_FastHitConvertTool
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override final
void recordCells(TFCSSimulationState &)
PublicToolHandle< ICaloCellMakerTool > m_EmptyCellBuilderTool
SG::WriteHandle< CaloCellContainer > m_caloCellContainer
CaloCellContainerSD(const std::string &name, const std::string &CaloCellContainerName, PublicToolHandle< ICaloCellMakerTool > FastHitConvertTool)
This is for the Doxygen-Documentation.