#include <G4PSCylinderSurfaceCurrent.hh>
◆ G4PSCylinderSurfaceCurrent() [1/2]
G4PSCylinderSurfaceCurrent::G4PSCylinderSurfaceCurrent |
( |
G4String |
name, |
|
|
G4int |
direction, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 57 of file G4PSCylinderSurfaceCurrent.cc.
virtual void SetUnit(const G4String &unit)
virtual void DefineUnitAndCategory()
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ G4PSCylinderSurfaceCurrent() [2/2]
Definition at line 66 of file G4PSCylinderSurfaceCurrent.cc.
virtual void SetUnit(const G4String &unit)
virtual void DefineUnitAndCategory()
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSCylinderSurfaceCurrent()
G4PSCylinderSurfaceCurrent::~G4PSCylinderSurfaceCurrent |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSCylinderSurfaceCurrent::clear |
( |
void |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSCylinderSurfaceCurrent::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByArea()
void G4PSCylinderSurfaceCurrent::DivideByArea |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ DrawAll()
void G4PSCylinderSurfaceCurrent::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 161 of file G4PSCylinderSurfaceCurrent.cc.
G4int GetCollectionID(G4int)
G4THitsMap< G4double > * EvtMap
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
◆ IsSelectedSurface()
G4int G4PSCylinderSurfaceCurrent::IsSelectedSurface |
( |
G4Step * |
aStep, |
|
|
G4Tubs * |
tubsSolid |
|
) |
| |
|
protected |
Definition at line 124 of file G4PSCylinderSurfaceCurrent.cc.
127 aStep->GetPreStepPoint()->GetTouchableHandle();
130 if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
132 G4ThreeVector stppos1= aStep->GetPreStepPoint()->GetPosition();
135 if ( std::fabs(localpos1.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
136 G4double localR2 = localpos1.
x()*localpos1.
x()+localpos1.
y()*localpos1.
y();
138 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
139 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
144 if (aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary ){
146 G4ThreeVector stppos2= aStep->GetPostStepPoint()->GetPosition();
149 if ( std::fabs(localpos2.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
150 G4double localR2 = localpos2.
x()*localpos2.
x()+localpos2.
y()*localpos2.
y();
152 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
153 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
G4double GetSurfaceTolerance() const
G4double GetZHalfLength() const
virtual const G4NavigationHistory * GetHistory() const
const G4AffineTransform & GetTopTransform() const
G4double GetInnerRadius() const
static G4GeometryTolerance * GetInstance()
◆ PrintAll()
void G4PSCylinderSurfaceCurrent::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 178 of file G4PSCylinderSurfaceCurrent.cc.
183 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
185 G4cout <<
" copy no.: " << itr->first
191 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 80 of file G4PSCylinderSurfaceCurrent.cc.
82 G4StepPoint* preStep = aStep->GetPreStepPoint();
107 if (
weighted ) current = preStep->GetWeight();
112 current = current/square;
G4int add(const G4int &key, T *&aHit) const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4int IsSelectedSurface(G4Step *, G4Tubs *)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
G4double GetZHalfLength() const
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4int GetIndex(G4Step *)
G4THitsMap< G4double > * EvtMap
static const double radian
G4double GetInnerRadius() const
G4LogicalVolume * GetLogicalVolume() const
G4VSolid * GetSolid() const
G4double GetDeltaPhiAngle() const
◆ SetUnit()
void G4PSCylinderSurfaceCurrent::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 197 of file G4PSCylinderSurfaceCurrent.cc.
207 G4Exception(
"G4PSCylinderSurfaceCurrent::SetUnit",
"DetPS0002",
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 G4PSCylinderSurfaceCurrent::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ divideByArea
G4bool G4PSCylinderSurfaceCurrent::divideByArea |
|
private |
◆ EvtMap
◆ fDirection
G4int G4PSCylinderSurfaceCurrent::fDirection |
|
private |
◆ HCID
G4int G4PSCylinderSurfaceCurrent::HCID |
|
private |
◆ weighted
G4bool G4PSCylinderSurfaceCurrent::weighted |
|
private |
The documentation for this class was generated from the following files: