Public Member Functions | Private Attributes

SM_SD Class Reference

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

#include <SM_SD.h>

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

List of all members.

Public Member Functions

 SM_SD (G4String name)
 Constructor.
 ~SM_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 getEresol ()
G4double getThreshold ()
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 setEresol (G4double)
 Set/Get energy resolution of PMT.
G4double setThreshold (G4double)
 Set/Get energy threshold.

Private Attributes

G4double SM_Eresol
 E resolution.
SM_HitsCollectionSM_HC
 Data member consists of a pointer to the hits collection.
G4AffineTransform SM_LocaltoWorld [N_SM]
G4double SM_threshold
 Energy threshold for valid hit.
G4bool SM_Transform [N_SM]
G4AffineTransform SM_WorldtoLocal [N_SM]
 Boolean if transforms defined.

Detailed Description

SM sensitive detector class based on G4VSensitiveDetector.

Creates the SM_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 SM_SD.h.


Constructor & Destructor Documentation

SM_SD::SM_SD ( G4String  name )

Constructor.

Definition at line 48 of file SM_SD.cc.

References SM_Messenger::Instance(), N_SM, SM_Messenger::setSM_SDptr(), SM_Eresol, SM_threshold, and SM_Transform.

Here is the call graph for this function:

SM_SD::~SM_SD (  )

Destructor.

Definition at line 70 of file SM_SD.cc.


Member Function Documentation

void SM_SD::clear (  )

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

Definition at line 202 of file SM_SD.cc.

void SM_SD::DrawAll (  )

Draw all hits.

Definition at line 204 of file SM_SD.cc.

void SM_SD::EndOfEvent ( G4HCofThisEvent *  HCE )
G4double SM_SD::getEresol (  )

Definition at line 222 of file SM_SD.cc.

References SM_Eresol.

G4double SM_SD::getThreshold (  )

Definition at line 217 of file SM_SD.cc.

References SM_threshold.

void SM_SD::Initialize ( G4HCofThisEvent *  HCE )

Initialise the hits collection.

Definition at line 74 of file SM_SD.cc.

References SM_HC.

void SM_SD::PrintAll (  )

Print all hits.

Definition at line 208 of file SM_SD.cc.

References SM_HC.

G4bool SM_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 this detector.

Definition at line 89 of file SM_SD.cc.

References SM_Hit::copyno, SM_Hit::edep, SM_Hit::local, SM_Eresol, SM_HC, SM_LocaltoWorld, SM_threshold, SM_Transform, SM_WorldtoLocal, SM_Hit::time, SM_Hit::tlocal, SM_Hit::trackid, SM_Hit::tworld, and SM_Hit::world.

G4double SM_SD::setEresol ( G4double  res )

Set/Get energy resolution of PMT.

Definition at line 221 of file SM_SD.cc.

References SM_Eresol.

G4double SM_SD::setThreshold ( G4double  thres )

Set/Get energy threshold.

Definition at line 216 of file SM_SD.cc.

References SM_threshold.


Member Data Documentation

G4double SM_SD::SM_Eresol [private]

E resolution.

Definition at line 106 of file SM_SD.h.

Referenced by getEresol(), ProcessHits(), setEresol(), and SM_SD().

Data member consists of a pointer to the hits collection.

Pointer to hits collection.

Definition at line 103 of file SM_SD.h.

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

G4AffineTransform SM_SD::SM_LocaltoWorld[N_SM] [private]

Definition at line 113 of file SM_SD.h.

Referenced by ProcessHits().

G4double SM_SD::SM_threshold [private]

Energy threshold for valid hit.

Definition at line 105 of file SM_SD.h.

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

G4bool SM_SD::SM_Transform[N_SM] [private]

Definition at line 108 of file SM_SD.h.

Referenced by ProcessHits(), and SM_SD().

G4AffineTransform SM_SD::SM_WorldtoLocal[N_SM] [private]

Boolean if transforms defined.

Pointers to transformations.

Definition at line 112 of file SM_SD.h.

Referenced by ProcessHits().


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