Public Member Functions | Private Attributes

GT_SD Class Reference

GT sensitive detector class based on G4VSensitiveDetector. More...

#include <GT_SD.h>

Inheritance diagram for GT_SD:
Inheritance graph
[legend]
Collaboration diagram for GT_SD:
Collaboration graph
[legend]

List of all members.

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_HitsCollectionGT_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.

Detailed Description

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.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

GT_SD::~GT_SD (  )

Destructor.

Definition at line 73 of file GT_SD.cc.


Member Function Documentation

void GT_SD::clear (  )

In the event of an aborted event clear hit collections not assigned to the usual hit collection..

Definition at line 203 of file GT_SD.cc.

void GT_SD::DrawAll (  )

Draw all hits.

Definition at line 205 of file GT_SD.cc.

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.

Here is the call graph for this function:

G4double GT_SD::getThreshold (  )

Definition at line 218 of file GT_SD.cc.

References GT_threshold.

G4double GT_SD::getXresol (  )

Definition at line 223 of file GT_SD.cc.

References GT_Xresol.

G4double GT_SD::getYresol (  )

Definition at line 228 of file GT_SD.cc.

References GT_Yresol.

void GT_SD::Initialize ( G4HCofThisEvent *  HCE )

Initialise the hits collection.

Definition at line 77 of file GT_SD.cc.

References GT_HC.

void GT_SD::PrintAll (  )

Print all hits.

Definition at line 209 of file GT_SD.cc.

References GT_HC.

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 )

Set/Get energy threshold.

Definition at line 217 of file GT_SD.cc.

References GT_threshold.

G4double GT_SD::setXresol ( G4double  res )

Set/Get X resolution.

Definition at line 222 of file GT_SD.cc.

References GT_Xresol.

G4double GT_SD::setYresol ( G4double  res )

Set/Get Y resolution.

Definition at line 227 of file GT_SD.cc.

References GT_Yresol.


Member Data Documentation

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().


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