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

#include <TileGeoG4CalibSD.h>

Inheritance diagram for TileGeoG4CalibSD:
Collaboration diagram for TileGeoG4CalibSD:

Classes

class  LessHit
 

Public Member Functions

 TileGeoG4CalibSD (const G4String &name, const std::vector< std::string > &m_outputCollectionNames, ITileCalculator *tileCalculator, const ServiceHandle< StoreGateSvc > &detStore)
 
 ~TileGeoG4CalibSD ()
 
void InvokeUserRunAction ()
 
void InvokeUserEventAction ()
 
void InvokeUserTrackingAction ()
 
void InvokeUserSteppingAction ()
 
void Initialize (G4HCofThisEvent *) override final
 
G4bool ProcessHits (G4Step *, G4TouchableHistory *) override final
 
void EndOfAthenaEvent ()
 
bool FindTileCalibSection ()
 
void CellIDCalculator ()
 
void ScintIDCalculator (TileHitData &hitData)
 
void GirderCellIDCalculator ()
 
void PlateCellIDCalculator ()
 
void DefaultHitIDCalculator ()
 
void DefaultHitIDCalculatorTB (int sample=0, int region=0, int eta=0, int phi=0)
 
Identifier GetCellIDOnStep ()
 
CaloG4::SimulationEnergies::ClassifyResult_t GetEnergiesOnStep ()
 
void DebugCellIDFields ()
 
void DebugDMCellIDFields (int)
 
void CellNumCorrectToHit (int, int)
 
void ResetCellIDFields ()
 
void ResetDMCellIDFields ()
 
void ResetSectSideFlags ()
 

Protected Member Functions

Identifier DM_ID_Maker (int det, int type, int sample, int region, int tower, int module)
 
bool AreClassifiedEnergiesAllZero ()
 
void SetEscapedEnergy (double escapedEnergy)
 
double GetVisibleEnergy ()
 
double GetInvisibleEnergy ()
 
void EnergiesSimpleCounter ()
 
void DebugEnergies ()
 

Private Types

typedef std::set< CaloCalibrationHit *, LessHitm_calibrationHits_t
 
typedef m_calibrationHits_t::iterator m_calibrationHits_ptr_t
 

Private Member Functions

 TileGeoG4CalibSD (const TileGeoG4CalibSD &)
 
TileGeoG4CalibSDoperator= (const TileGeoG4CalibSD &)
 

Private Attributes

SG::WriteHandle< CaloCalibrationHitContainerm_tileActiveCellCalibHits
 
SG::WriteHandle< CaloCalibrationHitContainerm_tileInactiveCellCalibHits
 
SG::WriteHandle< CaloCalibrationHitContainerm_tileDeadMaterialCalibHits
 
SG::WriteHandle< TileHitVectorm_tileHits
 
const CaloCell_IDm_caloCell_ID
 
const CaloDM_IDm_caloDM_ID
 
ServiceHandle< IRDBAccessSvcm_rdbSvc
 
ServiceHandle< IGeoModelSvcm_geoModSvc
 
bool m_tileTB
 
bool m_doCalibHitParticleID
 
ITileCalculatorm_calc
 
TileGeoG4LookupBuilder * m_lookup
 
TileGeoG4DMLookupBuilderm_lookupDM
 
CaloG4::SimulationEnergiesm_simEn
 
TileEscapedEnergyProcessingm_tile_eep
 
G4Step * m_aStep
 
double m_E_tot
 
double m_E_em
 
double m_E_nonem
 
double m_E_invisible
 
double m_E_escaped
 
const G4TouchableHistory * m_stepTouchable
 
G4VPhysicalVolume * m_stepPhysVol
 
G4String m_nameVol
 
TileGeoG4CalibSectionm_cSection
 
TileGeoG4Cell * m_cell
 
TileGeoG4PlateCellm_pCell
 
TileGeoG4GirderCellm_gCell
 
CaloG4::SimulationEnergies::ClassifyResult_t m_result
 
Identifier m_id
 
int m_calibHitType
 
int m_subCalo
 
int m_detector
 
int m_side
 
int m_module
 
int m_tower
 
int m_sample
 
int m_dm_subDet
 
int m_dm_type
 
int m_dm_sample
 
int m_dm_region
 
int m_dm_neta
 
int m_dm_nphi
 
double m_xGlobal
 
double m_yGlobal
 
double m_zGlobal
 
double m_phiGlobal
 
int m_cellNum
 
bool m_defaultHit
 
bool m_isExtended
 set to true if hit is in extended barrel More...
 
bool m_isNegative
 set to true if hit is in negative side More...
 
bool m_plateToCell
 set to true if DM hit in end/front plate is added to a real cell (taken from DB or from JO) More...
 
bool m_addToCell
 set to true if DM hit in front plate is added to a real cell (currently equal to _plateToCell) More...
 
bool m_addToGirder
 set to true if DM hit in absorber at outer radius is added to girder (currently inverse of _plateToCell) More...
 
AtlasG4EventUserInfom_atlasG4EvtUserInfo
 variable used for producing calibration hits signed with primary particle ID More...
 
m_calibrationHits_t m_activeCalibrationHits
 
m_calibrationHits_t m_inactiveCalibrationHits
 
m_calibrationHits_t m_deadCalibrationHits
 

Detailed Description

Definition at line 86 of file TileGeoG4CalibSD.h.

Member Typedef Documentation

◆ m_calibrationHits_ptr_t

typedef m_calibrationHits_t::iterator TileGeoG4CalibSD::m_calibrationHits_ptr_t
private

Definition at line 271 of file TileGeoG4CalibSD.h.

◆ m_calibrationHits_t

Definition at line 270 of file TileGeoG4CalibSD.h.

Constructor & Destructor Documentation

◆ TileGeoG4CalibSD() [1/2]

TileGeoG4CalibSD::TileGeoG4CalibSD ( const G4String &  name,
const std::vector< std::string > &  m_outputCollectionNames,
ITileCalculator tileCalculator,
const ServiceHandle< StoreGateSvc > &  detStore 
)

◆ ~TileGeoG4CalibSD()

TileGeoG4CalibSD::~TileGeoG4CalibSD ( )

◆ TileGeoG4CalibSD() [2/2]

TileGeoG4CalibSD::TileGeoG4CalibSD ( const TileGeoG4CalibSD )
private

Member Function Documentation

◆ AreClassifiedEnergiesAllZero()

bool TileGeoG4CalibSD::AreClassifiedEnergiesAllZero ( )
inlineprotected

Definition at line 305 of file TileGeoG4CalibSD.h.

305  {
306  //check any kind of classified energies. if they all are zero
307  //then nothing to do and go to the next Step
311 }

◆ CellIDCalculator()

void TileGeoG4CalibSD::CellIDCalculator ( )

◆ CellNumCorrectToHit()

void TileGeoG4CalibSD::CellNumCorrectToHit ( int  ,
int   
)

◆ DebugCellIDFields()

void TileGeoG4CalibSD::DebugCellIDFields ( )

◆ DebugDMCellIDFields()

void TileGeoG4CalibSD::DebugDMCellIDFields ( int  )

◆ DebugEnergies()

void TileGeoG4CalibSD::DebugEnergies ( )
protected

◆ DefaultHitIDCalculator()

void TileGeoG4CalibSD::DefaultHitIDCalculator ( )

◆ DefaultHitIDCalculatorTB()

void TileGeoG4CalibSD::DefaultHitIDCalculatorTB ( int  sample = 0,
int  region = 0,
int  eta = 0,
int  phi = 0 
)

◆ DM_ID_Maker()

Identifier TileGeoG4CalibSD::DM_ID_Maker ( int  det,
int  type,
int  sample,
int  region,
int  tower,
int  module 
)
protected

◆ EndOfAthenaEvent()

void TileGeoG4CalibSD::EndOfAthenaEvent ( )

◆ EnergiesSimpleCounter()

void TileGeoG4CalibSD::EnergiesSimpleCounter ( )
protected

◆ FindTileCalibSection()

bool TileGeoG4CalibSD::FindTileCalibSection ( )

◆ GetCellIDOnStep()

Identifier TileGeoG4CalibSD::GetCellIDOnStep ( )
inline

Definition at line 287 of file TileGeoG4CalibSD.h.

287  {
288  return m_id;
289 }

◆ GetEnergiesOnStep()

CaloG4::SimulationEnergies::ClassifyResult_t TileGeoG4CalibSD::GetEnergiesOnStep ( )
inline

Definition at line 291 of file TileGeoG4CalibSD.h.

291  {
292  return m_result;
293 }

◆ GetInvisibleEnergy()

double TileGeoG4CalibSD::GetInvisibleEnergy ( )
inlineprotected

Definition at line 327 of file TileGeoG4CalibSD.h.

◆ GetVisibleEnergy()

double TileGeoG4CalibSD::GetVisibleEnergy ( )
inlineprotected

◆ GirderCellIDCalculator()

void TileGeoG4CalibSD::GirderCellIDCalculator ( )

◆ Initialize()

void TileGeoG4CalibSD::Initialize ( G4HCofThisEvent *  )
finaloverride

◆ InvokeUserEventAction()

void TileGeoG4CalibSD::InvokeUserEventAction ( )
inline

Definition at line 283 of file TileGeoG4CalibSD.h.

283 {;}

◆ InvokeUserRunAction()

void TileGeoG4CalibSD::InvokeUserRunAction ( )
inline

Definition at line 282 of file TileGeoG4CalibSD.h.

282 { ;}

◆ InvokeUserSteppingAction()

void TileGeoG4CalibSD::InvokeUserSteppingAction ( )
inline

Definition at line 285 of file TileGeoG4CalibSD.h.

285 {;}

◆ InvokeUserTrackingAction()

void TileGeoG4CalibSD::InvokeUserTrackingAction ( )
inline

Definition at line 284 of file TileGeoG4CalibSD.h.

284 {;}

◆ operator=()

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

◆ PlateCellIDCalculator()

void TileGeoG4CalibSD::PlateCellIDCalculator ( )

◆ ProcessHits()

G4bool TileGeoG4CalibSD::ProcessHits ( G4Step *  ,
G4TouchableHistory *   
)
finaloverride

◆ ResetCellIDFields()

void TileGeoG4CalibSD::ResetCellIDFields ( )
inline

Definition at line 295 of file TileGeoG4CalibSD.h.

295  {
296  m_detector = m_side = m_module = m_tower = m_sample = -999;
297 }

◆ ResetDMCellIDFields()

void TileGeoG4CalibSD::ResetDMCellIDFields ( )
inline

Definition at line 298 of file TileGeoG4CalibSD.h.

298  {
300 }

◆ ResetSectSideFlags()

void TileGeoG4CalibSD::ResetSectSideFlags ( )
inline

Definition at line 301 of file TileGeoG4CalibSD.h.

301  {
302  m_isExtended = m_isNegative = false;
303 }

◆ ScintIDCalculator()

void TileGeoG4CalibSD::ScintIDCalculator ( TileHitData hitData)

◆ SetEscapedEnergy()

void TileGeoG4CalibSD::SetEscapedEnergy ( double  escapedEnergy)
inlineprotected

Member Data Documentation

◆ m_activeCalibrationHits

m_calibrationHits_t TileGeoG4CalibSD::m_activeCalibrationHits
private

Definition at line 272 of file TileGeoG4CalibSD.h.

◆ m_addToCell

bool TileGeoG4CalibSD::m_addToCell
private

set to true if DM hit in front plate is added to a real cell (currently equal to _plateToCell)

Definition at line 254 of file TileGeoG4CalibSD.h.

◆ m_addToGirder

bool TileGeoG4CalibSD::m_addToGirder
private

set to true if DM hit in absorber at outer radius is added to girder (currently inverse of _plateToCell)

Definition at line 258 of file TileGeoG4CalibSD.h.

◆ m_aStep

G4Step* TileGeoG4CalibSD::m_aStep
private

Definition at line 184 of file TileGeoG4CalibSD.h.

◆ m_atlasG4EvtUserInfo

AtlasG4EventUserInfo* TileGeoG4CalibSD::m_atlasG4EvtUserInfo
private

variable used for producing calibration hits signed with primary particle ID

Definition at line 261 of file TileGeoG4CalibSD.h.

◆ m_calc

ITileCalculator* TileGeoG4CalibSD::m_calc
private

Definition at line 175 of file TileGeoG4CalibSD.h.

◆ m_calibHitType

int TileGeoG4CalibSD::m_calibHitType
private

Definition at line 211 of file TileGeoG4CalibSD.h.

◆ m_caloCell_ID

const CaloCell_ID* TileGeoG4CalibSD::m_caloCell_ID
private

Definition at line 159 of file TileGeoG4CalibSD.h.

◆ m_caloDM_ID

const CaloDM_ID* TileGeoG4CalibSD::m_caloDM_ID
private

Definition at line 160 of file TileGeoG4CalibSD.h.

◆ m_cell

TileGeoG4Cell* TileGeoG4CalibSD::m_cell
private

Definition at line 200 of file TileGeoG4CalibSD.h.

◆ m_cellNum

int TileGeoG4CalibSD::m_cellNum
private

Definition at line 234 of file TileGeoG4CalibSD.h.

◆ m_cSection

TileGeoG4CalibSection* TileGeoG4CalibSD::m_cSection
private

Definition at line 199 of file TileGeoG4CalibSD.h.

◆ m_deadCalibrationHits

m_calibrationHits_t TileGeoG4CalibSD::m_deadCalibrationHits
private

Definition at line 274 of file TileGeoG4CalibSD.h.

◆ m_defaultHit

bool TileGeoG4CalibSD::m_defaultHit
private

Definition at line 241 of file TileGeoG4CalibSD.h.

◆ m_detector

int TileGeoG4CalibSD::m_detector
private

Definition at line 215 of file TileGeoG4CalibSD.h.

◆ m_dm_neta

int TileGeoG4CalibSD::m_dm_neta
private

Definition at line 226 of file TileGeoG4CalibSD.h.

◆ m_dm_nphi

int TileGeoG4CalibSD::m_dm_nphi
private

Definition at line 227 of file TileGeoG4CalibSD.h.

◆ m_dm_region

int TileGeoG4CalibSD::m_dm_region
private

Definition at line 225 of file TileGeoG4CalibSD.h.

◆ m_dm_sample

int TileGeoG4CalibSD::m_dm_sample
private

Definition at line 224 of file TileGeoG4CalibSD.h.

◆ m_dm_subDet

int TileGeoG4CalibSD::m_dm_subDet
private

Definition at line 222 of file TileGeoG4CalibSD.h.

◆ m_dm_type

int TileGeoG4CalibSD::m_dm_type
private

Definition at line 223 of file TileGeoG4CalibSD.h.

◆ m_doCalibHitParticleID

bool TileGeoG4CalibSD::m_doCalibHitParticleID
private

Definition at line 167 of file TileGeoG4CalibSD.h.

◆ m_E_em

double TileGeoG4CalibSD::m_E_em
private

Definition at line 188 of file TileGeoG4CalibSD.h.

◆ m_E_escaped

double TileGeoG4CalibSD::m_E_escaped
private

Definition at line 191 of file TileGeoG4CalibSD.h.

◆ m_E_invisible

double TileGeoG4CalibSD::m_E_invisible
private

Definition at line 190 of file TileGeoG4CalibSD.h.

◆ m_E_nonem

double TileGeoG4CalibSD::m_E_nonem
private

Definition at line 189 of file TileGeoG4CalibSD.h.

◆ m_E_tot

double TileGeoG4CalibSD::m_E_tot
private

Definition at line 187 of file TileGeoG4CalibSD.h.

◆ m_gCell

TileGeoG4GirderCell* TileGeoG4CalibSD::m_gCell
private

Definition at line 202 of file TileGeoG4CalibSD.h.

◆ m_geoModSvc

ServiceHandle<IGeoModelSvc> TileGeoG4CalibSD::m_geoModSvc
private

Definition at line 163 of file TileGeoG4CalibSD.h.

◆ m_id

Identifier TileGeoG4CalibSD::m_id
private

Definition at line 208 of file TileGeoG4CalibSD.h.

◆ m_inactiveCalibrationHits

m_calibrationHits_t TileGeoG4CalibSD::m_inactiveCalibrationHits
private

Definition at line 273 of file TileGeoG4CalibSD.h.

◆ m_isExtended

bool TileGeoG4CalibSD::m_isExtended
private

set to true if hit is in extended barrel

Definition at line 244 of file TileGeoG4CalibSD.h.

◆ m_isNegative

bool TileGeoG4CalibSD::m_isNegative
private

set to true if hit is in negative side

Definition at line 247 of file TileGeoG4CalibSD.h.

◆ m_lookup

TileGeoG4LookupBuilder* TileGeoG4CalibSD::m_lookup
private

Definition at line 176 of file TileGeoG4CalibSD.h.

◆ m_lookupDM

TileGeoG4DMLookupBuilder* TileGeoG4CalibSD::m_lookupDM
private

Definition at line 177 of file TileGeoG4CalibSD.h.

◆ m_module

int TileGeoG4CalibSD::m_module
private

Definition at line 217 of file TileGeoG4CalibSD.h.

◆ m_nameVol

G4String TileGeoG4CalibSD::m_nameVol
private

Definition at line 196 of file TileGeoG4CalibSD.h.

◆ m_pCell

TileGeoG4PlateCell* TileGeoG4CalibSD::m_pCell
private

Definition at line 201 of file TileGeoG4CalibSD.h.

◆ m_phiGlobal

double TileGeoG4CalibSD::m_phiGlobal
private

Definition at line 233 of file TileGeoG4CalibSD.h.

◆ m_plateToCell

bool TileGeoG4CalibSD::m_plateToCell
private

set to true if DM hit in end/front plate is added to a real cell (taken from DB or from JO)

Definition at line 250 of file TileGeoG4CalibSD.h.

◆ m_rdbSvc

ServiceHandle<IRDBAccessSvc> TileGeoG4CalibSD::m_rdbSvc
private

Definition at line 162 of file TileGeoG4CalibSD.h.

◆ m_result

CaloG4::SimulationEnergies::ClassifyResult_t TileGeoG4CalibSD::m_result
private

Definition at line 205 of file TileGeoG4CalibSD.h.

◆ m_sample

int TileGeoG4CalibSD::m_sample
private

Definition at line 219 of file TileGeoG4CalibSD.h.

◆ m_side

int TileGeoG4CalibSD::m_side
private

Definition at line 216 of file TileGeoG4CalibSD.h.

◆ m_simEn

CaloG4::SimulationEnergies* TileGeoG4CalibSD::m_simEn
private

Definition at line 180 of file TileGeoG4CalibSD.h.

◆ m_stepPhysVol

G4VPhysicalVolume* TileGeoG4CalibSD::m_stepPhysVol
private

Definition at line 195 of file TileGeoG4CalibSD.h.

◆ m_stepTouchable

const G4TouchableHistory* TileGeoG4CalibSD::m_stepTouchable
private

Definition at line 194 of file TileGeoG4CalibSD.h.

◆ m_subCalo

int TileGeoG4CalibSD::m_subCalo
private

Definition at line 214 of file TileGeoG4CalibSD.h.

◆ m_tile_eep

TileEscapedEnergyProcessing* TileGeoG4CalibSD::m_tile_eep
private

Definition at line 181 of file TileGeoG4CalibSD.h.

◆ m_tileActiveCellCalibHits

SG::WriteHandle<CaloCalibrationHitContainer> TileGeoG4CalibSD::m_tileActiveCellCalibHits
private

Definition at line 153 of file TileGeoG4CalibSD.h.

◆ m_tileDeadMaterialCalibHits

SG::WriteHandle<CaloCalibrationHitContainer> TileGeoG4CalibSD::m_tileDeadMaterialCalibHits
private

Definition at line 155 of file TileGeoG4CalibSD.h.

◆ m_tileHits

SG::WriteHandle<TileHitVector> TileGeoG4CalibSD::m_tileHits
private

Definition at line 156 of file TileGeoG4CalibSD.h.

◆ m_tileInactiveCellCalibHits

SG::WriteHandle<CaloCalibrationHitContainer> TileGeoG4CalibSD::m_tileInactiveCellCalibHits
private

Definition at line 154 of file TileGeoG4CalibSD.h.

◆ m_tileTB

bool TileGeoG4CalibSD::m_tileTB
private

Definition at line 166 of file TileGeoG4CalibSD.h.

◆ m_tower

int TileGeoG4CalibSD::m_tower
private

Definition at line 218 of file TileGeoG4CalibSD.h.

◆ m_xGlobal

double TileGeoG4CalibSD::m_xGlobal
private

Definition at line 230 of file TileGeoG4CalibSD.h.

◆ m_yGlobal

double TileGeoG4CalibSD::m_yGlobal
private

Definition at line 231 of file TileGeoG4CalibSD.h.

◆ m_zGlobal

double TileGeoG4CalibSD::m_zGlobal
private

Definition at line 232 of file TileGeoG4CalibSD.h.


The documentation for this class was generated from the following file:
CaloG4::SimulationEnergies::kEm
@ kEm
Definition: SimulationEnergies.h:66
TileGeoG4CalibSD::m_isNegative
bool m_isNegative
set to true if hit is in negative side
Definition: TileGeoG4CalibSD.h:247
TileGeoG4CalibSD::m_dm_nphi
int m_dm_nphi
Definition: TileGeoG4CalibSD.h:227
TileGeoG4CalibSD::m_dm_neta
int m_dm_neta
Definition: TileGeoG4CalibSD.h:226
TileGeoG4CalibSD::m_dm_sample
int m_dm_sample
Definition: TileGeoG4CalibSD.h:224
CaloG4::SimulationEnergies::kNonEm
@ kNonEm
Definition: SimulationEnergies.h:67
CaloG4::SimulationEnergies::kInvisible0
@ kInvisible0
Definition: SimulationEnergies.h:68
CaloG4::SimulationEnergies::kEscaped
@ kEscaped
Definition: SimulationEnergies.h:74
TileGeoG4CalibSD::m_sample
int m_sample
Definition: TileGeoG4CalibSD.h:219
CaloG4::SimulationEnergies::ClassifyResult_t::energy
std::map< eEnergyCategory, G4double > energy
Definition: SimulationEnergies.h:82
TileGeoG4CalibSD::m_id
Identifier m_id
Definition: TileGeoG4CalibSD.h:208
TileGeoG4CalibSD::m_dm_region
int m_dm_region
Definition: TileGeoG4CalibSD.h:225
TileGeoG4CalibSD::m_side
int m_side
Definition: TileGeoG4CalibSD.h:216
TileGeoG4CalibSD::m_tower
int m_tower
Definition: TileGeoG4CalibSD.h:218
TileGeoG4CalibSD::m_module
int m_module
Definition: TileGeoG4CalibSD.h:217
TileGeoG4CalibSD::m_isExtended
bool m_isExtended
set to true if hit is in extended barrel
Definition: TileGeoG4CalibSD.h:244
TileGeoG4CalibSD::m_detector
int m_detector
Definition: TileGeoG4CalibSD.h:215
TileGeoG4CalibSD::m_result
CaloG4::SimulationEnergies::ClassifyResult_t m_result
Definition: TileGeoG4CalibSD.h:205
TileGeoG4CalibSD::m_dm_type
int m_dm_type
Definition: TileGeoG4CalibSD.h:223