![]() |
ATLAS Offline Software
|
Common sensitive detector class for LAr systems. More...
#include <LArG4SimpleSD.h>
Public Types | |
| enum | LArHitTimeBins { HitTimeBinDefault = 0 , HitTimeBinUniform = 1 } |
Public Member Functions | |
| LArG4SimpleSD (G4String a_name, ILArCalculatorSvc *calc, std::string hitCollectionName, const std::string &type="Default", const float width=2.5 *CLHEP::ns) | |
| Constructor. | |
| LArG4SimpleSD (G4String a_name, StoreGateSvc *detStore, std::string hitCollectionName) | |
| Alternative constructor, particularly for fast simulations. | |
| virtual | ~LArG4SimpleSD () |
| Destructor. | |
| void | Initialize (G4HCofThisEvent *) override |
| Register this regular SD with the event-owned builder. | |
| G4bool | ProcessHits (G4Step *a_step, G4TouchableHistory *) override |
| Main processing method. | |
| G4bool | SimpleHit (const LArG4Identifier &lar_id, G4double time, G4double energy) |
| First method translates to this - also for fast sims. | |
| void | setupHelpers (const LArEM_ID *EM, const LArFCAL_ID *FCAL, const LArHEC_ID *HEC) |
| Sets the ID helper pointers. | |
| Identifier | ConvertID (const LArG4Identifier &a_ident) const |
| Helper function for making "real" identifiers from LArG4Identifiers. | |
Protected Member Functions | |
| G4int | getTimeBin (G4double time) const |
| Helper method for time info. | |
| LArHitContainerBuilder * | getHitContainer () const |
Protected Attributes | |
| ILArCalculatorSvc * | m_calculator |
| Member variable - the calculator we'll use. | |
| G4int | m_numberInvalidHits |
| Count the number of invalid hits. | |
| LArG4SimpleSD::LArHitTimeBins | m_timeBinType |
| G4float | m_timeBinWidth |
| Width of the time bins for summing hits - for the uniform binning. | |
| const LArEM_ID * | m_larEmID |
| Pointers to the identifier helpers. | |
| const LArFCAL_ID * | m_larFcalID |
| const LArHEC_ID * | m_larHecID |
Private Member Functions | |
| FRIEND_TEST (LArG4SimpleSDtest, ProcessHits) | |
| FRIEND_TEST (LArG4SimpleSDtest, setupHelpers) | |
| FRIEND_TEST (LArG4SimpleSDtest, getTimeBin) | |
| FRIEND_TEST (LArG4SimpleSDtest, SimpleHit) | |
| FRIEND_TEST (LArG4SimpleSDtest, ConvertID) | |
Private Attributes | |
| std::string | m_hitCollectionName |
| std::string | m_hitSourceName |
Common sensitive detector class for LAr systems.
This SD implementation saves the standard LArHits. See LArG4CalibSD for an SD that handles calibration hits. Event state is owned by LArHitContainerBuilder; the SD registers its regular-SD partition during Initialize() and then writes hits through the builder for the current Athena event.
Definition at line 37 of file LArG4SimpleSD.h.
| Enumerator | |
|---|---|
| HitTimeBinDefault | |
| HitTimeBinUniform | |
Definition at line 46 of file LArG4SimpleSD.h.
| LArG4SimpleSD::LArG4SimpleSD | ( | G4String | a_name, |
| ILArCalculatorSvc * | calc, | ||
| std::string | hitCollectionName, | ||
| const std::string & | type = "Default", | ||
| const float | width = 2.5 *CLHEP::ns ) |
Constructor.
| LArG4SimpleSD::LArG4SimpleSD | ( | G4String | a_name, |
| StoreGateSvc * | detStore, | ||
| std::string | hitCollectionName ) |
Alternative constructor, particularly for fast simulations.
|
virtual |
Destructor.
| Identifier LArG4SimpleSD::ConvertID | ( | const LArG4Identifier & | a_ident | ) | const |
Helper function for making "real" identifiers from LArG4Identifiers.
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
Helper method for time info.
|
override |
Register this regular SD with the event-owned builder.
|
override |
Main processing method.
|
inline |
Sets the ID helper pointers.
Definition at line 75 of file LArG4SimpleSD.h.
| G4bool LArG4SimpleSD::SimpleHit | ( | const LArG4Identifier & | lar_id, |
| G4double | time, | ||
| G4double | energy ) |
First method translates to this - also for fast sims.
|
protected |
Member variable - the calculator we'll use.
Definition at line 91 of file LArG4SimpleSD.h.
|
private |
Definition at line 122 of file LArG4SimpleSD.h.
|
private |
Definition at line 123 of file LArG4SimpleSD.h.
Pointers to the identifier helpers.
Definition at line 115 of file LArG4SimpleSD.h.
|
protected |
Definition at line 116 of file LArG4SimpleSD.h.
Definition at line 117 of file LArG4SimpleSD.h.
|
protected |
Count the number of invalid hits.
Definition at line 94 of file LArG4SimpleSD.h.
|
protected |
Definition at line 109 of file LArG4SimpleSD.h.
|
protected |
Width of the time bins for summing hits - for the uniform binning.
Definition at line 112 of file LArG4SimpleSD.h.