![]() |
ATLAS Offline Software
|
A base class for tools that manage LArG4CalibSDs. More...
#include <CalibSDTool.h>
Public Member Functions | |
| CalibSDTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor. | |
| StatusCode | initialize () override final |
| Initialize the tool. | |
| StatusCode | initializeSD () override final |
| Create and register all SDs for the current thread. | |
| StatusCode | SetupEvent (HitCollectionMap &) override final |
| Create event-owned hit collections. | |
| StatusCode | Gather (HitCollectionMap &) override final |
| Finalize and record event-owned hit collections. | |
Protected Member Functions | |
| virtual StatusCode | initializeCalculators () |
| Initialize Calculator Services. | |
| LArG4CalibSD * | makeOneSD (const std::string &name, ILArCalibCalculatorSvc *calc, const std::vector< std::string > &volumes) const |
| Helper method to create one SD. | |
| virtual std::string | hitCollectionName () const |
| virtual std::string | deadHitCollectionName () const |
| virtual std::string | srHitCollectionName () const |
| StatusCode | assignSD (std::unique_ptr< G4VSensitiveDetector > sd, const std::vector< std::string > &volumes) const |
| Assign SD to a list of volumes. | |
| void | SetSensitiveDetector (G4LogicalVolume *, G4VSensitiveDetector *) const |
| Method stolen from G4VUserDetectorConstruction in G4 10.2. | |
Protected Attributes | |
| Gaudi::Property< std::vector< std::string > > | m_volumeNames {this, "LogicalVolumeNames", {}} |
| All the volumes to which this SD is assigned. | |
| Gaudi::Property< std::vector< std::string > > | m_outputCollectionNames {this, "OutputCollectionNames", {}} |
| Names of all output collections written out by this SD. | |
| Gaudi::Property< bool > | m_noVolumes {this, "NoVolumes", false} |
| This SensitiveDetector has no volumes associated with it. | |
configuration properties | |
| Gaudi::Property< G4bool > | m_doPID {this, "ParticleID", false} |
| Are we set up to run with PID hits? | |
Calo identifier helpers | |
| const LArEM_ID * | m_larEmID {nullptr} |
| const LArFCAL_ID * | m_larFcalID {nullptr} |
| const LArHEC_ID * | m_larHecID {nullptr} |
| const CaloDM_ID * | m_caloDmID {nullptr} |
| const AtlasDetectorID * | m_id_helper {nullptr} |
Static Private Member Functions | |
| static bool | matchStrings (const char *first, const char *second) |
| Match two strings with wildcard support. | |
A base class for tools that manage LArG4CalibSDs.
The tool owns only the Athena-event lifecycle of the output collections. Geant4 SD instances write through calibration builder containers, which carry per-event merge state and preserve per-SD hit partitions.
Definition at line 47 of file CalibSDTool.h.
| LArG4::CalibSDTool::CalibSDTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor.
|
protectedinherited |
Assign SD to a list of volumes.
This method supports wild card matching
Definition at line 55 of file SensitiveDetectorBase.cxx.
|
protectedvirtual |
Reimplemented in LArG4::ActiveSDTool, and LArG4::InactiveSDTool.
|
finaloverridevirtual |
Finalize and record event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
protectedvirtual |
Reimplemented in LArG4::ActiveSDTool, LArG4::DeadSDTool, and LArG4::InactiveSDTool.
|
finaloverride |
Initialize the tool.
|
inlineprotectedvirtual |
Initialize Calculator Services.
Reimplemented in LArG4::ActiveSDTool, LArG4::DeadSDTool, and LArG4::InactiveSDTool.
Definition at line 71 of file CalibSDTool.h.
|
finaloverride |
Create and register all SDs for the current thread.
|
protected |
Helper method to create one SD.
|
staticprivateinherited |
Match two strings with wildcard support.
Compares two strings character by character with optional * wildcard in the first argument
Definition at line 115 of file SensitiveDetectorBase.cxx.
|
protectedinherited |
Method stolen from G4VUserDetectorConstruction in G4 10.2.
Definition at line 142 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtual |
Create event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
protectedvirtual |
Reimplemented in LArG4::ActiveSDTool.
Definition at line 97 of file CalibSDTool.h.
|
protected |
Are we set up to run with PID hits?
Definition at line 88 of file CalibSDTool.h.
|
protected |
Definition at line 98 of file CalibSDTool.h.
Definition at line 94 of file CalibSDTool.h.
|
protected |
Definition at line 95 of file CalibSDTool.h.
Definition at line 96 of file CalibSDTool.h.
|
protectedinherited |
This SensitiveDetector has no volumes associated with it.
Definition at line 83 of file SensitiveDetectorBase.h.
|
protectedinherited |
Names of all output collections written out by this SD.
Definition at line 80 of file SensitiveDetectorBase.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 78 of file SensitiveDetectorBase.h.