WC sensitive detector class based on G4VSensitiveDetector. More...
#include <WC_SD.h>
Public Member Functions | |
WC_SD (G4String name) | |
Constructor. | |
~WC_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 | getXresol () |
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 | setXresol (G4double) |
Set/Get X resolution. | |
G4double | setYresol (G4double) |
Set/Get Y resolution. | |
Private Attributes | |
WC_HitsCollection * | WC_HC |
Data member consists of a pointer to the hits collection. | |
G4AffineTransform | WC_LocaltoWorld [N_WC] |
G4double | WC_threshold |
Energy threshold for valid hit. | |
G4bool | WC_Transform [N_WC] |
G4AffineTransform | WC_WorldtoLocal [N_WC] |
Boolean if transforms defined. | |
G4double | WC_Xresol |
x resolution. | |
G4double | WC_Yresol |
y resolution. |
WC sensitive detector class based on G4VSensitiveDetector.
Creates the WC_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 WC_SD.h.
WC_SD::WC_SD | ( | G4String | name ) |
Constructor.
Definition at line 50 of file WC_SD.cc.
References WC_Messenger::Instance(), N_WC, WC_Messenger::setWC_SDptr(), WC_threshold, WC_Transform, WC_Xresol, and WC_Yresol.
void WC_SD::clear | ( | ) |
void WC_SD::EndOfEvent | ( | G4HCofThisEvent * | HCE ) |
End of event routine.
Definition at line 176 of file WC_SD.cc.
References WC_Data::e, WC_Data::id, WC_Data::nWC, WC_Data::Reset(), WC_Data::t, WC_Data::tr, WC_Data::tx, WC_Data::txl, WC_Data::ty, WC_Data::tyl, WC_Data::tz, WC_Data::tzl, WC_HC, EventAction::wcdata, WC_Data::x, WC_Data::xl, WC_Data::y, WC_Data::yl, WC_Data::z, and WC_Data::zl.
G4double WC_SD::getThreshold | ( | ) |
Definition at line 229 of file WC_SD.cc.
References WC_threshold.
void WC_SD::Initialize | ( | G4HCofThisEvent * | HCE ) |
G4bool WC_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 91 of file WC_SD.cc.
References WC_Hit::copyno, WC_Hit::edep, WC_Hit::local, WC_Hit::time, WC_Hit::tlocal, WC_Hit::trackid, WC_Hit::tworld, WC_HC, WC_LocaltoWorld, WC_threshold, WC_Transform, WC_WorldtoLocal, WC_Xresol, WC_Yresol, and WC_Hit::world.
G4double WC_SD::setThreshold | ( | G4double | thres ) |
G4double WC_SD::setXresol | ( | G4double | res ) |
G4double WC_SD::setYresol | ( | G4double | res ) |
WC_HitsCollection* WC_SD::WC_HC [private] |
Data member consists of a pointer to the hits collection.
Pointer to hits collection.
Definition at line 108 of file WC_SD.h.
Referenced by EndOfEvent(), Initialize(), PrintAll(), and ProcessHits().
G4AffineTransform WC_SD::WC_LocaltoWorld[N_WC] [private] |
Definition at line 120 of file WC_SD.h.
Referenced by ProcessHits().
G4double WC_SD::WC_threshold [private] |
Energy threshold for valid hit.
Definition at line 110 of file WC_SD.h.
Referenced by getThreshold(), ProcessHits(), setThreshold(), and WC_SD().
G4bool WC_SD::WC_Transform[N_WC] [private] |
Definition at line 115 of file WC_SD.h.
Referenced by ProcessHits(), and WC_SD().
G4AffineTransform WC_SD::WC_WorldtoLocal[N_WC] [private] |
Boolean if transforms defined.
Pointers to transformations.
Definition at line 119 of file WC_SD.h.
Referenced by ProcessHits().
G4double WC_SD::WC_Xresol [private] |
x resolution.
Definition at line 112 of file WC_SD.h.
Referenced by getXresol(), ProcessHits(), setXresol(), and WC_SD().
G4double WC_SD::WC_Yresol [private] |
y resolution.
Definition at line 113 of file WC_SD.h.
Referenced by getYresol(), ProcessHits(), setYresol(), and WC_SD().