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

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

Public Member Functions

 TrackerCombine ()
 
void start_collecting (const G4Track *track)
 Start a new hit. More...
 
void start (const G4Step *step, const G4StepPoint *point)
 
void start (const Geant4FastSimSpot *spot)
 
void update_collected_hit (const G4VTouchable *h, G4ThreeVector &&global)
 Update energy and track information during hit info accumulation. More...
 
void update (const Geant4StepHandler &h)
 
void update (const Geant4FastSimHandler &h)
 
void clear ()
 Clear collected information and restart for new hit. 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 (Geant4HitCollection *collection)
 Extract hit information and add the created hit to the collection. More...
 
G4bool process (const G4Step *step, G4TouchableHistory *)
 Method for generating hit(s) using the information of G4Step object. More...
 
G4bool process (const Geant4FastSimSpot *spot, G4TouchableHistory *)
 Method for generating hit(s) using the information of fast simulation spot object. More...
 
void endEvent (const G4Event *)
 Post-event action callback. More...
 

Public Attributes

Geant4Tracker::Hit pre
 
Geant4Tracker::Hit post
 
Position mean_pos
 
Geant4Sensitivesensitive { nullptr }
 
G4VPhysicalVolume * firstSpotVolume { nullptr }
 
double mean_time { 0e0 }
 
double e_cut { 0e0 }
 
int current { -1 }
 
int combined { 0 }
 
long long int cell { 0 }
 

Detailed Description

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

Geant4SensitiveAction<TrackerCombine>

Author
M.Frank
Version
1.0

Definition at line 553 of file Geant4SDActions.cpp.

Constructor & Destructor Documentation

◆ TrackerCombine()

dd4hep::sim::TrackerCombine::TrackerCombine ( )
inline

Definition at line 564 of file Geant4SDActions.cpp.

Member Function Documentation

◆ clear()

void dd4hep::sim::TrackerCombine::clear ( )
inline

Clear collected information and restart for new hit.

Definition at line 615 of file Geant4SDActions.cpp.

◆ endEvent()

void dd4hep::sim::TrackerCombine::endEvent ( const G4Event *  )
inline

Post-event action callback.

Definition at line 721 of file Geant4SDActions.cpp.

◆ extractHit()

void dd4hep::sim::TrackerCombine::extractHit ( Geant4HitCollection collection)
inline

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

Definition at line 632 of file Geant4SDActions.cpp.

◆ mustSaveTrack()

bool dd4hep::sim::TrackerCombine::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 627 of file Geant4SDActions.cpp.

◆ process() [1/2]

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

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

If we are handling a new track, then store the content of the previous one.

Initialize the deposits of the next hit.

....update .....

Definition at line 654 of file Geant4SDActions.cpp.

◆ process() [2/2]

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

Method for generating hit(s) using the information of fast simulation spot object.

If we are handling a new track, then store the content of the previous one.

Initialize the deposits of the next hit.

....update .....

Definition at line 689 of file Geant4SDActions.cpp.

◆ start() [1/2]

void dd4hep::sim::TrackerCombine::start ( const G4Step *  step,
const G4StepPoint *  point 
)
inline

Definition at line 578 of file Geant4SDActions.cpp.

◆ start() [2/2]

void dd4hep::sim::TrackerCombine::start ( const Geant4FastSimSpot spot)
inline

Definition at line 583 of file Geant4SDActions.cpp.

◆ start_collecting()

void dd4hep::sim::TrackerCombine::start_collecting ( const G4Track *  track)
inline

Start a new hit.

Definition at line 568 of file Geant4SDActions.cpp.

◆ update() [1/2]

void dd4hep::sim::TrackerCombine::update ( const Geant4FastSimHandler h)
inline

Definition at line 609 of file Geant4SDActions.cpp.

◆ update() [2/2]

void dd4hep::sim::TrackerCombine::update ( const Geant4StepHandler h)
inline

Definition at line 605 of file Geant4SDActions.cpp.

◆ update_collected_hit()

void dd4hep::sim::TrackerCombine::update_collected_hit ( const G4VTouchable *  h,
G4ThreeVector &&  global 
)
inline

Update energy and track information during hit info accumulation.

Definition at line 590 of file Geant4SDActions.cpp.

Member Data Documentation

◆ cell

long long int dd4hep::sim::TrackerCombine::cell { 0 }

Definition at line 562 of file Geant4SDActions.cpp.

◆ combined

int dd4hep::sim::TrackerCombine::combined { 0 }

Definition at line 561 of file Geant4SDActions.cpp.

◆ current

int dd4hep::sim::TrackerCombine::current { -1 }

Definition at line 560 of file Geant4SDActions.cpp.

◆ e_cut

double dd4hep::sim::TrackerCombine::e_cut { 0e0 }

Definition at line 559 of file Geant4SDActions.cpp.

◆ firstSpotVolume

G4VPhysicalVolume* dd4hep::sim::TrackerCombine::firstSpotVolume { nullptr }

Definition at line 557 of file Geant4SDActions.cpp.

◆ mean_pos

Position dd4hep::sim::TrackerCombine::mean_pos

Definition at line 555 of file Geant4SDActions.cpp.

◆ mean_time

double dd4hep::sim::TrackerCombine::mean_time { 0e0 }

Definition at line 558 of file Geant4SDActions.cpp.

◆ post

Geant4Tracker::Hit dd4hep::sim::TrackerCombine::post

Definition at line 554 of file Geant4SDActions.cpp.

◆ pre

Geant4Tracker::Hit dd4hep::sim::TrackerCombine::pre

Definition at line 554 of file Geant4SDActions.cpp.

◆ sensitive

Geant4Sensitive* dd4hep::sim::TrackerCombine::sensitive { nullptr }

Definition at line 556 of file Geant4SDActions.cpp.


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