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

#include <G4PSEnergyDeposit3D.hh>

Inheritance diagram for G4PSEnergyDeposit3D:
Collaboration diagram for G4PSEnergyDeposit3D:

Public Member Functions

 G4PSEnergyDeposit3D (G4String name, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
 G4PSEnergyDeposit3D (G4String name, const G4String &unit, G4int ni=1, G4int nj=1, G4int nk=1, G4int depi=2, G4int depj=1, G4int depk=0)
 
virtual ~G4PSEnergyDeposit3D ()
 
- Public Member Functions inherited from G4PSEnergyDeposit
 G4PSEnergyDeposit (G4String name, G4int depth=0)
 
 G4PSEnergyDeposit (G4String name, const G4String &unit, G4int depth=0)
 
virtual ~G4PSEnergyDeposit ()
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
virtual void SetUnit (const G4String &unit)
 
- Public Member Functions inherited from G4VPrimitiveScorer
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()
 
G4int GetCollectionID (G4int)
 
void SetUnit (const G4String &unit)
 
const G4String & GetUnit () const
 
G4double GetUnitValue () const
 
void SetMultiFunctionalDetector (G4MultiFunctionalDetector *d)
 
G4MultiFunctionalDetector * GetMultiFunctionalDetector () const
 
G4String GetName () const
 
void SetFilter (G4VSDFilter *f)
 
G4VSDFilter * GetFilter () const
 
void SetVerboseLevel (G4int vl)
 
G4int GetVerboseLevel () const
 
void SetNijk (G4int i, G4int j, G4int k)
 

Protected Member Functions

virtual G4int GetIndex (G4Step *)
 
- Protected Member Functions inherited from G4PSEnergyDeposit
virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
- Protected Member Functions inherited from G4VPrimitiveScorer
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 

Additional Inherited Members

- Protected Attributes inherited from G4VPrimitiveScorer
G4String primitiveName
 
G4MultiFunctionalDetector * detector
 
G4VSDFilter * filter
 
G4int verboseLevel
 
G4int indexDepth
 
G4String unitName
 
G4double unitValue
 
G4int fNi
 
G4int fNj
 
G4int fNk
 

Detailed Description

Definition at line 43 of file G4PSEnergyDeposit3D.hh.

Constructor & Destructor Documentation

G4PSEnergyDeposit3D::G4PSEnergyDeposit3D ( G4String  name,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  depi = 2,
G4int  depj = 1,
G4int  depk = 0 
)

Definition at line 39 of file G4PSEnergyDeposit3D.cc.

42  :G4PSEnergyDeposit(name),
43  fDepthi(depi),fDepthj(depj),fDepthk(depk)
44 {
45  fNi=ni;
46  fNj=nj;
47  fNk=nk;
48 }
G4PSEnergyDeposit(G4String name, G4int depth=0)
G4PSEnergyDeposit3D::G4PSEnergyDeposit3D ( G4String  name,
const G4String &  unit,
G4int  ni = 1,
G4int  nj = 1,
G4int  nk = 1,
G4int  depi = 2,
G4int  depj = 1,
G4int  depk = 0 
)

Definition at line 50 of file G4PSEnergyDeposit3D.cc.

53  :G4PSEnergyDeposit(name),
54  fDepthi(depi),fDepthj(depj),fDepthk(depk)
55 {
56  fNi=ni;
57  fNj=nj;
58  fNk=nk;
59  SetUnit(unit);
60 }
G4PSEnergyDeposit(G4String name, G4int depth=0)
virtual void SetUnit(const G4String &unit)

Here is the call graph for this function:

G4PSEnergyDeposit3D::~G4PSEnergyDeposit3D ( )
virtual

Definition at line 62 of file G4PSEnergyDeposit3D.cc.

63 {;}

Member Function Documentation

G4int G4PSEnergyDeposit3D::GetIndex ( G4Step *  aStep)
protectedvirtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 65 of file G4PSEnergyDeposit3D.cc.

66 {
67  const G4VTouchable* touchable = aStep->GetPreStepPoint()->GetTouchable();
68  G4int i = touchable->GetReplicaNumber(fDepthi);
69  G4int j = touchable->GetReplicaNumber(fDepthj);
70  G4int k = touchable->GetReplicaNumber(fDepthk);
71 
72 if(i<0||j<0||k<0)
73 {
75  ED << "GetReplicaNumber is negative" << G4endl
76  << "touchable->GetReplicaNumber(fDepthi) returns i,j,k = "
77  << i << "," << j << "," << k << " for volume "
78  << touchable->GetVolume(fDepthi)->GetName() << ","
79  << touchable->GetVolume(fDepthj)->GetName() << ","
80  << touchable->GetVolume(fDepthk)->GetName() << G4endl;
81  G4Exception("G4PSEnergyDeposit3D::GetIndex","DetPS0006",JustWarning,ED);
82 }
83 
84  return i*fNj*fNk+j*fNk+k;
85 }
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
const G4VTouchable * GetTouchable() const
int G4int
Definition: G4Types.hh:78
G4StepPoint * GetPreStepPoint() const
const G4String & GetName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition: G4VTouchable.cc:44
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition: G4VTouchable.cc:58
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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