#include <G4PSPassageCellFlux.hh>
Definition at line 53 of file G4PSPassageCellFlux.hh.
◆ G4PSPassageCellFlux() [1/2]
G4PSPassageCellFlux::G4PSPassageCellFlux |
( |
G4String |
name, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 56 of file G4PSPassageCellFlux.cc.
virtual void SetUnit(const G4String &unit)
G4THitsMap< G4double > * EvtMap
virtual void DefineUnitAndCategory()
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ G4PSPassageCellFlux() [2/2]
Definition at line 64 of file G4PSPassageCellFlux.cc.
virtual void SetUnit(const G4String &unit)
G4THitsMap< G4double > * EvtMap
virtual void DefineUnitAndCategory()
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSPassageCellFlux()
G4PSPassageCellFlux::~G4PSPassageCellFlux |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSPassageCellFlux::clear |
( |
void |
| ) |
|
|
virtual |
◆ ComputeVolume()
G4double G4PSPassageCellFlux::ComputeVolume |
( |
G4Step * |
aStep, |
|
|
G4int |
idx |
|
) |
| |
|
protectedvirtual |
Reimplemented in G4PSPassageCellFluxForCylinder3D.
Definition at line 171 of file G4PSPassageCellFlux.cc.
181 ED <<
"Incorrect replica number --- GetReplicaNumber : " << idx <<
G4endl;
std::ostringstream G4ExceptionDescription
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4double GetCubicVolume()
virtual G4VPVParameterisation * GetParameterisation() const =0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4LogicalVolume * GetLogicalVolume() const
G4VSolid * GetSolid() const
◆ DefineUnitAndCategory()
void G4PSPassageCellFlux::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DrawAll()
void G4PSPassageCellFlux::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 123 of file G4PSPassageCellFlux.cc.
G4THitsMap< G4double > * EvtMap
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
◆ IsPassed()
G4bool G4PSPassageCellFlux::IsPassed |
( |
G4Step * |
aStep | ) |
|
|
protectedvirtual |
Definition at line 93 of file G4PSPassageCellFlux.cc.
96 G4bool IsEnter = aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary;
97 G4bool IsExit = aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary;
99 G4int trkid = aStep->GetTrack()->GetTrackID();
100 G4double trklength = aStep->GetStepLength();
101 if (
weighted ) trklength *= aStep->GetPreStepPoint()->GetWeight();
103 if ( IsEnter &&IsExit ){
106 }
else if ( IsEnter ){
◆ PrintAll()
void G4PSPassageCellFlux::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 144 of file G4PSPassageCellFlux.cc.
149 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
151 G4cout <<
" copy no.: " << itr->first
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 76 of file G4PSPassageCellFlux.cc.
81 (aStep->GetPreStepPoint()->GetTouchable()))
G4int add(const G4int &key, T *&aHit) const
virtual G4int GetIndex(G4Step *)
G4THitsMap< G4double > * EvtMap
virtual G4double ComputeVolume(G4Step *, G4int idx)
virtual G4bool IsPassed(G4Step *)
◆ SetUnit()
void G4PSPassageCellFlux::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
◆ Weighted()
void G4PSPassageCellFlux::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ EvtMap
◆ fCellFlux
◆ fCurrentTrkID
G4int G4PSPassageCellFlux::fCurrentTrkID |
|
private |
◆ HCID
G4int G4PSPassageCellFlux::HCID |
|
private |
◆ weighted
G4bool G4PSPassageCellFlux::weighted |
|
private |
The documentation for this class was generated from the following files: