DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4FastSimHandler Class Reference

Helper class to ease the extraction of information from a G4FastSimSpot object. More...

#include <Geant4FastSimHandler.h>

Inheritance diagram for dd4hep::sim::Geant4FastSimHandler:
dd4hep::sim::Geant4HitHandler

Public Member Functions

 Geant4FastSimHandler ()=delete
 Inhibit default constructor. More...
 
 Geant4FastSimHandler (const Geant4FastSimSpot *sp)
 Initializing constructor. More...
 
 Geant4FastSimHandler (const Geant4FastSimHandler &copy)=delete
 No copy constructor. More...
 
 Geant4FastSimHandler (Geant4FastSimHandler &&copy)=delete
 No move constructor. More...
 
Geant4FastSimHandleroperator= (const Geant4FastSimHandler &copy)=delete
 Assignment operator inhibited. Should not be copied. More...
 
Geant4FastSimHandleroperator= (Geant4FastSimHandler &&copy)=delete
 Move operator inhibited. Should not be copied. More...
 
double energy () const
 Returns total energy deposit. More...
 
Momentum momentum () const
 Return track momentum in DD4hep notation. More...
 
Position avgPosition () const
 Returns the pre-gflashspot position. More...
 
G4ThreeVector avgPositionG4 () const
 Returns the post-step position as a G4ThreeVector. More...
 
Position direction () const
 Direction calculated from the post- and pre-position ofthe gflashspot. More...
 
G4ThreeVector momentumG4 () const
 Returns the track momentum as a G4ThreeVector. More...
 
double deposit () const
 Access the enery deposit of the energy spot. More...
 
G4VPhysicalVolume * volume () const
 
G4LogicalVolume * logvol () const
 
G4VSolid * solid () const
 
G4VSensitiveDetectorsd () const
 
std::string sdName (const std::string &undefined="") const
 
bool isSensitive () const
 
- Public Member Functions inherited from dd4hep::sim::Geant4HitHandler
 Geant4HitHandler ()=delete
 Inhibit default constructor. More...
 
 Geant4HitHandler (const G4Track *t, const G4VTouchable *h)
 Initializing constructor. More...
 
 Geant4HitHandler (const Geant4HitHandler &copy)=delete
 No copy constructor. More...
 
 Geant4HitHandler (Geant4HitHandler &&copy)=delete
 No move constructor. More...
 
Geant4HitHandleroperator= (const Geant4HitHandler &copy)=delete
 Assignment operator inhibited. Should not be copied. More...
 
Geant4HitHandleroperator= (Geant4HitHandler &&copy)=delete
 Move operator inhibited. Should not be copied. More...
 
const G4VTouchable * touchable () const
 
G4ParticleDefinition * trackDef () const
 
int trkPdgID () const
 
int trkID () const
 Access the G4 track ID. More...
 
int parentID () const
 Access the G4 track ID of the parent track. More...
 
double trkTime () const
 
double trkEnergy () const
 
double trkKineEnergy () const
 
int trkStatus () const
 
bool trkAlive () const
 
const G4VProcess * trkProcess () const
 
Momentum trkMom () const
 
bool isSensitive (const G4LogicalVolume *lv) const
 
bool isSensitive (const G4VPhysicalVolume *pv) const
 
Position localToGlobal (const Position &local) const
 Coordinate transformation to global coordinates. More...
 
Position localToGlobal (const DDSegmentation::Vector3D &local) const
 Coordinate transformation to global coordinates. More...
 
Position localToGlobal (const G4ThreeVector &local) const
 Coordinate transformation to global coordinates in MM. More...
 
Position localToGlobal (double x, double y, double z) const
 Coordinate transformation to global coordinates in MM. More...
 
Position globalToLocal (double x, double y, double z) const
 Coordinate transformation to local coordinates. More...
 
Position globalToLocal (const Position &global) const
 Coordinate transformation to local coordinates. More...
 
Position globalToLocal (const G4ThreeVector &global) const
 Coordinate transformation to local coordinates. More...
 
G4ThreeVector globalToLocalG4 (double x, double y, double z) const
 Coordinate transformation to local coordinates. More...
 
G4ThreeVector globalToLocalG4 (const G4ThreeVector &loc) const
 Coordinate transformation to local coordinates with G4 objects. More...
 

Public Attributes

const Geant4FastSimSpotspot { nullptr }
 
- Public Attributes inherited from dd4hep::sim::Geant4HitHandler
const G4Track * track
 
const G4VTouchable * touchable_ptr
 

Detailed Description

Helper class to ease the extraction of information from a G4FastSimSpot object.

Helper/utility class to easily access Geant4 gflashspot/fast simulation information. Born by lazyness: Avoid typing millions of statements!

Author
M.Frank
Version
1.0

Definition at line 43 of file Geant4FastSimHandler.h.

Constructor & Destructor Documentation

◆ Geant4FastSimHandler() [1/4]

dd4hep::sim::Geant4FastSimHandler::Geant4FastSimHandler ( )
delete

Inhibit default constructor.

◆ Geant4FastSimHandler() [2/4]

dd4hep::sim::Geant4FastSimHandler::Geant4FastSimHandler ( const Geant4FastSimSpot sp)
inline

Initializing constructor.

Definition at line 50 of file Geant4FastSimHandler.h.

◆ Geant4FastSimHandler() [3/4]

dd4hep::sim::Geant4FastSimHandler::Geant4FastSimHandler ( const Geant4FastSimHandler copy)
delete

No copy constructor.

◆ Geant4FastSimHandler() [4/4]

dd4hep::sim::Geant4FastSimHandler::Geant4FastSimHandler ( Geant4FastSimHandler &&  copy)
delete

No move constructor.

Member Function Documentation

◆ avgPosition()

Position dd4hep::sim::Geant4FastSimHandler::avgPosition ( ) const
inline

Returns the pre-gflashspot position.

Definition at line 72 of file Geant4FastSimHandler.h.

◆ avgPositionG4()

G4ThreeVector dd4hep::sim::Geant4FastSimHandler::avgPositionG4 ( ) const
inline

Returns the post-step position as a G4ThreeVector.

Definition at line 77 of file Geant4FastSimHandler.h.

◆ deposit()

double dd4hep::sim::Geant4FastSimHandler::deposit ( ) const
inline

Access the enery deposit of the energy spot.

Definition at line 90 of file Geant4FastSimHandler.h.

◆ direction()

Position dd4hep::sim::Geant4FastSimHandler::direction ( ) const
inline

Direction calculated from the post- and pre-position ofthe gflashspot.

Definition at line 81 of file Geant4FastSimHandler.h.

◆ energy()

double dd4hep::sim::Geant4FastSimHandler::energy ( ) const
inline

Returns total energy deposit.

Definition at line 63 of file Geant4FastSimHandler.h.

◆ isSensitive()

bool dd4hep::sim::Geant4FastSimHandler::isSensitive ( ) const
inline

Definition at line 110 of file Geant4FastSimHandler.h.

◆ logvol()

G4LogicalVolume* dd4hep::sim::Geant4FastSimHandler::logvol ( ) const
inline

Definition at line 96 of file Geant4FastSimHandler.h.

◆ momentum()

Momentum dd4hep::sim::Geant4FastSimHandler::momentum ( ) const
inline

Return track momentum in DD4hep notation.

Definition at line 67 of file Geant4FastSimHandler.h.

◆ momentumG4()

G4ThreeVector dd4hep::sim::Geant4FastSimHandler::momentumG4 ( ) const
inline

Returns the track momentum as a G4ThreeVector.

Definition at line 86 of file Geant4FastSimHandler.h.

◆ operator=() [1/2]

Geant4FastSimHandler& dd4hep::sim::Geant4FastSimHandler::operator= ( const Geant4FastSimHandler copy)
delete

Assignment operator inhibited. Should not be copied.

◆ operator=() [2/2]

Geant4FastSimHandler& dd4hep::sim::Geant4FastSimHandler::operator= ( Geant4FastSimHandler &&  copy)
delete

Move operator inhibited. Should not be copied.

◆ sd()

G4VSensitiveDetector* dd4hep::sim::Geant4FastSimHandler::sd ( ) const
inline

Definition at line 102 of file Geant4FastSimHandler.h.

◆ sdName()

std::string dd4hep::sim::Geant4FastSimHandler::sdName ( const std::string &  undefined = "") const
inline

Definition at line 106 of file Geant4FastSimHandler.h.

◆ solid()

G4VSolid* dd4hep::sim::Geant4FastSimHandler::solid ( ) const
inline

Definition at line 99 of file Geant4FastSimHandler.h.

◆ volume()

G4VPhysicalVolume* dd4hep::sim::Geant4FastSimHandler::volume ( ) const
inline

Definition at line 93 of file Geant4FastSimHandler.h.

Member Data Documentation

◆ spot

const Geant4FastSimSpot* dd4hep::sim::Geant4FastSimHandler::spot { nullptr }

Definition at line 45 of file Geant4FastSimHandler.h.


The documentation for this class was generated from the following file: