LM sensitive detector class based on G4VSensitiveDetector. More...
#include <LM_SD.h>
Public Member Functions | |
LM_SD (G4String name) | |
Constructor. | |
~LM_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 | |
LM_HitsCollection * | LM_HC |
Data member. | |
G4AffineTransform | LM_LocaltoWorld [N_LM] |
G4double | LM_threshold |
Energy threshold for valid hit. | |
G4bool | LM_Transform [N_LM] |
G4AffineTransform | LM_WorldtoLocal [N_LM] |
Boolean if transforms defined. | |
G4double | LM_Xresol |
x resolution. | |
G4double | LM_Yresol |
y resolution. |
LM sensitive detector class based on G4VSensitiveDetector.
Creates the LM_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 LM_SD.h.
LM_SD::LM_SD | ( | G4String | name ) |
Constructor.
Definition at line 48 of file LM_SD.cc.
References LM_Messenger::Instance(), LM_threshold, LM_Transform, LM_Xresol, LM_Yresol, N_LM, and LM_Messenger::setLM_SDptr().
void LM_SD::clear | ( | ) |
void LM_SD::EndOfEvent | ( | G4HCofThisEvent * | HCE ) |
End of event routine.
Definition at line 168 of file LM_SD.cc.
References LM_Data::e, LM_Data::id, LM_HC, EventAction::lmdata, LM_Data::nLM, LM_Data::Reset(), LM_Data::t, LM_Data::tr, LM_Data::tx, LM_Data::txl, LM_Data::ty, LM_Data::tyl, LM_Data::tz, LM_Data::tzl, LM_Data::x, LM_Data::xl, LM_Data::y, LM_Data::yl, LM_Data::z, and LM_Data::zl.
G4double LM_SD::getThreshold | ( | ) |
Definition at line 220 of file LM_SD.cc.
References LM_threshold.
void LM_SD::Initialize | ( | G4HCofThisEvent * | HCE ) |
G4bool LM_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 LM_SD.cc.
References LM_Hit::copyno, LM_Hit::edep, LM_HC, LM_LocaltoWorld, LM_threshold, LM_Transform, LM_WorldtoLocal, LM_Xresol, LM_Yresol, LM_Hit::local, LM_Hit::time, LM_Hit::tlocal, LM_Hit::trackid, LM_Hit::tworld, and LM_Hit::world.
G4double LM_SD::setThreshold | ( | G4double | thres ) |
G4double LM_SD::setXresol | ( | G4double | res ) |
G4double LM_SD::setYresol | ( | G4double | res ) |
LM_HitsCollection* LM_SD::LM_HC [private] |
Data member.
Pointer to hits collection.
Definition at line 108 of file LM_SD.h.
Referenced by EndOfEvent(), Initialize(), PrintAll(), and ProcessHits().
G4AffineTransform LM_SD::LM_LocaltoWorld[N_LM] [private] |
Definition at line 119 of file LM_SD.h.
Referenced by ProcessHits().
G4double LM_SD::LM_threshold [private] |
Energy threshold for valid hit.
Definition at line 110 of file LM_SD.h.
Referenced by getThreshold(), LM_SD(), ProcessHits(), and setThreshold().
G4bool LM_SD::LM_Transform[N_LM] [private] |
Definition at line 114 of file LM_SD.h.
Referenced by LM_SD(), and ProcessHits().
G4AffineTransform LM_SD::LM_WorldtoLocal[N_LM] [private] |
Boolean if transforms defined.
Pointers to transformations.
Definition at line 118 of file LM_SD.h.
Referenced by ProcessHits().
G4double LM_SD::LM_Xresol [private] |
x resolution.
Definition at line 111 of file LM_SD.h.
Referenced by getXresol(), LM_SD(), ProcessHits(), and setXresol().
G4double LM_SD::LM_Yresol [private] |
y resolution.
Definition at line 112 of file LM_SD.h.
Referenced by getYresol(), LM_SD(), ProcessHits(), and setYresol().