DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
DDG4 tracker hit class used by the generic DDG4 tracker sensitive detector. More...
#include <Geant4Data.h>
Public Types | |
typedef Geant4HitData | base_t |
Public Types inherited from dd4hep::sim::Geant4HitData | |
enum | HitFlags { HIT_KILLED_TRACK = 1<<0, HIT_SECONDARY_TRACK = 1<<1, HIT_NEW_TRACK = 1<<2, HIT_STARTED_INSIDE = 1<<10, HIT_STARTED_SURFACE = 1<<11, HIT_STARTED_OUTSIDE = 1<<12, HIT_ENDED_INSIDE = 1<<13, HIT_ENDED_SURFACE = 1<<14, HIT_ENDED_OUTSIDE = 1<<15 } |
typedef MonteCarloContrib | Contribution |
typedef std::vector< MonteCarloContrib > | Contributions |
Public Member Functions | |
Hit () | |
Default constructor. More... | |
Hit (Hit &&c)=delete | |
Move constructor. More... | |
Hit (const Hit &c)=delete | |
copy constructor More... | |
Hit (int track_id, int pdg_id, double deposit, double time_stamp, double len=0.0, const Position &p={0.0, 0.0, 0.0}, const Direction &d={0.0, 0.0, 0.0}) | |
Initializing constructor. More... | |
Hit (const Geant4HitData::Contribution &contrib, const Direction &mom, double deposit) | |
Optimized constructor for sensitive detectors. More... | |
virtual | ~Hit () |
Default destructor. More... | |
Hit & | operator= (Hit &&c)=delete |
Move assignment operator. More... | |
Hit & | operator= (const Hit &c)=delete |
Copy assignment operator. More... | |
void | copyFrom (const Hit &c) |
Explicit assignment operation. More... | |
Hit & | clear () |
Clear hit content. More... | |
Hit & | storePoint (const G4Step *step, const G4StepPoint *point) |
Store Geant4 point and step information into tracker hit structure. More... | |
Hit & | storePoint (const Geant4FastSimSpot *spot) |
Store Geant4 spot information into tracker hit structure. More... | |
Public Member Functions inherited from dd4hep::sim::Geant4HitData | |
Geant4HitData () | |
Default constructor. More... | |
virtual | ~Geant4HitData () |
Default destructor. More... | |
Public Attributes | |
Position | position |
Hit position. More... | |
Direction | momentum |
Hit direction. More... | |
double | length { 0e0 } |
Length of the track segment contributing to this hit. More... | |
double | energyDeposit { 0e0 } |
Energy deposit in the tracker hit. More... | |
Contribution | truth |
Monte Carlo / Geant4 information. More... | |
Public Attributes inherited from dd4hep::sim::Geant4HitData | |
long long int | cellID = 0 |
cellID More... | |
long | flag = 0 |
User flag to classify hits. More... | |
long | g4ID = -1 |
Original Geant 4 track identifier of the creating track (debugging) More... | |
std::unique_ptr< DataExtension > | extension |
User data extension if required. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from dd4hep::sim::Geant4HitData | |
static Contribution | extractContribution (const G4Step *step) |
Extract the MC contribution for a given hit from the step information. More... | |
static Contribution | extractContribution (const G4Step *step, bool ApplyBirksLaw) |
Extract the MC contribution for a given hit from the step information with BirksLaw option. More... | |
static Contribution | extractContribution (const Geant4FastSimSpot *spot) |
Extract the MC contribution for a given hit from the GFlash/FastSim spot information. More... | |
DDG4 tracker hit class used by the generic DDG4 tracker sensitive detector.
Geant4 tracker hit class. Tracker hits contain the momentum direction as well as the hit position.
Definition at line 263 of file Geant4Data.h.
Definition at line 265 of file Geant4Data.h.
Geant4Tracker::Hit::Hit | ( | ) |
Default constructor.
Definition at line 104 of file Geant4Data.cpp.
|
delete |
Move constructor.
|
delete |
copy constructor
Geant4Tracker::Hit::Hit | ( | int | track_id, |
int | pdg_id, | ||
double | deposit, | ||
double | time_stamp, | ||
double | len = 0.0 , |
||
const Position & | p = {0.0, 0.0, 0.0} , |
||
const Direction & | d = {0.0, 0.0, 0.0} |
||
) |
Initializing constructor.
Standard initializing constructor.
Definition at line 109 of file Geant4Data.cpp.
Geant4Tracker::Hit::Hit | ( | const Geant4HitData::Contribution & | contrib, |
const Direction & | mom, | ||
double | deposit | ||
) |
Optimized constructor for sensitive detectors.
Definition at line 119 of file Geant4Data.cpp.
|
virtual |
Default destructor.
Definition at line 128 of file Geant4Data.cpp.
Geant4Tracker::Hit & Geant4Tracker::Hit::clear | ( | ) |
Clear hit content.
Definition at line 144 of file Geant4Data.cpp.
void Geant4Tracker::Hit::copyFrom | ( | const Hit & | c | ) |
Explicit assignment operation.
Definition at line 133 of file Geant4Data.cpp.
Geant4Tracker::Hit & Geant4Tracker::Hit::storePoint | ( | const G4Step * | step, |
const G4StepPoint * | point | ||
) |
Store Geant4 point and step information into tracker hit structure.
Definition at line 154 of file Geant4Data.cpp.
Geant4Tracker::Hit & Geant4Tracker::Hit::storePoint | ( | const Geant4FastSimSpot * | spot | ) |
Store Geant4 spot information into tracker hit structure.
Definition at line 176 of file Geant4Data.cpp.
double dd4hep::sim::Geant4Tracker::Hit::energyDeposit { 0e0 } |
Energy deposit in the tracker hit.
Definition at line 274 of file Geant4Data.h.
double dd4hep::sim::Geant4Tracker::Hit::length { 0e0 } |
Length of the track segment contributing to this hit.
Definition at line 272 of file Geant4Data.h.
Direction dd4hep::sim::Geant4Tracker::Hit::momentum |
Hit direction.
Definition at line 270 of file Geant4Data.h.
Position dd4hep::sim::Geant4Tracker::Hit::position |
Hit position.
Definition at line 268 of file Geant4Data.h.
Contribution dd4hep::sim::Geant4Tracker::Hit::truth |
Monte Carlo / Geant4 information.
Definition at line 276 of file Geant4Data.h.