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

#include <LArG4H62004CalibSD.h>

Inheritance diagram for LArG4H62004CalibSD:
Collaboration diagram for LArG4H62004CalibSD:

Public Member Functions

 LArG4H62004CalibSD (G4String name, ILArCalibCalculatorSvc *calc, bool doPID=false)
 
virtual ~LArG4H62004CalibSD ()
 
G4bool ProcessHits (G4Step *step, G4TouchableHistory *ROhist)
 
virtual G4bool SpecialHit (G4Step *step, const std::vector< G4double > &energy)
 
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)
 

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

 LArG4H62004CalibSD (const LArG4H62004CalibSD &)
 
LArG4H62004CalibSDoperator= (const LArG4H62004CalibSD &)
 
 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

Definition at line 19 of file LArG4H62004CalibSD.h.

Member Typedef Documentation

◆ m_calibrationHits_t

typedef std::set< CaloCalibrationHit*, LessHit > LArG4CalibSD::m_calibrationHits_t
protectedinherited

Definition at line 93 of file LArG4CalibSD.h.

Constructor & Destructor Documentation

◆ LArG4H62004CalibSD() [1/2]

LArG4H62004CalibSD::LArG4H62004CalibSD ( G4String  name,
ILArCalibCalculatorSvc calc,
bool  doPID = false 
)

◆ ~LArG4H62004CalibSD()

virtual LArG4H62004CalibSD::~LArG4H62004CalibSD ( )
inlinevirtual

Definition at line 23 of file LArG4H62004CalibSD.h.

23 {}

◆ LArG4H62004CalibSD() [2/2]

LArG4H62004CalibSD::LArG4H62004CalibSD ( const LArG4H62004CalibSD )
private

Member Function Documentation

◆ addDetectorHelper()

void LArG4CalibSD::addDetectorHelper ( const AtlasDetectorID id_helper)
inlineinherited

Definition at line 71 of file LArG4CalibSD.h.

71 { m_id_helper=id_helper; }

◆ ConvertID()

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

Helper function for making "real" identifiers from LArG4Identifiers.

◆ EndOfAthenaEvent()

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

End of athena event processing.

◆ FRIEND_TEST() [1/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
addDetectorHelper   
)
privateinherited

◆ FRIEND_TEST() [2/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
ConvertID   
)
privateinherited

◆ FRIEND_TEST() [3/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
EndOfAthenaEvent   
)
privateinherited

◆ FRIEND_TEST() [4/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
ProcessHits   
)
privateinherited

◆ FRIEND_TEST() [5/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
setupHelpers   
)
privateinherited

◆ FRIEND_TEST() [6/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
SimpleHit   
)
privateinherited

◆ FRIEND_TEST() [7/7]

LArG4CalibSD::FRIEND_TEST ( LArG4CalibSDtest  ,
SpecialHit   
)
privateinherited

◆ operator=()

LArG4H62004CalibSD& LArG4H62004CalibSD::operator= ( const LArG4H62004CalibSD )
private

◆ ProcessHits()

G4bool LArG4H62004CalibSD::ProcessHits ( G4Step *  step,
G4TouchableHistory *  ROhist 
)

◆ setupHelpers()

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

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 
)
protectedinherited

Constructs the calibration hit and saves it to the set.

◆ SpecialHit()

virtual G4bool LArG4H62004CalibSD::SpecialHit ( G4Step *  step,
const std::vector< G4double > &  energy 
)
virtual

Member Data Documentation

◆ m_calculator

ILArCalibCalculatorSvc* LArG4CalibSD::m_calculator
protectedinherited

Member variable - the calculator we'll use.

Definition at line 98 of file LArG4CalibSD.h.

◆ m_calibrationHits

m_calibrationHits_t LArG4CalibSD::m_calibrationHits
protectedinherited

The actual set of calibration hits.

Definition at line 107 of file LArG4CalibSD.h.

◆ m_caloDmID

const CaloDM_ID* LArG4CalibSD::m_caloDmID
protectedinherited

Definition at line 119 of file LArG4CalibSD.h.

◆ m_deadCalibrationHits

m_calibrationHits_t LArG4CalibSD::m_deadCalibrationHits
protectedinherited

The actual set of dead material calibration hits.

Definition at line 110 of file LArG4CalibSD.h.

◆ m_doPID

G4bool LArG4CalibSD::m_doPID
protectedinherited

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
protectedinherited

Definition at line 120 of file LArG4CalibSD.h.

◆ m_larEmID

const LArEM_ID* LArG4CalibSD::m_larEmID
protectedinherited

Pointers to the identifier helpers.

Definition at line 116 of file LArG4CalibSD.h.

◆ m_larFcalID

const LArFCAL_ID* LArG4CalibSD::m_larFcalID
protectedinherited

Definition at line 117 of file LArG4CalibSD.h.

◆ m_larHecID

const LArHEC_ID* LArG4CalibSD::m_larHecID
protectedinherited

Definition at line 118 of file LArG4CalibSD.h.

◆ m_numberInvalidHits

G4int LArG4CalibSD::m_numberInvalidHits
protectedinherited

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