GT sensitive detector class based on G4VSensitiveDetector. More...
#include <GT_SD.h>
Public Member Functions | |
GT_SD (G4String name) | |
Constructor. | |
~GT_SD () | |
Destructor. | |
void | clear () |
In the event of an aborted event clear hit collections not assigned to the usual hit collection.. | |
void | DrawAll () |
Draw all hits. | |
void | EndOfEvent (G4HCofThisEvent *HCE) |
Routine to process hit information at the end of each event. | |
G4double | getThreshold () |
G4double | getXresol () |
G4double | getYresol () |
void | Initialize (G4HCofThisEvent *HCE) |
Initialise the hits collection. | |
void | PrintAll () |
Print all hits. | |
G4bool | ProcessHits (G4Step *step, G4TouchableHistory *ROhist) |
Routine to process each hit. | |
G4double | setThreshold (G4double) |
Set/Get energy threshold. | |
G4double | setXresol (G4double) |
Set/Get X resolution. | |
G4double | setYresol (G4double) |
Set/Get Y resolution. | |
Private Attributes | |
GT_HitsCollection * | GT_HC |
Data members. | |
G4AffineTransform | GT_LocaltoWorld [N_GT] |
G4double | GT_threshold |
Energy threshold for valid hit. | |
G4bool | GT_Transform [N_GT] |
G4AffineTransform | GT_WorldtoLocal [N_GT] |
Boolean if transforms defined. | |
G4double | GT_Xresol |
x resolution. | |
G4double | GT_Yresol |
y resolution. |
GT sensitive detector class based on G4VSensitiveDetector.
Creates the GT_SD class and provides the member routines for initialising the hits collection, processing of hits, and end of event action.
Definition at line 46 of file GT_SD.h.
GT_SD::GT_SD | ( | G4String | name ) |
Constructor.
Definition at line 50 of file GT_SD.cc.
References GT_threshold, GT_Transform, GT_Xresol, GT_Yresol, GT_Messenger::Instance(), N_GT, and GT_Messenger::setGT_SDptr().
void GT_SD::clear | ( | ) |
void GT_SD::EndOfEvent | ( | G4HCofThisEvent * | HCE ) |
Routine to process hit information at the end of each event.
Definition at line 166 of file GT_SD.cc.
References GT_Data::e, GT_HC, EventAction::gtdata, GT_Data::id, GT_Data::nGT, GT_Data::Reset(), GT_Data::t, GT_Data::tr, GT_Data::tx, GT_Data::txl, GT_Data::ty, GT_Data::tyl, GT_Data::tz, GT_Data::tzl, GT_Data::x, GT_Data::xl, GT_Data::y, GT_Data::yl, GT_Data::z, and GT_Data::zl.
G4double GT_SD::getThreshold | ( | ) |
Definition at line 218 of file GT_SD.cc.
References GT_threshold.
void GT_SD::Initialize | ( | G4HCofThisEvent * | HCE ) |
G4bool GT_SD::ProcessHits | ( | G4Step * | step, |
G4TouchableHistory * | ROhist | ||
) |
Routine to process each hit.
Stores all the hit information in the data members of the hit class. ROHist is only given if a readout geometry is associated with this detector.
Definition at line 90 of file GT_SD.cc.
References GT_Hit::copyno, GT_Hit::edep, GT_HC, GT_LocaltoWorld, GT_threshold, GT_Transform, GT_WorldtoLocal, GT_Xresol, GT_Yresol, GT_Hit::local, GT_Hit::time, GT_Hit::tlocal, GT_Hit::trackid, GT_Hit::tworld, and GT_Hit::world.
G4double GT_SD::setThreshold | ( | G4double | thres ) |
G4double GT_SD::setXresol | ( | G4double | res ) |
G4double GT_SD::setYresol | ( | G4double | res ) |
GT_HitsCollection* GT_SD::GT_HC [private] |
Data members.
Pointer to hits collection.
Definition at line 108 of file GT_SD.h.
Referenced by EndOfEvent(), Initialize(), PrintAll(), and ProcessHits().
G4AffineTransform GT_SD::GT_LocaltoWorld[N_GT] [private] |
Definition at line 120 of file GT_SD.h.
Referenced by ProcessHits().
G4double GT_SD::GT_threshold [private] |
Energy threshold for valid hit.
Definition at line 110 of file GT_SD.h.
Referenced by getThreshold(), GT_SD(), ProcessHits(), and setThreshold().
G4bool GT_SD::GT_Transform[N_GT] [private] |
Definition at line 115 of file GT_SD.h.
Referenced by GT_SD(), and ProcessHits().
G4AffineTransform GT_SD::GT_WorldtoLocal[N_GT] [private] |
Boolean if transforms defined.
Pointers to transformations.
Definition at line 119 of file GT_SD.h.
Referenced by ProcessHits().
G4double GT_SD::GT_Xresol [private] |
x resolution.
Definition at line 112 of file GT_SD.h.
Referenced by getXresol(), GT_SD(), ProcessHits(), and setXresol().
G4double GT_SD::GT_Yresol [private] |
y resolution.
Definition at line 113 of file GT_SD.h.
Referenced by getYresol(), GT_SD(), ProcessHits(), and setYresol().