Public Member Functions | Private Attributes

LM_SD Class Reference

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

#include <LM_SD.h>

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

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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

Here is the call graph for this function:

LM_SD::~LM_SD (  )

Destructor.

Definition at line 71 of file LM_SD.cc.


Member Function Documentation

void LM_SD::clear (  )

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

Definition at line 205 of file LM_SD.cc.

void LM_SD::DrawAll (  )

Draw all hits.

Definition at line 207 of file LM_SD.cc.

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

Definition at line 220 of file LM_SD.cc.

References LM_threshold.

G4double LM_SD::getXresol (  )

Definition at line 225 of file LM_SD.cc.

References LM_Xresol.

G4double LM_SD::getYresol (  )

Definition at line 230 of file LM_SD.cc.

References LM_Yresol.

void LM_SD::Initialize ( G4HCofThisEvent *  HCE )

Initialise the hits collection.

Definition at line 75 of file LM_SD.cc.

References LM_HC.

void LM_SD::PrintAll (  )

Print all hits.

Definition at line 211 of file LM_SD.cc.

References LM_HC.

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 )

Set/Get energy threshold.

Definition at line 219 of file LM_SD.cc.

References LM_threshold.

G4double LM_SD::setXresol ( G4double  res )

Set/Get X resolution.

Definition at line 224 of file LM_SD.cc.

References LM_Xresol.

G4double LM_SD::setYresol ( G4double  res )

Set/Get Y resolution.

Definition at line 229 of file LM_SD.cc.

References LM_Yresol.


Member Data Documentation

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


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