![]() |
ATLAS Offline Software
|
A specialized SD class for saving LAr calibration hits. More...
#include <LArG4CalibSD.h>
Classes | |
| class | LessHit |
Public Member Functions | |
| LArG4CalibSD (G4String a_name, ILArCalibCalculatorSvc *calc, bool doPID=false) | |
| Constructor. | |
| virtual | ~LArG4CalibSD () |
| Destructor. | |
| G4bool | ProcessHits (G4Step *a_step, G4TouchableHistory *) override |
| Main processing method. | |
| void | EndOfAthenaEvent (CaloCalibrationHitContainer *hitContainer, CaloCalibrationHitContainer *deadHitContainer=nullptr) |
| End of athena event processing. | |
| void | EndOfAthenaEvent (CaloCalibrationHitContainer *hitContainer, CaloCalibrationHitContainer *deadHitContainer, SrCaloCalibrationHitContainer *srHitContainer) |
| End of athena event processing with dedicated SR container. | |
| 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 Types | |
| typedef std::set< CaloCalibrationHit *, LessHit > | m_calibrationHits_t |
Protected Member Functions | |
| G4bool | SimpleHit (const LArG4Identifier &a_ident, const std::vector< double > &energies, m_calibrationHits_t &calibrationHits) |
| Constructs the calibration hit and saves it to the set. | |
| G4bool | SrHit (const LArG4Identifier &a_ident, const LArG4Identifier &sr_id, const std::vector< double > &energies, m_calibrationHits_t &calibrationHitsSr) |
| 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 |
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? | |
| m_calibrationHits_t | m_calibrationHits |
| The actual set of calibration hits. | |
| m_calibrationHits_t | m_deadCalibrationHits |
| The actual set of dead material calibration hits. | |
| m_calibrationHits_t | m_calibrationHitsSr |
| The actual set of Sr calibration 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, EndOfAthenaEvent) | |
| FRIEND_TEST (LArG4CalibSDtest, setupHelpers) | |
| FRIEND_TEST (LArG4CalibSDtest, addDetectorHelper) | |
| FRIEND_TEST (LArG4CalibSDtest, SpecialHit) | |
| FRIEND_TEST (LArG4CalibSDtest, SimpleHit) | |
| FRIEND_TEST (LArG4CalibSDtest, ConvertID) | |
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.
Definition at line 38 of file LArG4CalibSD.h.
|
protected |
Definition at line 97 of file LArG4CalibSD.h.
| LArG4CalibSD::LArG4CalibSD | ( | G4String | a_name, |
| ILArCalibCalculatorSvc * | calc, | ||
| 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 |
| void LArG4CalibSD::EndOfAthenaEvent | ( | CaloCalibrationHitContainer * | hitContainer, |
| CaloCalibrationHitContainer * | deadHitContainer, | ||
| SrCaloCalibrationHitContainer * | srHitContainer ) |
End of athena event processing with dedicated SR container.
| void LArG4CalibSD::EndOfAthenaEvent | ( | CaloCalibrationHitContainer * | hitContainer, |
| CaloCalibrationHitContainer * | deadHitContainer = nullptr ) |
End of athena event processing.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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 set.
| 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 103 of file LArG4CalibSD.h.
|
protected |
The actual set of calibration hits.
Definition at line 112 of file LArG4CalibSD.h.
|
protected |
The actual set of Sr calibration hits.
Definition at line 118 of file LArG4CalibSD.h.
Definition at line 128 of file LArG4CalibSD.h.
|
protected |
The actual set of dead material calibration hits.
Definition at line 115 of file LArG4CalibSD.h.
|
protected |
Are we set up to run with PID hits?
Definition at line 109 of file LArG4CalibSD.h.
|
protected |
Definition at line 129 of file LArG4CalibSD.h.
Pointers to the identifier helpers.
Definition at line 125 of file LArG4CalibSD.h.
|
protected |
Definition at line 126 of file LArG4CalibSD.h.
Definition at line 127 of file LArG4CalibSD.h.
|
protected |
Count the number of invalid hits.
Definition at line 106 of file LArG4CalibSD.h.