ATLAS Offline Software
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
LArG4CalibSD Class Reference

A specialized SD class for saving LAr calibration hits. More...

#include <LArG4CalibSD.h>

Inheritance diagram for LArG4CalibSD:
Collaboration diagram for LArG4CalibSD:

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 *, LessHitm_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

ILArCalibCalculatorSvcm_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_IDm_larEmID
 Pointers to the identifier helpers. More...
 
const LArFCAL_IDm_larFcalID
 
const LArHEC_IDm_larHecID
 
const CaloDM_IDm_caloDmID
 
const AtlasDetectorIDm_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)
 

Detailed Description

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.

Member Typedef Documentation

◆ m_calibrationHits_t

Definition at line 93 of file LArG4CalibSD.h.

Constructor & Destructor Documentation

◆ LArG4CalibSD()

LArG4CalibSD::LArG4CalibSD ( G4String  a_name,
ILArCalibCalculatorSvc calc,
bool  doPID = false 
)

Constructor.

◆ ~LArG4CalibSD()

virtual LArG4CalibSD::~LArG4CalibSD ( )
virtual

Destructor.

Member Function Documentation

◆ addDetectorHelper()

void LArG4CalibSD::addDetectorHelper ( const AtlasDetectorID id_helper)
inline

Definition at line 71 of file LArG4CalibSD.h.

71 { m_id_helper=id_helper; }

◆ ConvertID()

Identifier LArG4CalibSD::ConvertID ( const LArG4Identifier a_ident) const
protected

Helper function for making "real" identifiers from LArG4Identifiers.

◆ EndOfAthenaEvent()

void LArG4CalibSD::EndOfAthenaEvent ( CaloCalibrationHitContainer hitContainer,
CaloCalibrationHitContainer deadHitContainer = nullptr 
)

End of athena event processing.

◆ FRIEND_TEST() [1/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
addDetectorHelper   
)
private

◆ FRIEND_TEST() [2/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
ConvertID   
)
private

◆ FRIEND_TEST() [3/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
EndOfAthenaEvent   
)
private

◆ FRIEND_TEST() [4/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
ProcessHits   
)
private

◆ FRIEND_TEST() [5/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
setupHelpers   
)
private

◆ FRIEND_TEST() [6/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
SimpleHit   
)
private

◆ FRIEND_TEST() [7/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
SpecialHit   
)
private

◆ ProcessHits()

G4bool LArG4CalibSD::ProcessHits ( G4Step *  a_step,
G4TouchableHistory *   
)
override

Main processing method.

◆ setupHelpers()

void LArG4CalibSD::setupHelpers ( const LArEM_ID EM,
const LArFCAL_ID FCAL,
const LArHEC_ID HEC,
const CaloDM_ID caloDm 
)
inline

Sets the ID helper pointers.

Definition at line 61 of file LArG4CalibSD.h.

64  {
65  m_larEmID = EM;
66  m_larFcalID = FCAL;
67  m_larHecID = HEC;
68  m_caloDmID = caloDm;
69  }

◆ SimpleHit()

G4bool LArG4CalibSD::SimpleHit ( const LArG4Identifier a_ident,
const std::vector< double > &  energies,
m_calibrationHits_t calibrationHits 
)
protected

Constructs the calibration hit and saves it to the set.

◆ SpecialHit()

G4bool LArG4CalibSD::SpecialHit ( G4Step *  a_step,
const std::vector< G4double > &  a_energies 
)

For other classes that need to call into us...

Member Data Documentation

◆ m_calculator

ILArCalibCalculatorSvc* LArG4CalibSD::m_calculator
protected

Member variable - the calculator we'll use.

Definition at line 98 of file LArG4CalibSD.h.

◆ m_calibrationHits

m_calibrationHits_t LArG4CalibSD::m_calibrationHits
protected

The actual set of calibration hits.

Definition at line 107 of file LArG4CalibSD.h.

◆ m_caloDmID

const CaloDM_ID* LArG4CalibSD::m_caloDmID
protected

Definition at line 119 of file LArG4CalibSD.h.

◆ m_deadCalibrationHits

m_calibrationHits_t LArG4CalibSD::m_deadCalibrationHits
protected

The actual set of dead material calibration hits.

Definition at line 110 of file LArG4CalibSD.h.

◆ m_doPID

G4bool LArG4CalibSD::m_doPID
protected

Are we set up to run with PID hits?

Definition at line 104 of file LArG4CalibSD.h.

◆ m_id_helper

const AtlasDetectorID* LArG4CalibSD::m_id_helper
protected

Definition at line 120 of file LArG4CalibSD.h.

◆ m_larEmID

const LArEM_ID* LArG4CalibSD::m_larEmID
protected

Pointers to the identifier helpers.

Definition at line 116 of file LArG4CalibSD.h.

◆ m_larFcalID

const LArFCAL_ID* LArG4CalibSD::m_larFcalID
protected

Definition at line 117 of file LArG4CalibSD.h.

◆ m_larHecID

const LArHEC_ID* LArG4CalibSD::m_larHecID
protected

Definition at line 118 of file LArG4CalibSD.h.

◆ m_numberInvalidHits

G4int LArG4CalibSD::m_numberInvalidHits
protected

Count the number of invalid hits.

Definition at line 101 of file LArG4CalibSD.h.


The documentation for this class was generated from the following file:
LArG4CalibSD::m_id_helper
const AtlasDetectorID * m_id_helper
Definition: LArG4CalibSD.h:120
LArSamples::HEC
@ HEC
Definition: CaloId.h:26
LArG4CalibSD::m_larEmID
const LArEM_ID * m_larEmID
Pointers to the identifier helpers.
Definition: LArG4CalibSD.h:116
LArG4CalibSD::m_caloDmID
const CaloDM_ID * m_caloDmID
Definition: LArG4CalibSD.h:119
Ringer::EM
@ EM
Definition: CaloRingsDefs.h:19
LArG4CalibSD::m_larHecID
const LArHEC_ID * m_larHecID
Definition: LArG4CalibSD.h:118
LArSamples::FCAL
@ FCAL
Definition: CaloId.h:26
LArG4CalibSD::m_larFcalID
const LArFCAL_ID * m_larFcalID
Definition: LArG4CalibSD.h:117