 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 const EventContext& ctx = Gaudi::Hive::currentContext();
21 ATH_MSG_ERROR (
"BeginOfAthenaEvent: FastSimModel was never created!");
22 return StatusCode::FAILURE;
26 if(!localFastSimModel){
27 ATH_MSG_ERROR (
"BeginOfAthenaEvent: Failed to cast m_FastSimModel into G4VFastSimulationModel.");
28 return StatusCode::FAILURE;
33 return StatusCode::SUCCESS;
39 const EventContext& ctx = Gaudi::Hive::currentContext();
42 ATH_MSG_ERROR (
"EndOfAthenaEvent: FastSimModel was never created!");
43 return StatusCode::FAILURE;
47 if(!localFastSimModel){
48 ATH_MSG_ERROR (
"EndOfAthenaEvent: Failed to cast m_FastSimModel into G4VFastSimulationModel.");
49 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
63 return new FastCaloSim(
name(),
getRegion(),
m_rndmGenSvc,
m_randomEngineName,
m_FastCaloSimCaloTransportation,
m_FastCaloSimCaloExtrapolation,
m_G4CaloTransportTool,
m_PunchThroughSimWrapper,
m_FastCaloSimSvc,
m_CaloCellContainerSDName,
m_doG4Transport,
m_doPunchThrough,
this);
void StartOfAthenaEvent(const EventContext &ctx)
::StatusCode StatusCode
StatusCode definition for legacy code.
void EndOfAthenaEvent(const EventContext &ctx)
G4VFastSimulationModel * getFastSimModel()
Retrieve the current Fast Simulation Model.
G4Region * getRegion() const