![]() |
ATLAS Offline Software
|
#include <DeadSDTool.h>
Public Member Functions | |
| DeadSDTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| 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. | |
| virtual StatusCode | SetupEvent () override |
| Beginning of an athena event. | |
| StatusCode | Gather (HitCollectionMap &) override final |
| Finalize and record event-owned hit collections. | |
| virtual StatusCode | Gather () override |
| End of an athena event. | |
Protected Member Functions | |
| LArG4CalibSD * | makeOneSD (const std::string &name, ILArCalibCalculatorSvc *calc, const std::vector< std::string > &volumes) const |
| Helper method to create one SD. | |
| 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. | |
| G4VSensitiveDetector * | getSD () |
| Retrieve the current SD. | |
| 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} |
Private Member Functions | |
| StatusCode | initializeCalculators () override final |
| Initialize Calculator Services. | |
| std::string | hitCollectionName () const override final |
| G4VSensitiveDetector * | makeSD () const override final |
| Create the SDs for current worker thread. | |
| void | setSD (G4VSensitiveDetector *) |
| Set the current SD. | |
Static Private Member Functions | |
| static bool | matchStrings (const char *first, const char *second) |
| Match two strings with wildcard support. | |
Private Attributes | |
| Gaudi::Property< std::string > | m_hitCollName {this, "HitCollectionName", "LArCalibrationHitDeadMaterial"} |
| Hit collection name. | |
| Gaudi::Property< bool > | m_do_eep {this, "doEscapedEnergy", false} |
| Do we add the escaped energy processing? | |
| Gaudi::Property< std::vector< std::string > > | m_barCryVolumes {this, "BarrelCryVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_barCryLArVolumes {this, "BarrelCryLArVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_barCryMixVolumes {this, "BarrelCryMixVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_DMVolumes {this, "DeadMaterialVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_barPresVolumes {this, "BarrelPresVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_barVolumes {this, "BarrelVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_ECCryVolumes {this, "ECCryVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_ECCryLArVolumes {this, "ECCryLArVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_ECCryMixVolumes {this, "ECCryMixVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_ECSupportVolumes {this, "ECSupportVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_HECWheelVolumes {this, "HECWheelVolumes"} |
| ServiceHandle< ILArCalibCalculatorSvc > | m_embccalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_embclarcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_mixcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_dmcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_embpscalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_embcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emeccalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emecclarcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_ememixcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emesupcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_heccalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_defcalc |
| G4VSensitiveDetector * | m_SD {} |
| The sensitive detector to which this thing corresponds. | |
Definition at line 18 of file DeadSDTool.h.
| LArG4::DeadSDTool::DeadSDTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
|
protectedinherited |
Assign SD to a list of volumes.
This method supports wild card matching
Definition at line 64 of file SensitiveDetectorBase.cxx.
|
protectedvirtualinherited |
Reimplemented in LArG4::ActiveSDTool, and LArG4::InactiveSDTool.
|
finaloverridevirtualinherited |
Finalize and record event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
inlineoverridevirtualinherited |
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 in AFP_SensitiveDetectorTool, AFP_SiDSensitiveDetectorTool, AFP_TDSensitiveDetectorTool, ALFA_SensitiveDetectorTool, FCS_Param::FCS_StepInfoSDTool, ZDC_FiberSDTool, and ZDC_G4CalibSDTool.
Definition at line 78 of file SensitiveDetectorBase.h.
|
protectedinherited |
Retrieve the current SD.
In AthenaMT, this means the thread-local SD. Otherwise, it is simply the single SD.
Definition at line 122 of file SensitiveDetectorBase.cxx.
|
finaloverrideprivatevirtual |
Reimplemented from LArG4::CalibSDTool.
|
finaloverrideinherited |
Initialize the tool.
|
finaloverrideprivatevirtual |
Initialize Calculator Services.
Reimplemented from LArG4::CalibSDTool.
|
finaloverrideinherited |
Create and register all SDs for the current thread.
|
protectedinherited |
Helper method to create one SD.
|
finaloverrideprivate |
Create the SDs for current worker thread.
|
staticprivateinherited |
Match two strings with wildcard support.
Compares two strings character by character with optional * wildcard in the first argument
Definition at line 149 of file SensitiveDetectorBase.cxx.
|
privateinherited |
Set the current SD.
In hive, this gets assigned as the thread-local SD.
Definition at line 136 of file SensitiveDetectorBase.cxx.
|
protectedinherited |
Method stolen from G4VUserDetectorConstruction in G4 10.2.
Definition at line 176 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtualinherited |
Create event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
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 AFP_SensitiveDetectorTool, AFP_SiDSensitiveDetectorTool, AFP_TDSensitiveDetectorTool, and ALFA_SensitiveDetectorTool.
Definition at line 70 of file SensitiveDetectorBase.h.
|
protectedvirtualinherited |
Reimplemented in LArG4::ActiveSDTool.
|
private |
Definition at line 42 of file DeadSDTool.h.
|
private |
Definition at line 43 of file DeadSDTool.h.
|
private |
Definition at line 41 of file DeadSDTool.h.
|
private |
Definition at line 45 of file DeadSDTool.h.
|
private |
Definition at line 46 of file DeadSDTool.h.
Definition at line 97 of file CalibSDTool.h.
|
private |
Definition at line 75 of file DeadSDTool.h.
|
private |
Definition at line 59 of file DeadSDTool.h.
|
private |
Definition at line 44 of file DeadSDTool.h.
|
private |
Do we add the escaped energy processing?
This is only in "mode 1" (Tile+LAr), not in "DeadLAr" mode
Definition at line 39 of file DeadSDTool.h.
|
protectedinherited |
Are we set up to run with PID hits?
Definition at line 88 of file CalibSDTool.h.
|
private |
Definition at line 48 of file DeadSDTool.h.
|
private |
Definition at line 49 of file DeadSDTool.h.
|
private |
Definition at line 47 of file DeadSDTool.h.
|
private |
Definition at line 50 of file DeadSDTool.h.
|
private |
Definition at line 63 of file DeadSDTool.h.
|
private |
Definition at line 53 of file DeadSDTool.h.
|
private |
Definition at line 55 of file DeadSDTool.h.
|
private |
Definition at line 61 of file DeadSDTool.h.
|
private |
Definition at line 65 of file DeadSDTool.h.
|
private |
Definition at line 67 of file DeadSDTool.h.
|
private |
Definition at line 69 of file DeadSDTool.h.
|
private |
Definition at line 71 of file DeadSDTool.h.
|
private |
Definition at line 73 of file DeadSDTool.h.
|
private |
Definition at line 51 of file DeadSDTool.h.
|
private |
Hit collection name.
Definition at line 35 of file DeadSDTool.h.
|
protectedinherited |
Definition at line 98 of file CalibSDTool.h.
Definition at line 94 of file CalibSDTool.h.
|
protectedinherited |
Definition at line 95 of file CalibSDTool.h.
Definition at line 96 of file CalibSDTool.h.
|
private |
Definition at line 57 of file DeadSDTool.h.
|
protectedinherited |
This SensitiveDetector has no volumes associated with it.
Definition at line 101 of file SensitiveDetectorBase.h.
|
protectedinherited |
Names of all output collections written out by this SD.
Definition at line 98 of file SensitiveDetectorBase.h.
|
privateinherited |
The sensitive detector to which this thing corresponds.
Definition at line 125 of file SensitiveDetectorBase.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 96 of file SensitiveDetectorBase.h.