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

Geant4 sensitive detector combining all deposits of one G4Track within one sensitive element. More...

Public Types

enum  { POSITION_WEIGHTED = 1, POSITION_MIDDLE = 2, POSITION_PREPOINT = 3, POSITION_POSTPOINT = 4 }
 Enumeration to define the calculation of the position of the energy deposit. More...
 

Public Member Functions

 TrackerWeighted ()=default
 Default constructor. More...
 
TrackerWeightedclear ()
 Clear collected information and restart for new hit. More...
 
TrackerWeightedstart (const G4Step *step, const G4StepPoint *point)
 Start a new hit. More...
 
TrackerWeightedupdate (const G4Step *step)
 Update energy and track information during hit info accumulation. More...
 
bool mustSaveTrack (const G4Track *tr) const
 Helper function to decide if the hit has to be extracted and saved in the collection. More...
 
void extractHit (EInside ended)
 Extract hit information and add the created hit to the collection. More...
 
TrackerWeightedcalc_dist_out (const G4VSolid *solid)
 
TrackerWeightedcalc_dist_in (const G4VSolid *solid)
 
void extractHit (Geant4HitCollection *collection, EInside ended)
 
G4bool process (const G4Step *step, G4TouchableHistory *)
 Method for generating hit(s) using the information of G4Step object. More...
 
void endEvent ()
 Post-event action callback. More...
 
void startEvent ()
 Pre event action callback. More...
 
void dumpStep (const Geant4StepHandler &h, const G4Step *s)
 dumpStep More...
 
G4bool process (const Geant4FastSimSpot *, G4TouchableHistory *)
 GFLash processing callback. More...
 

Public Attributes

Geant4Tracker::Hit pre
 
Geant4Tracker::Hit post
 
Position mean_pos
 
Geant4Sensitivesensitive = 0
 
G4VSensitiveDetectorthisSD = 0
 
G4VPhysicalVolume * thisPV = 0
 
double distance_to_inside = 0.0
 
double distance_to_outside = 0.0
 
double mean_time = 0.0
 
double step_length = 0.0
 
double e_cut = 0.0
 
int current = -1
 
int parent = 0
 
int combined = 0
 
int hit_position_type = POSITION_MIDDLE
 
int hit_flag = 0
 
int g4ID = 0
 
EInside last_inside = kOutside
 
long long int cell = 0
 
bool single_deposit_mode = false
 

Detailed Description

Geant4 sensitive detector combining all deposits of one G4Track within one sensitive element.

Geant4SensitiveAction<TrackerWeighted>

Author
M.Frank
Version
1.0

Definition at line 64 of file Geant4TrackerWeightedSD.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Enumeration to define the calculation of the position of the energy deposit.

Enumerator
POSITION_WEIGHTED 
POSITION_MIDDLE 
POSITION_PREPOINT 
POSITION_POSTPOINT 

Definition at line 67 of file Geant4TrackerWeightedSD.cpp.

Constructor & Destructor Documentation

◆ TrackerWeighted()

dd4hep::sim::TrackerWeighted::TrackerWeighted ( )
default

Default constructor.

Member Function Documentation

◆ calc_dist_in()

TrackerWeighted& dd4hep::sim::TrackerWeighted::calc_dist_in ( const G4VSolid *  solid)
inline

Definition at line 188 of file Geant4TrackerWeightedSD.cpp.

◆ calc_dist_out()

TrackerWeighted& dd4hep::sim::TrackerWeighted::calc_dist_out ( const G4VSolid *  solid)
inline

Definition at line 180 of file Geant4TrackerWeightedSD.cpp.

◆ clear()

TrackerWeighted& dd4hep::sim::TrackerWeighted::clear ( )
inline

Clear collected information and restart for new hit.

Definition at line 98 of file Geant4TrackerWeightedSD.cpp.

◆ dumpStep()

void dd4hep::sim::TrackerWeighted::dumpStep ( const Geant4StepHandler h,
const G4Step *  s 
)
inline

dumpStep

Definition at line 404 of file Geant4TrackerWeightedSD.cpp.

◆ endEvent()

void dd4hep::sim::TrackerWeighted::endEvent ( )
inline

Post-event action callback.

Definition at line 387 of file Geant4TrackerWeightedSD.cpp.

◆ extractHit() [1/2]

void dd4hep::sim::TrackerWeighted::extractHit ( EInside  ended)
inline

Extract hit information and add the created hit to the collection.

Definition at line 175 of file Geant4TrackerWeightedSD.cpp.

◆ extractHit() [2/2]

void dd4hep::sim::TrackerWeighted::extractHit ( Geant4HitCollection collection,
EInside  ended 
)
inline

Definition at line 196 of file Geant4TrackerWeightedSD.cpp.

◆ mustSaveTrack()

bool dd4hep::sim::TrackerWeighted::mustSaveTrack ( const G4Track *  tr) const
inline

Helper function to decide if the hit has to be extracted and saved in the collection.

Definition at line 170 of file Geant4TrackerWeightedSD.cpp.

◆ process() [1/2]

G4bool dd4hep::sim::TrackerWeighted::process ( const G4Step *  step,
G4TouchableHistory *   
)
inline

Method for generating hit(s) using the information of G4Step object.

Definition at line 264 of file Geant4TrackerWeightedSD.cpp.

◆ process() [2/2]

G4bool dd4hep::sim::TrackerWeighted::process ( const Geant4FastSimSpot ,
G4TouchableHistory *   
)
inline

GFLash processing callback.

Definition at line 427 of file Geant4TrackerWeightedSD.cpp.

◆ start()

TrackerWeighted& dd4hep::sim::TrackerWeighted::start ( const G4Step *  step,
const G4StepPoint *  point 
)
inline

Start a new hit.

Definition at line 118 of file Geant4TrackerWeightedSD.cpp.

◆ startEvent()

void dd4hep::sim::TrackerWeighted::startEvent ( )
inline

Pre event action callback.

Definition at line 399 of file Geant4TrackerWeightedSD.cpp.

◆ update()

TrackerWeighted& dd4hep::sim::TrackerWeighted::update ( const G4Step *  step)
inline

Update energy and track information during hit info accumulation.

Definition at line 142 of file Geant4TrackerWeightedSD.cpp.

Member Data Documentation

◆ cell

long long int dd4hep::sim::TrackerWeighted::cell = 0

Definition at line 91 of file Geant4TrackerWeightedSD.cpp.

◆ combined

int dd4hep::sim::TrackerWeighted::combined = 0

Definition at line 86 of file Geant4TrackerWeightedSD.cpp.

◆ current

int dd4hep::sim::TrackerWeighted::current = -1

Definition at line 84 of file Geant4TrackerWeightedSD.cpp.

◆ distance_to_inside

double dd4hep::sim::TrackerWeighted::distance_to_inside = 0.0

Definition at line 79 of file Geant4TrackerWeightedSD.cpp.

◆ distance_to_outside

double dd4hep::sim::TrackerWeighted::distance_to_outside = 0.0

Definition at line 80 of file Geant4TrackerWeightedSD.cpp.

◆ e_cut

double dd4hep::sim::TrackerWeighted::e_cut = 0.0

Definition at line 83 of file Geant4TrackerWeightedSD.cpp.

◆ g4ID

int dd4hep::sim::TrackerWeighted::g4ID = 0

Definition at line 89 of file Geant4TrackerWeightedSD.cpp.

◆ hit_flag

int dd4hep::sim::TrackerWeighted::hit_flag = 0

Definition at line 88 of file Geant4TrackerWeightedSD.cpp.

◆ hit_position_type

int dd4hep::sim::TrackerWeighted::hit_position_type = POSITION_MIDDLE

Definition at line 87 of file Geant4TrackerWeightedSD.cpp.

◆ last_inside

EInside dd4hep::sim::TrackerWeighted::last_inside = kOutside

Definition at line 90 of file Geant4TrackerWeightedSD.cpp.

◆ mean_pos

Position dd4hep::sim::TrackerWeighted::mean_pos

Definition at line 75 of file Geant4TrackerWeightedSD.cpp.

◆ mean_time

double dd4hep::sim::TrackerWeighted::mean_time = 0.0

Definition at line 81 of file Geant4TrackerWeightedSD.cpp.

◆ parent

int dd4hep::sim::TrackerWeighted::parent = 0

Definition at line 85 of file Geant4TrackerWeightedSD.cpp.

◆ post

Geant4Tracker::Hit dd4hep::sim::TrackerWeighted::post

Definition at line 74 of file Geant4TrackerWeightedSD.cpp.

◆ pre

Geant4Tracker::Hit dd4hep::sim::TrackerWeighted::pre

Definition at line 74 of file Geant4TrackerWeightedSD.cpp.

◆ sensitive

Geant4Sensitive* dd4hep::sim::TrackerWeighted::sensitive = 0

Definition at line 76 of file Geant4TrackerWeightedSD.cpp.

◆ single_deposit_mode

bool dd4hep::sim::TrackerWeighted::single_deposit_mode = false

Definition at line 92 of file Geant4TrackerWeightedSD.cpp.

◆ step_length

double dd4hep::sim::TrackerWeighted::step_length = 0.0

Definition at line 82 of file Geant4TrackerWeightedSD.cpp.

◆ thisPV

G4VPhysicalVolume* dd4hep::sim::TrackerWeighted::thisPV = 0

Definition at line 78 of file Geant4TrackerWeightedSD.cpp.

◆ thisSD

G4VSensitiveDetector* dd4hep::sim::TrackerWeighted::thisSD = 0

Definition at line 77 of file Geant4TrackerWeightedSD.cpp.


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