#include <G4PSSphereSurfaceCurrent.hh>
Definition at line 58 of file G4PSSphereSurfaceCurrent.hh.
◆ G4PSSphereSurfaceCurrent() [1/2]
G4PSSphereSurfaceCurrent::G4PSSphereSurfaceCurrent |
( |
G4String |
name, |
|
|
G4int |
direction, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 55 of file G4PSSphereSurfaceCurrent.cc.
58 EvtMap(0),weighted(true),divideByArea(true)
59{
62}
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
◆ G4PSSphereSurfaceCurrent() [2/2]
◆ ~G4PSSphereSurfaceCurrent()
G4PSSphereSurfaceCurrent::~G4PSSphereSurfaceCurrent |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSSphereSurfaceCurrent::clear |
( |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSSphereSurfaceCurrent::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByArea()
void G4PSSphereSurfaceCurrent::DivideByArea |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ DrawAll()
void G4PSSphereSurfaceCurrent::DrawAll |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
◆ IsSelectedSurface()
Definition at line 108 of file G4PSSphereSurfaceCurrent.cc.
108 {
109
113
115
119 G4double localR2 = localpos1.
x()*localpos1.
x()
120 +localpos1.
y()*localpos1.
y()
121 +localpos1.
z()*localpos1.
z();
122
123
124
129 }
130 }
131
133
137 G4double localR2 = localpos2.
x()*localpos2.
x()
138 +localpos2.
y()*localpos2.
y()
139 +localpos2.
z()*localpos2.
z();
140
141
142
147 }
148 }
149
150 return -1;
151}
const G4double kCarTolerance
G4double GetSurfaceTolerance() const
static G4GeometryTolerance * GetInstance()
const G4AffineTransform & GetTopTransform() const
G4double GetInnerRadius() const
G4StepStatus GetStepStatus() const
const G4ThreeVector & GetPosition() const
const G4TouchableHandle & GetTouchableHandle() const
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
virtual const G4NavigationHistory * GetHistory() const
Referenced by ProcessHits().
◆ PrintAll()
void G4PSSphereSurfaceCurrent::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 170 of file G4PSSphereSurfaceCurrent.cc.
171{
175 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
176 for(; itr != EvtMap->
GetMap()->end(); itr++) {
177 G4cout <<
" copy no.: " << itr->first <<
" current : " ;
178 if ( divideByArea ) {
181 }else {
182 G4cout << *(itr->second) <<
" [tracks]" ;
183 }
185 }
186}
G4GLOB_DLL std::ostream G4cout
const G4String & GetUnit() const
G4double GetUnitValue() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 78 of file G4PSSphereSurfaceCurrent.cc.
79{
82 assert(
dynamic_cast<G4Sphere*
>(solid) !=
nullptr );
83
85
87 if ( dirFlag > 0 ) {
94 if ( weighted) current = preStep->
GetWeight();
95 if ( divideByArea ){
96 G4double square = radi*radi*dph*( -std::cos(enth) + std::cos(stth) );
97 current = current/square;
98 }
99
101 EvtMap->
add(index,current);
102 }
103 }
104
106}
G4int IsSelectedSurface(G4Step *, G4Sphere *)
G4double GetDeltaPhiAngle() const
G4double GetDeltaThetaAngle() const
G4double GetStartThetaAngle() const
G4double GetWeight() const
virtual G4int GetIndex(G4Step *)
G4VSolid * ComputeCurrentSolid(G4Step *aStep)
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSSphereSurfaceCurrent::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
◆ Weighted()
void G4PSSphereSurfaceCurrent::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: