![]() |
ATLAS Offline Software
|
Common sensitive detector class for LAr systems. More...
#include <LArG4SimpleSD.h>
Classes | |
| class | LessHit |
Public Types | |
| enum | LArHitTimeBins { HitTimeBinDefault = 0 , HitTimeBinUniform = 1 } |
Public Member Functions | |
| LArG4SimpleSD (G4String a_name, ILArCalculatorSvc *calc, const std::string &type="Default", const float width=2.5 *CLHEP::ns) | |
| Constructor. | |
| LArG4SimpleSD (G4String a_name, StoreGateSvc *detStore) | |
| Alternative constructor, particularly for fast simulations. | |
| virtual | ~LArG4SimpleSD () |
| Destructor. | |
| 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 | EndOfAthenaEvent (LArHitContainer *hitContnainer) |
| End of athena event processing. | |
| 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 Types | |
| typedef std::set< LArHit *, LessHit > | hits_t |
| typedef std::map< G4int, hits_t * > | timeBins_t |
Protected Member Functions | |
| G4int | getTimeBin (G4double time) const |
| Helper method for time info. | |
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. | |
| timeBins_t | m_timeBins |
| The map of hit sets binned in time. | |
| 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, EndOfAthenaEvent) | |
| FRIEND_TEST (LArG4SimpleSDtest, setupHelpers) | |
| FRIEND_TEST (LArG4SimpleSDtest, getTimeBin) | |
| FRIEND_TEST (LArG4SimpleSDtest, SimpleHit) | |
| FRIEND_TEST (LArG4SimpleSDtest, ConvertID) | |
| FRIEND_TEST (SDWrappertest, Initialize) | |
| FRIEND_TEST (SDWrappertest, EndOfAthenaEvent) | |
| FRIEND_TEST (SDWrappertest, addSD) | |
| FRIEND_TEST (SDWrappertest, addFastSimSD) | |
| FRIEND_TEST (SDWrappertest, ProcessHits) | |
Common sensitive detector class for LAr systems.
This SD implementation saves the standard LArHits. See LArG4CalibSD for an SD that handles calibration hits.
Definition at line 35 of file LArG4SimpleSD.h.
|
protected |
Definition at line 113 of file LArG4SimpleSD.h.
|
protected |
Definition at line 119 of file LArG4SimpleSD.h.
| Enumerator | |
|---|---|
| HitTimeBinDefault | |
| HitTimeBinUniform | |
Definition at line 50 of file LArG4SimpleSD.h.
| LArG4SimpleSD::LArG4SimpleSD | ( | G4String | a_name, |
| ILArCalculatorSvc * | calc, | ||
| const std::string & | type = "Default", | ||
| const float | width = 2.5 *CLHEP::ns ) |
Constructor.
| LArG4SimpleSD::LArG4SimpleSD | ( | G4String | a_name, |
| StoreGateSvc * | detStore ) |
Alternative constructor, particularly for fast simulations.
|
virtual |
Destructor.
| Identifier LArG4SimpleSD::ConvertID | ( | const LArG4Identifier & | a_ident | ) | const |
Helper function for making "real" identifiers from LArG4Identifiers.
| void LArG4SimpleSD::EndOfAthenaEvent | ( | LArHitContainer * | hitContnainer | ) |
End of athena event processing.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
Helper method for time info.
|
override |
Main processing method.
|
inline |
Sets the ID helper pointers.
Definition at line 77 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 93 of file LArG4SimpleSD.h.
Pointers to the identifier helpers.
Definition at line 143 of file LArG4SimpleSD.h.
|
protected |
Definition at line 144 of file LArG4SimpleSD.h.
Definition at line 145 of file LArG4SimpleSD.h.
|
protected |
Count the number of invalid hits.
Definition at line 96 of file LArG4SimpleSD.h.
|
protected |
The map of hit sets binned in time.
Definition at line 140 of file LArG4SimpleSD.h.
|
protected |
Definition at line 134 of file LArG4SimpleSD.h.
|
protected |
Width of the time bins for summing hits - for the uniform binning.
Definition at line 137 of file LArG4SimpleSD.h.