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. More... | |
virtual | ~LArG4CalibSD () |
Destructor. More... | |
G4bool | ProcessHits (G4Step *a_step, G4TouchableHistory *) override |
Main processing method. More... | |
void | EndOfAthenaEvent (CaloCalibrationHitContainer *hitContainer, CaloCalibrationHitContainer *deadHitContainer=nullptr) |
End of athena event processing. More... | |
void | setupHelpers (const LArEM_ID *EM, const LArFCAL_ID *FCAL, const LArHEC_ID *HEC, const CaloDM_ID *caloDm) |
Sets the ID helper pointers. More... | |
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... More... | |
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. More... | |
Identifier | ConvertID (const LArG4Identifier &a_ident) const |
Helper function for making "real" identifiers from LArG4Identifiers. More... | |
Protected Attributes | |
ILArCalibCalculatorSvc * | m_calculator |
Member variable - the calculator we'll use. More... | |
G4int | m_numberInvalidHits |
Count the number of invalid hits. More... | |
G4bool | m_doPID |
Are we set up to run with PID hits? More... | |
m_calibrationHits_t | m_calibrationHits |
The actual set of calibration hits. More... | |
m_calibrationHits_t | m_deadCalibrationHits |
The actual set of dead material calibration hits. More... | |
const LArEM_ID * | m_larEmID |
Pointers to the identifier helpers. More... | |
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 37 of file LArG4CalibSD.h.
|
protected |
Definition at line 93 of file LArG4CalibSD.h.
LArG4CalibSD::LArG4CalibSD | ( | G4String | a_name, |
ILArCalibCalculatorSvc * | calc, | ||
bool | doPID = false |
||
) |
Constructor.
|
virtual |
Destructor.
|
inline |
Definition at line 71 of file LArG4CalibSD.h.
|
protected |
Helper function for making "real" identifiers from LArG4Identifiers.
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 61 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 |
Member variable - the calculator we'll use.
Definition at line 98 of file LArG4CalibSD.h.
|
protected |
The actual set of calibration hits.
Definition at line 107 of file LArG4CalibSD.h.
Definition at line 119 of file LArG4CalibSD.h.
|
protected |
The actual set of dead material calibration hits.
Definition at line 110 of file LArG4CalibSD.h.
|
protected |
Are we set up to run with PID hits?
Definition at line 104 of file LArG4CalibSD.h.
|
protected |
Definition at line 120 of file LArG4CalibSD.h.
Pointers to the identifier helpers.
Definition at line 116 of file LArG4CalibSD.h.
|
protected |
Definition at line 117 of file LArG4CalibSD.h.
Definition at line 118 of file LArG4CalibSD.h.
|
protected |
Count the number of invalid hits.
Definition at line 101 of file LArG4CalibSD.h.