ATLAS Offline Software
|
#include <ZDC_G4CalibSDTool.h>
Public Member Functions | |
ZDC_G4CalibSDTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~ZDC_G4CalibSDTool () |
StatusCode | Gather () override final |
End of an athena event. More... | |
StatusCode | initializeSD () override |
Setup an SD in the current thread. More... | |
virtual StatusCode | SetupEvent () override |
Beginning of an athena event. More... | |
Protected Member Functions | |
G4VSensitiveDetector * | makeSD () const override final |
StatusCode | assignSD (G4VSensitiveDetector *sd, const std::vector< std::string > &volumes) const |
Assign SD to a list of volumes. More... | |
G4VSensitiveDetector * | getSD () |
Retrieve the current SD. More... | |
void | SetSensitiveDetector (G4LogicalVolume *, G4VSensitiveDetector *) const |
Method stolen from G4VUserDetectorConstruction in G4 10.2. More... | |
Protected Attributes | |
Gaudi::Property< std::vector< std::string > > | m_volumeNames {this, "LogicalVolumeNames", {}} |
All the volumes to which this SD is assigned. More... | |
Gaudi::Property< std::vector< std::string > > | m_outputCollectionNames {this, "OutputCollectionNames", {}} |
Names of all output collections written out by this SD. More... | |
Gaudi::Property< bool > | m_noVolumes {this, "NoVolumes", false} |
This SensitiveDetector has no volumes associated with it. More... | |
Private Member Functions | |
void | setSD (G4VSensitiveDetector *) |
Set the current SD. More... | |
Static Private Member Functions | |
static bool | matchStrings (const char *first, const char *second) |
Match two strings with wildcard support. More... | |
Private Attributes | |
bool | m_deadSD |
bool | m_doPid |
G4VSensitiveDetector * | m_SD {} |
The sensitive detector to which this thing corresponds. More... | |
Definition at line 19 of file ZDC_G4CalibSDTool.h.
ZDC_G4CalibSDTool::ZDC_G4CalibSDTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 10 of file ZDC_G4CalibSDTool.cxx.
|
inlinevirtual |
Definition at line 25 of file ZDC_G4CalibSDTool.h.
|
protectedinherited |
Assign SD to a list of volumes.
This method supports wild card matching
Definition at line 69 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtual |
End of an athena event.
Store the output collection in SG at this point. If we are using a WriteHandle, then this can be empty!
Reimplemented from SensitiveDetectorBase.
Definition at line 19 of file ZDC_G4CalibSDTool.cxx.
|
protectedinherited |
Retrieve the current SD.
In AthenaMT, this means the thread-local SD. Otherwise, it is simply the single SD.
Definition at line 123 of file SensitiveDetectorBase.cxx.
|
overrideinherited |
Setup an SD in the current thread.
Separate from the AthAlgTool initialize() method because it needs to be called once per worker thread in AthenaMT. Don't confuse this with the G4 SD method Initialize which is called at the beginning of every G4 event.
Definition at line 30 of file SensitiveDetectorBase.cxx.
|
finaloverrideprotected |
Definition at line 42 of file ZDC_G4CalibSDTool.cxx.
|
staticprivateinherited |
Match two strings with wildcard support.
Compares two strings character by character with optional * wildcard in the first argument
Definition at line 150 of file SensitiveDetectorBase.cxx.
|
privateinherited |
Set the current SD.
In hive, this gets assigned as the thread-local SD.
Definition at line 137 of file SensitiveDetectorBase.cxx.
|
protectedinherited |
Method stolen from G4VUserDetectorConstruction in G4 10.2.
Definition at line 177 of file SensitiveDetectorBase.cxx.
|
inlineoverridevirtualinherited |
Beginning of an athena event.
This is where collection initialization should happen. If we are using a WriteHandle, then this could be empty.
Reimplemented in MuonWallSDTool, AFP_SensitiveDetectorTool, AFP_SiDSensitiveDetectorTool, AFP_TDSensitiveDetectorTool, CaloCellContainerSDTool, and ALFA_SensitiveDetectorTool.
Definition at line 62 of file SensitiveDetectorBase.h.
|
private |
Definition at line 34 of file ZDC_G4CalibSDTool.h.
|
private |
Definition at line 35 of file ZDC_G4CalibSDTool.h.
|
protectedinherited |
This SensitiveDetector has no volumes associated with it.
Definition at line 87 of file SensitiveDetectorBase.h.
|
protectedinherited |
Names of all output collections written out by this SD.
Definition at line 84 of file SensitiveDetectorBase.h.
|
privateinherited |
The sensitive detector to which this thing corresponds.
Definition at line 111 of file SensitiveDetectorBase.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 82 of file SensitiveDetectorBase.h.