|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_DDG4_GEANT4ESCAPECOUNTER_H
14 #define DD4HEP_DDG4_GEANT4ESCAPECOUNTER_H
47 virtual bool process(
const G4Step* step, G4TouchableHistory* history)
override;
77 #include <CLHEP/Units/SystemOfUnits.h>
78 #include <G4VProcess.hh>
86 std::string coll_name =
name()+
"Hits";
103 std::string hdlr_path = handler.
path();
126 print(
"+++ Track:%4d %8.2f MeV [%s] %s Geant4 path:%s",
130 step->GetTrack()->SetTrackStatus(fStopAndKill);
#define DECLARE_GEANT4SENSITIVE(name)
Direction momentum
Hit direction.
virtual ~Geant4EscapeCounter()
Default destructor.
Position position
Hit position.
Helper class to ease the extraction of information from a G4Touchable object.
bool m_needsControl
Default property: Flag to create control instance.
Position prePos() const
Returns the pre-step position.
int pdgID
Particle ID from the PDG table.
double length
Length of this step.
virtual bool process(const G4Step *step, G4TouchableHistory *history) override
G4VSensitiveDetector interface: Method for generating hit(s) using the information of G4Step object.
Generic hit container class using Geant4HitWrapper objects.
std::vector< std::string > m_detectorNames
Detector name set.
static void increment(T *)
Increment count according to type information.
long long int cellID
cellID
int trkID() const
Access the G4 track ID.
double time() const
Track time.
long long int volumeID(const G4Step *step)
Returns the volumeID of the sensitive volume corresponding to the step.
Geant4HitCollection * collection(std::size_t which)
Retrieve the hits collection associated with this detector by its serial number.
Helper class to ease the extraction of information from a G4Step object.
Handle class describing a detector element.
void mark(const G4Track *track) const
Mark the track to be kept for MC truth propagation during hit processing.
const std::string & name() const
Track's particle name.
DDG4 tracker hit class used by the generic DDG4 tracker sensitive detector.
double length
Length of the track segment contributing to this hit.
long g4ID
Original Geant 4 track identifier of the creating track (debugging)
double deposit
Total energy deposit in this hit.
Geant4Action & declareProperty(const std::string &nam, T &val)
Declare property.
static void decrement(T *)
Decrement count according to type information.
Helper class to ease the extraction of information from a G4Track object.
Contribution truth
Monte Carlo / Geant4 information.
int pdgID() const
Access the PDG particle identification.
const std::string & name() const
Access name of the action.
void print(const char *fmt,...) const
Support for messages with variable output level using output level.
int trackID
Geant 4 Track identifier.
Position postPos() const
Returns the post-step position.
ROOT::Math::XYZVector Position
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
float x
Proper position of the hit contribution.
Geant4EscapeCounter(Geant4Context *ctxt, const std::string &name, DetElement det, Detector &description)
Standard constructor.
std::string path() const
Helper: Access the placement path of a Geant4 touchable object as a string.
Class to measure the energy of escaping tracks.
Namespace for the AIDA detector description toolkit.
The main interface to the dd4hep detector description package.
void add(TYPE *hit_pointer)
Add a new hit with a check, that the hit is of the same type.
The base class for Geant4 sensitive detector actions implemented by users.
double energyDeposit
Energy deposit in the tracker hit.
int id() const
Track's identifier.
double energy() const
Track's energy.
const std::string creatorName() const
Physical process of the track generation.
double time
Timestamp when this energy was deposited.
size_t m_collectionID
Collection identifiers.
Generic context to extend user, run and event information.