Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TargetSD Class Reference

#include <TargetSD.hh>

Inheritance diagram for TargetSD:
Collaboration diagram for TargetSD:

Public Member Functions

 TargetSD (const G4String &)
 
virtual ~TargetSD ()
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void PrintAll ()
 
 TargetSD (const G4String &)
 
virtual ~TargetSD ()
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void PrintAll ()
 
 TargetSD (const G4String &)
 
virtual ~TargetSD ()
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
 TargetSD (const G4String &)
 
virtual ~TargetSD ()
 
void Initialize (G4HCofThisEvent *)
 
G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
void EndOfEvent (G4HCofThisEvent *)
 
void clear ()
 
void PrintAll ()
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (const G4VSensitiveDetector &right)
 
G4int operator== (const G4VSensitiveDetector &right) const
 
G4int operator!= (const G4VSensitiveDetector &right) const
 
virtual void DrawAll ()
 
G4bool Hit (G4Step *aStep)
 
void SetROgeometry (G4VReadOutGeometry *value)
 
void SetFilter (G4VSDFilter *value)
 
G4int GetNumberOfCollections () const
 
G4String GetCollectionName (G4int id) const
 
void SetVerboseLevel (G4int vl)
 
void Activate (G4bool activeFlag)
 
G4bool isActive () const
 
G4String GetName () const
 
G4String GetPathName () const
 
G4String GetFullPathName () const
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 55 of file TargetSD.hh.

Constructor & Destructor Documentation

TargetSD::TargetSD ( const G4String name)

Definition at line 52 of file TargetSD.cc.

53  : G4VSensitiveDetector(name), fRun(0)
54 {}
G4VSensitiveDetector(G4String name)
TargetSD::~TargetSD ( )
virtual

Definition at line 58 of file TargetSD.cc.

59 {}
TargetSD::TargetSD ( const G4String )
virtual TargetSD::~TargetSD ( )
virtual
TargetSD::TargetSD ( const G4String )
virtual TargetSD::~TargetSD ( )
virtual
TargetSD::TargetSD ( const G4String )
virtual TargetSD::~TargetSD ( )
virtual

Member Function Documentation

void TargetSD::clear ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 84 of file TargetSD.cc.

85 {}
void TargetSD::clear ( )
virtual

Reimplemented from G4VSensitiveDetector.

virtual void TargetSD::clear ( )
virtual

Reimplemented from G4VSensitiveDetector.

void TargetSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 79 of file TargetSD.cc.

80 {}
void TargetSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

virtual void TargetSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

virtual void TargetSD::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

void TargetSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 63 of file TargetSD.cc.

64 {
66 }
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
Definition: Run.hh:46
G4Run * GetNonConstCurrentRun() const

Here is the call graph for this function:

void TargetSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

virtual void TargetSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

virtual void TargetSD::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VSensitiveDetector.

void TargetSD::PrintAll ( )
virtual

Reimplemented from G4VSensitiveDetector.

void TargetSD::PrintAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 89 of file TargetSD.cc.

90 {}
virtual void TargetSD::PrintAll ( )
virtual

Reimplemented from G4VSensitiveDetector.

G4bool TargetSD::ProcessHits ( G4Step ,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.

G4bool TargetSD::ProcessHits ( G4Step aStep,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.

Definition at line 70 of file TargetSD.cc.

71 {
72  G4double edep = aStep->GetTotalEnergyDeposit();
73  fRun->AddEnergy(edep, aStep);
74  return true;
75 }
void AddEnergy(G4double edep)
Definition: Run.hh:60
G4double GetTotalEnergyDeposit() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

virtual G4bool TargetSD::ProcessHits ( G4Step ,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.

virtual G4bool TargetSD::ProcessHits ( G4Step ,
G4TouchableHistory  
)
virtual

Implements G4VSensitiveDetector.


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