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

DDG4 tracker hit class used by the generic DDG4 tracker sensitive detector. More...

#include <Geant4Data.h>

Inheritance diagram for dd4hep::sim::Geant4Tracker::Hit:
dd4hep::sim::Geant4HitData

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< MonteCarloContribContributions
 

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...
 
Hitoperator= (Hit &&c)=delete
 Move assignment operator. More...
 
Hitoperator= (const Hit &c)=delete
 Copy assignment operator. More...
 
void copyFrom (const Hit &c)
 Explicit assignment operation. More...
 
Hitclear ()
 Clear hit content. More...
 
HitstorePoint (const G4Step *step, const G4StepPoint *point)
 Store Geant4 point and step information into tracker hit structure. More...
 
HitstorePoint (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< DataExtensionextension
 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...
 

Detailed Description

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.

Author
M.Frank
Version
1.0

Definition at line 263 of file Geant4Data.h.

Member Typedef Documentation

◆ base_t

Definition at line 265 of file Geant4Data.h.

Constructor & Destructor Documentation

◆ Hit() [1/5]

Geant4Tracker::Hit::Hit ( )

Default constructor.

Definition at line 104 of file Geant4Data.cpp.

◆ Hit() [2/5]

dd4hep::sim::Geant4Tracker::Hit::Hit ( Hit &&  c)
delete

Move constructor.

◆ Hit() [3/5]

dd4hep::sim::Geant4Tracker::Hit::Hit ( const Hit c)
delete

copy constructor

◆ Hit() [4/5]

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.

◆ Hit() [5/5]

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.

◆ ~Hit()

Geant4Tracker::Hit::~Hit ( )
virtual

Default destructor.

Definition at line 128 of file Geant4Data.cpp.

Member Function Documentation

◆ clear()

Geant4Tracker::Hit & Geant4Tracker::Hit::clear ( )

Clear hit content.

Definition at line 144 of file Geant4Data.cpp.

◆ copyFrom()

void Geant4Tracker::Hit::copyFrom ( const Hit c)

Explicit assignment operation.

Definition at line 133 of file Geant4Data.cpp.

◆ operator=() [1/2]

Hit& dd4hep::sim::Geant4Tracker::Hit::operator= ( const Hit c)
delete

Copy assignment operator.

◆ operator=() [2/2]

Hit& dd4hep::sim::Geant4Tracker::Hit::operator= ( Hit &&  c)
delete

Move assignment operator.

◆ storePoint() [1/2]

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.

◆ storePoint() [2/2]

Geant4Tracker::Hit & Geant4Tracker::Hit::storePoint ( const Geant4FastSimSpot spot)

Store Geant4 spot information into tracker hit structure.

Definition at line 176 of file Geant4Data.cpp.

Member Data Documentation

◆ energyDeposit

double dd4hep::sim::Geant4Tracker::Hit::energyDeposit { 0e0 }

Energy deposit in the tracker hit.

Definition at line 274 of file Geant4Data.h.

◆ length

double dd4hep::sim::Geant4Tracker::Hit::length { 0e0 }

Length of the track segment contributing to this hit.

Definition at line 272 of file Geant4Data.h.

◆ momentum

Direction dd4hep::sim::Geant4Tracker::Hit::momentum

Hit direction.

Definition at line 270 of file Geant4Data.h.

◆ position

Position dd4hep::sim::Geant4Tracker::Hit::position

Hit position.

Definition at line 268 of file Geant4Data.h.

◆ truth

Contribution dd4hep::sim::Geant4Tracker::Hit::truth

Monte Carlo / Geant4 information.

Definition at line 276 of file Geant4Data.h.


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