ATLAS Offline Software
Loading...
Searching...
No Matches
ISensitiveDetectorMasterTool Class Referenceabstract

Abstract interface to service for Geant4 sensitive detector classes. More...

#include "G4AtlasInterfaces/ISensitiveDetectorMasterTool.h"

Inheritance diagram for ISensitiveDetectorMasterTool:
Collaboration diagram for ISensitiveDetectorMasterTool:

Public Member Functions

 ISensitiveDetectorMasterTool ()
virtual ~ISensitiveDetectorMasterTool ()
 DeclareInterfaceID (ISensitiveDetectorMasterTool, 1, 0)
 Creates the InterfaceID and interfaceID() method.
virtual StatusCode initializeSDs ()=0
 Method for initializing the SDs of each tool.
virtual StatusCode BeginOfAthenaEvent (HitCollectionMap &)=0
 Begin of athena event method.
virtual StatusCode EndOfAthenaEvent (HitCollectionMap &)=0
 End of athena event method.

Detailed Description

Abstract interface to service for Geant4 sensitive detector classes.

Author
Zach Marshall
Date
2014-12-20

Definition at line 21 of file ISensitiveDetectorMasterTool.h.

Constructor & Destructor Documentation

◆ ISensitiveDetectorMasterTool()

ISensitiveDetectorMasterTool::ISensitiveDetectorMasterTool ( )
inline

Definition at line 24 of file ISensitiveDetectorMasterTool.h.

24{}

◆ ~ISensitiveDetectorMasterTool()

virtual ISensitiveDetectorMasterTool::~ISensitiveDetectorMasterTool ( )
inlinevirtual

Definition at line 26 of file ISensitiveDetectorMasterTool.h.

26{}

Member Function Documentation

◆ BeginOfAthenaEvent()

virtual StatusCode ISensitiveDetectorMasterTool::BeginOfAthenaEvent ( HitCollectionMap & )
pure virtual

Begin of athena event method.

This should get called once per athena event by the framework, somewhere. Eventually it may be done via a Gaudi function. This ensures a simple call when we have multiple G4 events per athena event. The function calls the SetupEvent() method for all the SD handles that it owns.

◆ DeclareInterfaceID()

ISensitiveDetectorMasterTool::DeclareInterfaceID ( ISensitiveDetectorMasterTool ,
1 ,
0  )

Creates the InterfaceID and interfaceID() method.

◆ EndOfAthenaEvent()

virtual StatusCode ISensitiveDetectorMasterTool::EndOfAthenaEvent ( HitCollectionMap & )
pure virtual

End of athena event method.

This should get called once per athena event by the framework, somewhere. Eventually it may be done via a Gaudi function. This ensures a simple call when we have multiple G4 events per athena event. The function calls the Gather() method for all the SD handles that it owns.

◆ initializeSDs()

virtual StatusCode ISensitiveDetectorMasterTool::initializeSDs ( )
pure virtual

Method for initializing the SDs of each tool.

Not done in the athena-level initialize() function, as this may need to happen once per thread in a multi-threaded environment.


The documentation for this class was generated from the following file: