Common sensitive detector class for LAr systems.
More...
#include <LArG4SimpleSD.h>
|
| | 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.
|
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.
◆ LArHitTimeBins
| Enumerator |
|---|
| HitTimeBinDefault | |
| HitTimeBinUniform | |
Definition at line 46 of file LArG4SimpleSD.h.
◆ LArG4SimpleSD() [1/2]
| LArG4SimpleSD::LArG4SimpleSD |
( |
G4String | a_name, |
|
|
ILArCalculatorSvc * | calc, |
|
|
std::string | hitCollectionName, |
|
|
const std::string & | type = "Default", |
|
|
const float | width = 2.5 *CLHEP::ns ) |
◆ LArG4SimpleSD() [2/2]
| LArG4SimpleSD::LArG4SimpleSD |
( |
G4String | a_name, |
|
|
StoreGateSvc * | detStore, |
|
|
std::string | hitCollectionName ) |
Alternative constructor, particularly for fast simulations.
◆ ~LArG4SimpleSD()
| virtual LArG4SimpleSD::~LArG4SimpleSD |
( |
| ) |
|
|
virtual |
◆ ConvertID()
Helper function for making "real" identifiers from LArG4Identifiers.
◆ FRIEND_TEST() [1/5]
| LArG4SimpleSD::FRIEND_TEST |
( |
LArG4SimpleSDtest | , |
|
|
ConvertID | ) |
|
private |
◆ FRIEND_TEST() [2/5]
| LArG4SimpleSD::FRIEND_TEST |
( |
LArG4SimpleSDtest | , |
|
|
getTimeBin | ) |
|
private |
◆ FRIEND_TEST() [3/5]
| LArG4SimpleSD::FRIEND_TEST |
( |
LArG4SimpleSDtest | , |
|
|
ProcessHits | ) |
|
private |
◆ FRIEND_TEST() [4/5]
| LArG4SimpleSD::FRIEND_TEST |
( |
LArG4SimpleSDtest | , |
|
|
setupHelpers | ) |
|
private |
◆ FRIEND_TEST() [5/5]
| LArG4SimpleSD::FRIEND_TEST |
( |
LArG4SimpleSDtest | , |
|
|
SimpleHit | ) |
|
private |
◆ getHitContainer()
◆ getTimeBin()
| G4int LArG4SimpleSD::getTimeBin |
( |
G4double | time | ) |
const |
|
protected |
Helper method for time info.
◆ Initialize()
| void LArG4SimpleSD::Initialize |
( |
G4HCofThisEvent * | | ) |
|
|
override |
Register this regular SD with the event-owned builder.
◆ ProcessHits()
| G4bool LArG4SimpleSD::ProcessHits |
( |
G4Step * | a_step, |
|
|
G4TouchableHistory * | ) |
|
override |
◆ setupHelpers()
Sets the ID helper pointers.
Definition at line 75 of file LArG4SimpleSD.h.
77 {
81 }
const LArHEC_ID * m_larHecID
const LArFCAL_ID * m_larFcalID
const LArEM_ID * m_larEmID
Pointers to the identifier helpers.
◆ SimpleHit()
First method translates to this - also for fast sims.
◆ m_calculator
◆ m_hitCollectionName
| std::string LArG4SimpleSD::m_hitCollectionName |
|
private |
◆ m_hitSourceName
| std::string LArG4SimpleSD::m_hitSourceName |
|
private |
◆ m_larEmID
◆ m_larFcalID
◆ m_larHecID
◆ m_numberInvalidHits
| G4int LArG4SimpleSD::m_numberInvalidHits |
|
protected |
◆ m_timeBinType
◆ m_timeBinWidth
| G4float LArG4SimpleSD::m_timeBinWidth |
|
protected |
Width of the time bins for summing hits - for the uniform binning.
Definition at line 112 of file LArG4SimpleSD.h.
The documentation for this class was generated from the following file: