ATLAS Offline Software
|
SD tool which manages the LAr hadronic endcap sensitive detectors. More...
#include <HECSDTool.h>
Public Member Functions | |
HECSDTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Constructor. More... | |
StatusCode | initialize () override final |
Initialize the tool. More... | |
StatusCode | Gather () override final |
Calls down to all the SDs to pack their hits into one collection. 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 | |
std::unique_ptr< LArG4SimpleSD > | makeOneSD (const std::string &name, ILArCalculatorSvc *calc, const std::vector< std::string > &volumes) const |
Helper method to create one SD. More... | |
bool | useFrozenShowers () const |
Are we handling frozen shower fast sim? More... | |
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... | |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
configuration properties | |
std::string | m_timeBinType |
What time binning type for regular hits? More... | |
float | m_timeBinWidth |
What time bin width for regular hits? More... | |
G4bool | m_useFrozenShowers |
Is there going to be a fast simulation coming into this SD? More... | |
Calo identifier helpers | |
const LArEM_ID * | m_larEmID |
const LArFCAL_ID * | m_larFcalID |
const LArHEC_ID * | m_larHecID |
Private Member Functions | |
StatusCode | initializeCalculators () override final |
Initialize Calculator Services. More... | |
G4VSensitiveDetector * | makeSD () const override final |
Create the SD wrapper for current worker thread. More... | |
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 | |
ServiceHandle< ILArCalculatorSvc > | m_heccalc |
G4VSensitiveDetector * | m_SD {} |
The sensitive detector to which this thing corresponds. More... | |
std::vector< std::string > | m_sliceVolumes |
List of volumes for each SD. More... | |
std::vector< std::string > | m_localVolumes |
std::vector< std::string > | m_wheelVolumes |
SD tool which manages the LAr hadronic endcap sensitive detectors.
NOTE: this design is in flux, migrating to be more multi-threading-friendly
Definition at line 24 of file HECSDTool.h.
LArG4::HECSDTool::HECSDTool | ( | 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 69 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtualinherited |
Calls down to all the SDs to pack their hits into one collection.
Reimplemented from SensitiveDetectorBase.
|
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.
|
finaloverrideinherited |
Initialize the tool.
|
finaloverrideprivatevirtual |
Initialize Calculator Services.
Reimplemented from LArG4::SimpleSDTool.
|
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.
|
protectedinherited |
Helper method to create one SD.
|
finaloverrideprivate |
Create the SD wrapper 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 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.
|
inlineprotectedinherited |
|
private |
Definition at line 48 of file HECSDTool.h.
Definition at line 84 of file SimpleSDTool.h.
|
protectedinherited |
Definition at line 85 of file SimpleSDTool.h.
Definition at line 86 of file SimpleSDTool.h.
|
private |
Definition at line 44 of file HECSDTool.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.
|
private |
List of volumes for each SD.
Definition at line 43 of file HECSDTool.h.
|
protectedinherited |
What time binning type for regular hits?
Definition at line 74 of file SimpleSDTool.h.
|
protectedinherited |
What time bin width for regular hits?
Definition at line 76 of file SimpleSDTool.h.
|
protectedinherited |
Is there going to be a fast simulation coming into this SD?
Definition at line 78 of file SimpleSDTool.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 82 of file SensitiveDetectorBase.h.
|
private |
Definition at line 45 of file HECSDTool.h.