![]() |
ATLAS Offline Software
|
NEEDS DOCUMENTATION. More...
#include <LArFastShower.h>
Public Member Functions | |
| LArFastShower (const std::string &name, G4Region *region, const FastShowerConfigStruct &config, IFastSimDedicatedSD *fastSimDedicatedSD) | |
| Constructor. | |
| virtual | ~LArFastShower () |
| Destructor. | |
| G4bool | IsApplicable (const G4ParticleDefinition &) override |
| Determines the applicability of the fast sim model to this particle type Called once for each track picked up by Geant as it enters a region with the fast sim assigned to it. | |
| virtual G4bool | ModelTrigger (const G4FastTrack &) override |
| Determines the applicability of the fast sim model to this particular track. | |
| virtual G4bool | ForcedAccept (const G4FastTrack &) |
| If it returns true, the particle will be parameterized without further checks. | |
| virtual G4bool | ForcedDeny (const G4FastTrack &) |
| If it returns true, the particle will be returned to G4 without further checks. | |
| void | DoIt (const G4FastTrack &, G4FastStep &) override |
| Assigns the track to the appropriate method for application of the fast simulation. | |
Protected Member Functions | |
| IFastSimDedicatedSD * | fastShowerSD () |
| ILArG4ShowerLibSvc * | showerLibSvc () |
| void | KillParticle (const G4FastTrack &, G4FastStep &) |
| Method to kill a particle and deposit its energy using exponential decay function. | |
| void | UseShowerLib (const G4FastTrack &, G4FastStep &) |
| Function for the application of shower library. | |
| virtual G4bool | CheckContainment (const G4FastTrack &fastTrack) |
| Function to check the containment of a shower within a regular detector region. | |
| std::unique_ptr< const HepMC::GenEvent > | GetGenEvent (const G4FastTrack &fastTrack) |
| bool | flagToShowerLib (const G4ParticleDefinition &particleType) const |
| get switch for frozen showers | |
| double | maxEneToShowerLib (const G4ParticleDefinition &particleType) const |
| get lower energy limit for frozen showers | |
| double | minEneToShowerLib (const G4ParticleDefinition &particleType) const |
| get upper energy limit for frozen showers | |
| bool | generateFSStartingPoint (std::unique_ptr< const HepMC::GenEvent > &ge) const |
Private Attributes | |
| const FastShowerConfigStruct | m_configuration |
| IFastSimDedicatedSD * | m_fastSimDedicatedSD {} |
| Shower library sensitive detector for this shower. | |
| ILArG4ShowerLibSvc * | m_showerLibSvc {} |
| Pointer to the shower library service. | |
| bool | m_generate_starting_points |
| std::shared_ptr< HepMC3::WriterAscii > | m_starting_points_file |
| std::string | m_detector_tag_str |
| std::map< std::string, int > | m_detmap |
| int | m_eventNum |
| std::map< int, bool > | m_applicableMap |
NEEDS DOCUMENTATION.
Definition at line 27 of file LArFastShower.h.
| LArFastShower::LArFastShower | ( | const std::string & | name, |
| G4Region * | region, | ||
| const FastShowerConfigStruct & | config, | ||
| IFastSimDedicatedSD * | fastSimDedicatedSD ) |
Constructor.
Definition at line 38 of file LArFastShower.cxx.
|
inlinevirtual |
|
protectedvirtual |
Function to check the containment of a shower within a regular detector region.
Definition at line 272 of file LArFastShower.cxx.
|
override |
Assigns the track to the appropriate method for application of the fast simulation.
Only called if ModelTrigger returns true.
Definition at line 181 of file LArFastShower.cxx.
|
protected |
Definition at line 81 of file LArFastShower.cxx.
|
protected |
get switch for frozen showers
Definition at line 393 of file LArFastShower.cxx.
|
virtual |
If it returns true, the particle will be parameterized without further checks.
Definition at line 446 of file LArFastShower.cxx.
|
virtual |
If it returns true, the particle will be returned to G4 without further checks.
Definition at line 470 of file LArFastShower.cxx.
|
protected |
Definition at line 439 of file LArFastShower.cxx.
|
protected |
Definition at line 354 of file LArFastShower.cxx.
|
override |
Determines the applicability of the fast sim model to this particle type Called once for each track picked up by Geant as it enters a region with the fast sim assigned to it.
Currently returns false for all but photons and electrons.
Definition at line 103 of file LArFastShower.cxx.
|
protected |
Method to kill a particle and deposit its energy using exponential decay function.
Definition at line 206 of file LArFastShower.cxx.
|
protected |
get lower energy limit for frozen showers
Definition at line 424 of file LArFastShower.cxx.
|
protected |
get upper energy limit for frozen showers
Definition at line 408 of file LArFastShower.cxx.
|
overridevirtual |
Determines the applicability of the fast sim model to this particular track.
Checks that geometric location, energy, and particle type are within bounds. Also checks for containment of the particle's shower within a specific detector region.
Definition at line 126 of file LArFastShower.cxx.
|
protected |
Definition at line 90 of file LArFastShower.cxx.
|
protected |
Function for the application of shower library.
Definition at line 221 of file LArFastShower.cxx.
|
private |
Definition at line 94 of file LArFastShower.h.
|
private |
Definition at line 80 of file LArFastShower.h.
|
private |
Definition at line 90 of file LArFastShower.h.
|
private |
Definition at line 91 of file LArFastShower.h.
|
private |
Definition at line 93 of file LArFastShower.h.
|
private |
Shower library sensitive detector for this shower.
Definition at line 83 of file LArFastShower.h.
|
private |
Definition at line 88 of file LArFastShower.h.
|
private |
|
private |
Definition at line 89 of file LArFastShower.h.