Public Member Functions | Private Attributes

TF_SD Class Reference

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

#include <TF_SD.h>

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

List of all members.

Public Member Functions

 TF_SD (G4String name)
 Constructor.
 ~TF_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)
 End of event routine.
G4double getThreshold ()
G4double getTresol ()
G4double getYresol ()
void Initialize (G4HCofThisEvent *HCE)
 Initialise the hits collection.
void PrintAll ()
 Print all hits.
G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 Routine to process each hit.
G4double setThreshold (G4double)
 Set/Get energy threshold.
G4double setTresol (G4double)
 Set/Get T resolution.
G4double setYresol (G4double)
 Set/Get Y resolution.

Private Attributes

TF_HitsCollectionTF_HC
 Data member consists of a pointer to the hits collection.
G4AffineTransform TF_LocaltoWorld [N_TF]
G4double TF_threshold
 Energy threshold for valid hit.
G4bool TF_Transform [N_TF]
G4double TF_Tresol
 time resolution.
G4AffineTransform TF_WorldtoLocal [N_TF]
 Boolean if transforms defined.
G4double TF_Yresol
 y resolution.

Detailed Description

TF sensitive detector class based on G4VSensitiveDetector.

Creates the TF_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 TF_SD.h.


Constructor & Destructor Documentation

TF_SD::TF_SD ( G4String  name )

Constructor.

Definition at line 50 of file TF_SD.cc.

References TF_Messenger::Instance(), N_TF, TF_Messenger::setTF_SDptr(), TF_threshold, TF_Transform, TF_Tresol, and TF_Yresol.

Here is the call graph for this function:

TF_SD::~TF_SD (  )

Destructor.

Definition at line 73 of file TF_SD.cc.


Member Function Documentation

void TF_SD::clear (  )

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

Definition at line 207 of file TF_SD.cc.

void TF_SD::DrawAll (  )

Draw all hits.

Definition at line 209 of file TF_SD.cc.

void TF_SD::EndOfEvent ( G4HCofThisEvent *  HCE )
G4double TF_SD::getThreshold (  )

Definition at line 222 of file TF_SD.cc.

References TF_threshold.

G4double TF_SD::getTresol (  )

Definition at line 227 of file TF_SD.cc.

References TF_Tresol.

G4double TF_SD::getYresol (  )

Definition at line 232 of file TF_SD.cc.

References TF_Yresol.

void TF_SD::Initialize ( G4HCofThisEvent *  HCE )

Initialise the hits collection.

Definition at line 77 of file TF_SD.cc.

References TF_HC.

void TF_SD::PrintAll (  )

Print all hits.

Definition at line 213 of file TF_SD.cc.

References TF_HC.

G4bool TF_SD::ProcessHits ( G4Step *  aStep,
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 th is detector.

Definition at line 90 of file TF_SD.cc.

References TF_Hit::copyno, TF_Hit::edep, TF_Hit::local, TF_HC, TF_LocaltoWorld, TF_threshold, TF_Transform, TF_Tresol, TF_WorldtoLocal, TF_Yresol, TF_Hit::time, TF_Hit::tlocal, TF_Hit::trackid, TF_Hit::ttime, TF_Hit::tworld, and TF_Hit::world.

G4double TF_SD::setThreshold ( G4double  thres )

Set/Get energy threshold.

Definition at line 221 of file TF_SD.cc.

References TF_threshold.

G4double TF_SD::setTresol ( G4double  res )

Set/Get T resolution.

Definition at line 226 of file TF_SD.cc.

References TF_Tresol.

G4double TF_SD::setYresol ( G4double  res )

Set/Get Y resolution.

Definition at line 231 of file TF_SD.cc.

References TF_Yresol.


Member Data Documentation

Data member consists of a pointer to the hits collection.

Pointer to hits collection.

Definition at line 108 of file TF_SD.h.

Referenced by EndOfEvent(), Initialize(), PrintAll(), and ProcessHits().

G4AffineTransform TF_SD::TF_LocaltoWorld[N_TF] [private]

Definition at line 119 of file TF_SD.h.

Referenced by ProcessHits().

G4double TF_SD::TF_threshold [private]

Energy threshold for valid hit.

Definition at line 110 of file TF_SD.h.

Referenced by getThreshold(), ProcessHits(), setThreshold(), and TF_SD().

G4bool TF_SD::TF_Transform[N_TF] [private]

Definition at line 114 of file TF_SD.h.

Referenced by ProcessHits(), and TF_SD().

G4double TF_SD::TF_Tresol [private]

time resolution.

Definition at line 111 of file TF_SD.h.

Referenced by getTresol(), ProcessHits(), setTresol(), and TF_SD().

G4AffineTransform TF_SD::TF_WorldtoLocal[N_TF] [private]

Boolean if transforms defined.

Pointers to transformations.

Definition at line 118 of file TF_SD.h.

Referenced by ProcessHits().

G4double TF_SD::TF_Yresol [private]

y resolution.

Definition at line 112 of file TF_SD.h.

Referenced by getYresol(), ProcessHits(), setYresol(), and TF_SD().


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