18 : G4VSensitiveDetector( name ),
24 G4Exception(
"CaloCellContainerSD",
"FailedEmptyCellBuilderToolRetrieval", FatalException,
"CaloCellContainerSD: Failed to retrieve the empty cell builder tool.");
36 G4Exception(
"CaloCellContainerSD",
"FailedEmptyCellBuilderToolProcess", FatalException,
"CaloCellContainerSD: Failed to process calo cell container with the empty cell builder tool.");
50 G4Exception(
"CaloCellContainerSD",
"FailedFastHitConvertToolProcess", FatalException,
"CaloCellContainerSD: Failed to process calo cell container with the fast hit convert tool.");
59 G4Exception(
"CaloCellContainerSD",
"UndefinedProcessHitsCall", FatalException,
"CaloCellContainerSD: Call to undefined ProcessHits.");
68 for(
const auto& icell : simState.
cells()) {
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)
Data object for each calorimeter readout cell.
void addEnergy(float energy)
add energy
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts