![]() |
ATLAS Offline Software
|
A specialized SD class for saving LAr calibration hits. More...
#include <LArG4CalibSD.h>
Public Member Functions | |
| LArG4CalibSD (G4String a_name, ILArCalibCalculatorSvc *calc, std::string hitCollectionName, std::string deadHitCollectionName, std::string srHitCollectionName, bool doPID=false) | |
| Constructor. | |
| virtual | ~LArG4CalibSD () |
| Destructor. | |
| void | Initialize (G4HCofThisEvent *) override |
| Register this regular SD with the event-owned builders. | |
| G4bool | ProcessHits (G4Step *a_step, G4TouchableHistory *) override |
| Main processing method. | |
| void | setupHelpers (const LArEM_ID *EM, const LArFCAL_ID *FCAL, const LArHEC_ID *HEC, const CaloDM_ID *caloDm) |
| Sets the ID helper pointers. | |
| void | addDetectorHelper (const AtlasDetectorID *id_helper) |
| G4bool | SpecialHit (G4Step *a_step, const std::vector< G4double > &a_energies) |
| For other classes that need to call into us... | |
Protected Member Functions | |
| G4bool | SimpleHit (const LArG4Identifier &a_ident, const std::vector< double > &energies, bool deadMaterialHit=false) |
| Constructs the calibration hit and saves it to the appropriate builder. | |
| G4bool | SrHit (const LArG4Identifier &a_ident, const LArG4Identifier &sr_id, const std::vector< double > &energies) |
| Identifier | ConvertID (const LArG4Identifier &a_ident) const |
| Helper function for making "real" identifiers from LArG4Identifiers. | |
| Identifier | ConvertSRID (const LArG4Identifier &sr_id, const LArG4Identifier &lr_id) const |
| LArCalibrationHitContainerBuilder * | getCalibrationHits (bool deadMaterialHit) const |
| LArSrCalibrationHitContainerBuilder * | getSrCalibrationHits () const |
Protected Attributes | |
| ILArCalibCalculatorSvc * | m_calculator |
| Member variable - the calculator we'll use. | |
| G4int | m_numberInvalidHits |
| Count the number of invalid hits. | |
| G4bool | m_doPID |
| Are we set up to run with PID hits? | |
| const LArEM_ID * | m_larEmID |
| Pointers to the identifier helpers. | |
| const LArFCAL_ID * | m_larFcalID |
| const LArHEC_ID * | m_larHecID |
| const CaloDM_ID * | m_caloDmID |
| const AtlasDetectorID * | m_id_helper |
Private Member Functions | |
| FRIEND_TEST (LArG4CalibSDtest, ProcessHits) | |
| FRIEND_TEST (LArG4CalibSDtest, setupHelpers) | |
| FRIEND_TEST (LArG4CalibSDtest, addDetectorHelper) | |
| FRIEND_TEST (LArG4CalibSDtest, SpecialHit) | |
| FRIEND_TEST (LArG4CalibSDtest, SimpleHit) | |
| FRIEND_TEST (LArG4CalibSDtest, ConvertID) | |
Private Attributes | |
| std::string | m_hitCollectionName |
| std::string | m_deadHitCollectionName |
| std::string | m_srHitCollectionName |
| std::string | m_hitSourceName |
A specialized SD class for saving LAr calibration hits.
This SD implementation saves CaloCalibrationHit objects. See LArG4SimpleSD for an SD that handles the standard LArHits. Event state is owned by the calibration builder containers; the SD registers its regular-SD partitions during Initialize() and then writes through the builders for the current Athena event.
Definition at line 38 of file LArG4CalibSD.h.
| LArG4CalibSD::LArG4CalibSD | ( | G4String | a_name, |
| ILArCalibCalculatorSvc * | calc, | ||
| std::string | hitCollectionName, | ||
| std::string | deadHitCollectionName, | ||
| std::string | srHitCollectionName, | ||
| bool | doPID = false ) |
Constructor.
|
virtual |
Destructor.
|
inline |
Definition at line 75 of file LArG4CalibSD.h.
|
protected |
Helper function for making "real" identifiers from LArG4Identifiers.
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
override |
Register this regular SD with the event-owned builders.
|
override |
Main processing method.
|
inline |
Sets the ID helper pointers.
Definition at line 65 of file LArG4CalibSD.h.
|
protected |
Constructs the calibration hit and saves it to the appropriate builder.
| G4bool LArG4CalibSD::SpecialHit | ( | G4Step * | a_step, |
| const std::vector< G4double > & | a_energies ) |
For other classes that need to call into us...
|
protected |
|
protected |
Member variable - the calculator we'll use.
Definition at line 89 of file LArG4CalibSD.h.
Definition at line 105 of file LArG4CalibSD.h.
|
private |
Definition at line 113 of file LArG4CalibSD.h.
|
protected |
Are we set up to run with PID hits?
Definition at line 95 of file LArG4CalibSD.h.
|
private |
Definition at line 112 of file LArG4CalibSD.h.
|
private |
Definition at line 115 of file LArG4CalibSD.h.
|
protected |
Definition at line 106 of file LArG4CalibSD.h.
Pointers to the identifier helpers.
Definition at line 102 of file LArG4CalibSD.h.
|
protected |
Definition at line 103 of file LArG4CalibSD.h.
Definition at line 104 of file LArG4CalibSD.h.
|
protected |
Count the number of invalid hits.
Definition at line 92 of file LArG4CalibSD.h.
|
private |
Definition at line 114 of file LArG4CalibSD.h.