Public Member Functions | Private Attributes

WC_SD Class Reference

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

#include <WC_SD.h>

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

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

WC_SD::~WC_SD (  )

Destructor.

Definition at line 74 of file WC_SD.cc.


Member Function Documentation

void WC_SD::clear (  )

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

Definition at line 214 of file WC_SD.cc.

void WC_SD::DrawAll (  )

Draw all hits.

Definition at line 216 of file WC_SD.cc.

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

Definition at line 229 of file WC_SD.cc.

References WC_threshold.

G4double WC_SD::getXresol (  )

Definition at line 234 of file WC_SD.cc.

References WC_Xresol.

G4double WC_SD::getYresol (  )

Definition at line 239 of file WC_SD.cc.

References WC_Yresol.

void WC_SD::Initialize ( G4HCofThisEvent *  HCE )

Initialise the hits collection.

Definition at line 78 of file WC_SD.cc.

References WC_HC.

void WC_SD::PrintAll (  )

Print all hits.

Definition at line 220 of file WC_SD.cc.

References WC_HC.

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 )

Set/Get energy threshold.

Definition at line 228 of file WC_SD.cc.

References WC_threshold.

G4double WC_SD::setXresol ( G4double  res )

Set/Get X resolution.

Definition at line 233 of file WC_SD.cc.

References WC_Xresol.

G4double WC_SD::setYresol ( G4double  res )

Set/Get Y resolution.

Definition at line 238 of file WC_SD.cc.

References WC_Yresol.


Member Data Documentation

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


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