#include <G4PSSphereSurfaceCurrent.hh>
Definition at line 59 of file G4PSSphereSurfaceCurrent.hh.
◆ G4PSSphereSurfaceCurrent() [1/2]
G4PSSphereSurfaceCurrent::G4PSSphereSurfaceCurrent |
( |
G4String |
name, |
|
|
G4int |
direction, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 56 of file G4PSSphereSurfaceCurrent.cc.
virtual void SetUnit(const G4String &unit)
virtual void DefineUnitAndCategory()
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ G4PSSphereSurfaceCurrent() [2/2]
Definition at line 65 of file G4PSSphereSurfaceCurrent.cc.
virtual void SetUnit(const G4String &unit)
virtual void DefineUnitAndCategory()
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSSphereSurfaceCurrent()
G4PSSphereSurfaceCurrent::~G4PSSphereSurfaceCurrent |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSSphereSurfaceCurrent::clear |
( |
void |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSSphereSurfaceCurrent::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByArea()
void G4PSSphereSurfaceCurrent::DivideByArea |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ DrawAll()
void G4PSSphereSurfaceCurrent::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 166 of file G4PSSphereSurfaceCurrent.cc.
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4THitsMap< G4double > * EvtMap
G4MultiFunctionalDetector * detector
◆ IsSelectedSurface()
G4int G4PSSphereSurfaceCurrent::IsSelectedSurface |
( |
G4Step * |
aStep, |
|
|
G4Sphere * |
sphereSolid |
|
) |
| |
|
protected |
Definition at line 121 of file G4PSSphereSurfaceCurrent.cc.
124 aStep->GetPreStepPoint()->GetTouchableHandle();
127 if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
129 G4ThreeVector stppos1= aStep->GetPreStepPoint()->GetPosition();
132 G4double localR2 = localpos1.
x()*localpos1.
x()
133 +localpos1.
y()*localpos1.
y()
134 +localpos1.
z()*localpos1.
z();
139 if ( localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
140 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
145 if (aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary ){
147 G4ThreeVector stppos2= aStep->GetPostStepPoint()->GetPosition();
150 G4double localR2 = localpos2.
x()*localpos2.
x()
151 +localpos2.
y()*localpos2.
y()
152 +localpos2.
z()*localpos2.
z();
157 if ( localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
158 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
G4double GetSurfaceTolerance() const
virtual const G4NavigationHistory * GetHistory() const
const G4AffineTransform & GetTopTransform() const
G4double GetInnerRadius() const
static G4GeometryTolerance * GetInstance()
◆ PrintAll()
void G4PSSphereSurfaceCurrent::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 183 of file G4PSSphereSurfaceCurrent.cc.
188 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
190 G4cout <<
" copy no.: " << itr->first <<
" current : " ;
195 G4cout << *(itr->second) <<
" [tracks]" ;
G4double GetUnitValue() const
std::map< G4int, T * > * GetMap() const
G4GLOB_DLL std::ostream G4cout
G4THitsMap< G4double > * EvtMap
G4MultiFunctionalDetector * detector
const G4String & GetUnit() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 79 of file G4PSSphereSurfaceCurrent.cc.
81 G4StepPoint* preStep = aStep->GetPreStepPoint();
107 if (
weighted) current = preStep->GetWeight();
109 G4double square = radi*radi*dph*( -std::cos(enth) + std::cos(stth) );
110 current = current/square;
G4int add(const G4int &key, T *&aHit) const
G4double GetStartThetaAngle() const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4int GetIndex(G4Step *)
G4double GetDeltaPhiAngle() const
G4double GetDeltaThetaAngle() const
G4THitsMap< G4double > * EvtMap
static const double radian
G4int IsSelectedSurface(G4Step *, G4Sphere *)
G4double GetInnerRadius() const
G4LogicalVolume * GetLogicalVolume() const
G4VSolid * GetSolid() const
◆ SetUnit()
void G4PSSphereSurfaceCurrent::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 202 of file G4PSSphereSurfaceCurrent.cc.
void CheckAndSetUnit(const G4String &unit, const G4String &category)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetUnit() const
◆ Weighted()
void G4PSSphereSurfaceCurrent::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ divideByArea
G4bool G4PSSphereSurfaceCurrent::divideByArea |
|
private |
◆ EvtMap
◆ fDirection
G4int G4PSSphereSurfaceCurrent::fDirection |
|
private |
◆ HCID
G4int G4PSSphereSurfaceCurrent::HCID |
|
private |
◆ weighted
G4bool G4PSSphereSurfaceCurrent::weighted |
|
private |
The documentation for this class was generated from the following files: