#include <G4PSFlatSurfaceFlux.hh>
Definition at line 62 of file G4PSFlatSurfaceFlux.hh.
◆ G4PSFlatSurfaceFlux() [1/2]
G4PSFlatSurfaceFlux::G4PSFlatSurfaceFlux |
( |
G4String |
name, |
|
|
G4int |
direction, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 60 of file G4PSFlatSurfaceFlux.cc.
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ G4PSFlatSurfaceFlux() [2/2]
Definition at line 69 of file G4PSFlatSurfaceFlux.cc.
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSFlatSurfaceFlux()
G4PSFlatSurfaceFlux::~G4PSFlatSurfaceFlux |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSFlatSurfaceFlux::clear |
( |
void |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSFlatSurfaceFlux::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByArea()
void G4PSFlatSurfaceFlux::DivideByArea |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ DrawAll()
void G4PSFlatSurfaceFlux::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 172 of file G4PSFlatSurfaceFlux.cc.
G4THitsMap< G4double > * EvtMap
G4MultiFunctionalDetector * GetMultiFunctionalDetector() const
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
◆ IsSelectedSurface()
G4int G4PSFlatSurfaceFlux::IsSelectedSurface |
( |
G4Step * |
aStep, |
|
|
G4Box * |
boxSolid |
|
) |
| |
|
protected |
Definition at line 143 of file G4PSFlatSurfaceFlux.cc.
146 aStep->GetPreStepPoint()->GetTouchableHandle();
149 if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
151 G4ThreeVector stppos1= aStep->GetPreStepPoint()->GetPosition();
154 if(std::fabs( localpos1.
z() + boxSolid->
GetZHalfLength())<kCarTolerance ){
159 if (aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary ){
161 G4ThreeVector stppos2= aStep->GetPostStepPoint()->GetPosition();
164 if(std::fabs( localpos2.
z() + boxSolid->
GetZHalfLength())<kCarTolerance ){
G4double GetSurfaceTolerance() const
G4double GetZHalfLength() const
virtual const G4NavigationHistory * GetHistory() const
const G4AffineTransform & GetTopTransform() const
static G4GeometryTolerance * GetInstance()
◆ PrintAll()
void G4PSFlatSurfaceFlux::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 190 of file G4PSFlatSurfaceFlux.cc.
195 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
197 G4cout <<
" copy no.: " << itr->first
G4double GetUnitValue() const
std::map< G4int, T * > * GetMap() const
G4THitsMap< G4double > * EvtMap
G4GLOB_DLL std::ostream G4cout
G4MultiFunctionalDetector * detector
const G4String & GetUnit() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 83 of file G4PSFlatSurfaceFlux.cc.
85 G4StepPoint* preStep = aStep->GetPreStepPoint();
107 G4StepPoint* thisStep=0;
111 thisStep = aStep->GetPostStepPoint();
122 if ( angleFactor < 0 ) angleFactor *= -1.;
124 if (
weighted ) flux *=preStep->GetWeight();
128 flux = flux/angleFactor;
137 <<
index <<
" trk "<<trkid<<
" len " << fFlatSurfaceFlux<<
G4endl;
G4int IsSelectedSurface(G4Step *, G4Box *)
G4int add(const G4int &key, T *&aHit) const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
G4THitsMap< G4double > * EvtMap
G4double GetXHalfLength() const
G4GLOB_DLL std::ostream G4cout
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4int GetIndex(G4Step *)
virtual const G4NavigationHistory * GetHistory() const
G4double GetYHalfLength() const
const G4AffineTransform & GetTopTransform() const
G4LogicalVolume * GetLogicalVolume() const
G4VSolid * GetSolid() const
◆ SetUnit()
void G4PSFlatSurfaceFlux::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 204 of file G4PSFlatSurfaceFlux.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 G4PSFlatSurfaceFlux::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ divideByArea
G4bool G4PSFlatSurfaceFlux::divideByArea |
|
private |
◆ EvtMap
◆ fDirection
G4int G4PSFlatSurfaceFlux::fDirection |
|
private |
◆ HCID
G4int G4PSFlatSurfaceFlux::HCID |
|
private |
◆ weighted
G4bool G4PSFlatSurfaceFlux::weighted |
|
private |
The documentation for this class was generated from the following files: