![]() |
ATLAS Offline Software
|
Sensitive detector tool which manages activate-area LAr calib SDs. More...
#include <ActiveSDTool.h>
Public Member Functions | |
| ActiveSDTool (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 | |
| LArG4CalibSD * | makeOneSD (const std::string &name, ILArCalibCalculatorSvc *calc, const std::vector< std::string > &volumes) const |
| Helper method to create one SD. | |
| 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} |
Private Member Functions | |
| StatusCode | initializeCalculators () override final |
| Initialize Calculator Services. | |
| std::string | hitCollectionName () const override final |
| std::string | deadHitCollectionName () const override final |
| std::string | srHitCollectionName () const override final |
| G4VSensitiveDetector * | makeSD () const override final |
| Create the SDs for current worker thread. | |
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", "LArCalibrationHitActive"} |
| Hit collection name. | |
| ServiceHandle< ILArCalibCalculatorSvc > | m_bpsmodcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_embcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emepiwcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emeniwcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emepowcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emenowcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emepscalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emepobarcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_emenobarcalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_heccalc |
| ServiceHandle< ILArCalibCalculatorSvc > | m_fcal1calc {this, "FCAL1CalibCalculator", "FCAL1CalibCalculator"} |
| ServiceHandle< ILArCalibCalculatorSvc > | m_fcal2calc {this, "FCAL2CalibCalculator", "FCAL2CalibCalculator"} |
| ServiceHandle< ILArCalibCalculatorSvc > | m_fcal3calc {this, "FCAL3CalibCalculator", "FCAL3CalibCalculator"} |
SD volumes | |
| Gaudi::Property< std::vector< std::string > > | m_stacVolumes {this, "StacVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_presBarVolumes {this, "PresamplerVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_posIWVolumes {this, "PosIWVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_negIWVolumes {this, "NegIWVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_posOWVolumes {this, "PosOWVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_negOWVolumes {this, "NegOWVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_presECVolumes {this, "PresVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_pBOBVolumes {this, "PosBOBarretteVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_nBOBVolumes {this, "NegBOBarretteVolumes"} |
| Gaudi::Property< std::vector< std::string > > | m_fcal1Volumes {this, "FCAL1Volumes"} |
| Gaudi::Property< std::vector< std::string > > | m_fcal2Volumes {this, "FCAL2Volumes"} |
| Gaudi::Property< std::vector< std::string > > | m_fcal3Volumes {this, "FCAL3Volumes"} |
| Gaudi::Property< std::vector< std::string > > | m_sliceVolumes {this, "SliceVolumes"} |
Sensitive detector tool which manages activate-area LAr calib SDs.
Design is in flux.
Definition at line 24 of file ActiveSDTool.h.
| LArG4::ActiveSDTool::ActiveSDTool | ( | 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.
|
finaloverrideprivatevirtual |
Reimplemented from LArG4::CalibSDTool.
|
finaloverridevirtualinherited |
Finalize and record event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
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 115 of file SensitiveDetectorBase.cxx.
|
protectedinherited |
Method stolen from G4VUserDetectorConstruction in G4 10.2.
Definition at line 142 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtualinherited |
Create event-owned hit collections.
Reimplemented from SensitiveDetectorBase.
|
finaloverrideprivatevirtual |
Reimplemented from LArG4::CalibSDTool.
|
private |
Definition at line 62 of file ActiveSDTool.h.
Definition at line 97 of file CalibSDTool.h.
|
protectedinherited |
Are we set up to run with PID hits?
Definition at line 88 of file CalibSDTool.h.
|
private |
Definition at line 64 of file ActiveSDTool.h.
|
private |
Definition at line 68 of file ActiveSDTool.h.
|
private |
Definition at line 78 of file ActiveSDTool.h.
|
private |
Definition at line 72 of file ActiveSDTool.h.
|
private |
Definition at line 66 of file ActiveSDTool.h.
|
private |
Definition at line 76 of file ActiveSDTool.h.
|
private |
Definition at line 70 of file ActiveSDTool.h.
|
private |
Definition at line 74 of file ActiveSDTool.h.
|
private |
Definition at line 82 of file ActiveSDTool.h.
|
private |
Definition at line 56 of file ActiveSDTool.h.
|
private |
Definition at line 83 of file ActiveSDTool.h.
|
private |
Definition at line 57 of file ActiveSDTool.h.
|
private |
Definition at line 84 of file ActiveSDTool.h.
|
private |
Definition at line 58 of file ActiveSDTool.h.
|
private |
Definition at line 80 of file ActiveSDTool.h.
|
private |
Hit collection name.
Definition at line 43 of file ActiveSDTool.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 55 of file ActiveSDTool.h.
|
private |
Definition at line 50 of file ActiveSDTool.h.
|
private |
Definition at line 52 of file ActiveSDTool.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.
|
private |
Definition at line 54 of file ActiveSDTool.h.
|
private |
Definition at line 49 of file ActiveSDTool.h.
|
private |
Definition at line 51 of file ActiveSDTool.h.
|
private |
Definition at line 48 of file ActiveSDTool.h.
|
private |
Definition at line 53 of file ActiveSDTool.h.
|
private |
Definition at line 59 of file ActiveSDTool.h.
|
private |
Definition at line 47 of file ActiveSDTool.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 78 of file SensitiveDetectorBase.h.