|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4FASTSIMHANDLER_H
14 #define DDG4_GEANT4FASTSIMHANDLER_H
21 #include <G4VTouchable.hh>
22 #include <G4VSensitiveDetector.hh>
31 class Geant4FastSimHandler;
68 const G4ThreeVector& p =
track->GetMomentum();
69 return Momentum(p.x(), p.y(), p.z());
74 return Position(p.x(), p.y(), p.z());
82 const G4ThreeVector p =
track->GetMomentumDirection();
83 return Position(p.x(), p.y(), p.z());
87 return track->GetMomentum();
97 return volume()->GetLogicalVolume();
103 G4LogicalVolume* lv =
logvol();
104 return lv ? lv->GetSensitiveDetector() : 0;
106 std::string
sdName(
const std::string& undefined =
"")
const {
108 return s ? s->GetName() : undefined;
111 G4LogicalVolume* lv =
logvol();
112 return lv ? (0 != lv->GetSensitiveDetector()) :
false;
118 #endif // DDG4_GEANT4FASTSIMHANDLER_H
Position direction() const
Direction calculated from the post- and pre-position ofthe gflashspot.
Geant4FastSimHandler()=delete
Inhibit default constructor.
Geant4FastSimHandler & operator=(const Geant4FastSimHandler ©)=delete
Assignment operator inhibited. Should not be copied.
G4ThreeVector momentumG4() const
Returns the track momentum as a G4ThreeVector.
std::string sdName(const std::string &undefined="") const
Helper class to ease the extraction of information from a G4FastSimSpot object.
Spot definition for fast simulation and GFlash.
double deposit() const
Access the enery deposit of the energy spot.
Helper class to ease the extraction of information from a G4Hit object.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
const G4VTouchable * touchable() const
Geant4FastSimHandler(const Geant4FastSimSpot *sp)
Initializing constructor.
G4ThreeVector avgPositionG4() const
Returns the post-step position as a G4ThreeVector.
G4LogicalVolume * logvol() const
const Geant4FastSimSpot * spot
ROOT::Math::XYZVector Position
G4VSensitiveDetector * sd() const
double energy() const
Returns total energy deposit.
Namespace for the AIDA detector description toolkit.
Position avgPosition() const
Returns the pre-gflashspot position.
Momentum momentum() const
Return track momentum in DD4hep notation.
Geant4FastSimHandler(Geant4FastSimHandler &©)=delete
No move constructor.
G4double GetEnergy() const
Get energy.
G4VPhysicalVolume * volume() const
G4ThreeVector GetPosition() const
Get position.
Geant4FastSimHandler(const Geant4FastSimHandler ©)=delete
No copy constructor.
Geant4FastSimHandler & operator=(Geant4FastSimHandler &©)=delete
Move operator inhibited. Should not be copied.