#include <G4PSCylinderSurfaceCurrent.hh>
|
| G4PSCylinderSurfaceCurrent (G4String name, G4int direction, G4int depth=0) |
|
| G4PSCylinderSurfaceCurrent (G4String name, G4int direction, const G4String &unit, G4int depth=0) |
|
virtual | ~G4PSCylinderSurfaceCurrent () |
|
void | Weighted (G4bool flg=true) |
|
void | DivideByArea (G4bool flg=true) |
|
virtual void | Initialize (G4HCofThisEvent *) |
|
virtual void | EndOfEvent (G4HCofThisEvent *) |
|
virtual void | clear () |
|
virtual void | DrawAll () |
|
virtual void | PrintAll () |
|
virtual void | SetUnit (const G4String &unit) |
|
| G4VPrimitivePlotter (G4String name, G4int depth=0) |
|
virtual | ~G4VPrimitivePlotter () |
|
void | Plot (G4int copyNo, G4int histID) |
|
G4int | GetNumberOfHist () const |
|
| G4VPrimitiveScorer (G4String name, G4int depth=0) |
|
virtual | ~G4VPrimitiveScorer () |
|
G4int | GetCollectionID (G4int) |
|
virtual void | Initialize (G4HCofThisEvent *) |
|
virtual void | EndOfEvent (G4HCofThisEvent *) |
|
virtual void | clear () |
|
virtual void | DrawAll () |
|
virtual void | PrintAll () |
|
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) |
|
◆ G4PSCylinderSurfaceCurrent() [1/2]
G4PSCylinderSurfaceCurrent::G4PSCylinderSurfaceCurrent |
( |
G4String |
name, |
|
|
G4int |
direction, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 60 of file G4PSCylinderSurfaceCurrent.cc.
63 weighted(true),divideByArea(true)
64{
67}
virtual void SetUnit(const G4String &unit)
virtual void DefineUnitAndCategory()
◆ G4PSCylinderSurfaceCurrent() [2/2]
◆ ~G4PSCylinderSurfaceCurrent()
G4PSCylinderSurfaceCurrent::~G4PSCylinderSurfaceCurrent |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSCylinderSurfaceCurrent::clear |
( |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSCylinderSurfaceCurrent::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByArea()
void G4PSCylinderSurfaceCurrent::DivideByArea |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ DrawAll()
void G4PSCylinderSurfaceCurrent::DrawAll |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
◆ IsSelectedSurface()
G4int G4PSCylinderSurfaceCurrent::IsSelectedSurface |
( |
G4Step * |
aStep, |
|
|
G4Tubs * |
tubsSolid |
|
) |
| |
|
protected |
Definition at line 128 of file G4PSCylinderSurfaceCurrent.cc.
128 {
129
133
135
139 if ( std::fabs(localpos1.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
140 G4double localR2 = localpos1.
x()*localpos1.
x()+localpos1.
y()*localpos1.
y();
145 }
146 }
147
149
153 if ( std::fabs(localpos2.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
154 G4double localR2 = localpos2.
x()*localpos2.
x()+localpos2.
y()*localpos2.
y();
159 }
160 }
161
162 return -1;
163}
const G4double kCarTolerance
G4double GetSurfaceTolerance() const
static G4GeometryTolerance * GetInstance()
const G4AffineTransform & GetTopTransform() const
G4StepStatus GetStepStatus() const
const G4ThreeVector & GetPosition() const
const G4TouchableHandle & GetTouchableHandle() const
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
G4double GetZHalfLength() const
G4double GetInnerRadius() const
virtual const G4NavigationHistory * GetHistory() const
Referenced by ProcessHits().
◆ PrintAll()
void G4PSCylinderSurfaceCurrent::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 182 of file G4PSCylinderSurfaceCurrent.cc.
183{
187 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
188 for(; itr != EvtMap->
GetMap()->end(); itr++) {
189 G4cout <<
" copy no.: " << itr->first
190 << " current : " ;
191 if ( divideByArea ) {
194 } else {
195 G4cout << *(itr->second) <<
" [tracks]";
196 }
198 }
199}
G4GLOB_DLL std::ostream G4cout
const G4String & GetUnit() const
G4double GetUnitValue() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 84 of file G4PSCylinderSurfaceCurrent.cc.
85{
89
91
92 if ( dirFlag > 0 ) {
95
97 if ( weighted ) current = preStep->
GetWeight();
98
99 if ( divideByArea ){
102 current = current/square;
103 }
104
106 EvtMap->
add(index,current);
107
109 {
111 if(!filler)
112 {
114 "G4TScoreHistFiller is not instantiated!! Histogram is not filled.");
115 }
116 else
117 {
119 }
120 }
121 }
122
123 }
124
126}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4int IsSelectedSurface(G4Step *, G4Tubs *)
G4double GetKineticEnergy() const
G4double GetWeight() const
G4double GetDeltaPhiAngle() const
std::map< G4int, G4int > hitIDMap
virtual G4int GetIndex(G4Step *)
G4VSolid * ComputeCurrentSolid(G4Step *aStep)
static G4VScoreHistFiller * Instance()
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSCylinderSurfaceCurrent::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
◆ Weighted()
void G4PSCylinderSurfaceCurrent::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: