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

#include <GB06SD.hh>

Inheritance diagram for GB06SD:
Collaboration diagram for GB06SD:

Public Member Functions

 GB06SD (G4String name)
 
virtual ~GB06SD ()
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 
- 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 EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
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 37 of file GB06SD.hh.

Constructor & Destructor Documentation

GB06SD::GB06SD ( G4String  name)

Definition at line 40 of file GB06SD.cc.

42 {}
G4VSensitiveDetector(G4String name)
virtual GB06SD::~GB06SD ( )
inlinevirtual

Definition at line 41 of file GB06SD.hh.

41 {}

Member Function Documentation

virtual void GB06SD::Initialize ( G4HCofThisEvent )
inlinevirtual

Reimplemented from G4VSensitiveDetector.

Definition at line 43 of file GB06SD.hh.

43 {}
G4bool GB06SD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Implements G4VSensitiveDetector.

Definition at line 46 of file GB06SD.cc.

47 {
48  auto track = step->GetTrack();
49  auto preStepPoint = step->GetPreStepPoint();
50 
51  G4cout << std::setw(14)
52  << track->GetParticleDefinition()->GetParticleName()
53  << ", kinetic energy (MeV) = "
54  << std::setw(12) << preStepPoint->GetKineticEnergy()/MeV
55  << ", position (cm) = "
56  << preStepPoint->GetPosition()/cm
57  << ",\t weight = "
58  << preStepPoint->GetWeight()
59  << G4endl;
60 
61  return true;
62 
63 }
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
Definition: G4SIunits.hh:119
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

Here is the call graph for this function:


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