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

#include <GB05SD.hh>

Inheritance diagram for GB05SD:
Collaboration diagram for GB05SD:

Public Member Functions

 GB05SD (G4String name)
 
virtual ~GB05SD ()
 
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 36 of file GB05SD.hh.

Constructor & Destructor Documentation

GB05SD::GB05SD ( G4String  name)

Definition at line 39 of file GB05SD.cc.

41 {}
G4VSensitiveDetector(G4String name)
virtual GB05SD::~GB05SD ( )
inlinevirtual

Definition at line 40 of file GB05SD.hh.

40 {}

Member Function Documentation

virtual void GB05SD::Initialize ( G4HCofThisEvent )
inlinevirtual

Reimplemented from G4VSensitiveDetector.

Definition at line 42 of file GB05SD.hh.

42 {}
G4bool GB05SD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Implements G4VSensitiveDetector.

Definition at line 45 of file GB05SD.cc.

46 {
47  auto track = step->GetTrack();
48  auto preStepPoint = step->GetPreStepPoint();
49 
50  // -- simply prints few particle characteristics:
51  G4cout << std::setw(14)
52  << track->GetParticleDefinition()->GetParticleName()
53  << ", kinetic energy (MeV) = "
54  << std::setw(12)
55  << preStepPoint->GetKineticEnergy()/MeV
56  << ", position (cm) = "
57  << preStepPoint->GetPosition()/cm
58  << ",\t weight = "
59  << preStepPoint->GetWeight()
60  << G4endl;
61 
62  return true;
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: