61 weighted(true),divideByArea(true)
72 weighted(true),divideByArea(true)
123 G4double angleFactor = (localdir.
x()*localpos.
x()+localdir.
y()*localpos.
y())
124 /std::sqrt(localdir.
x()*localdir.
x()
125 +localdir.
y()*localdir.
y()+localdir.
z()*localdir.
z())
126 /std::sqrt(localpos.
x()*localpos.
x()+localpos.
y()*localpos.
y());
128 if ( angleFactor < 0 ) angleFactor *= -1.;
136 flux = flux/angleFactor;
161 if ( std::fabs(localpos1.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
165 G4double localR2 = localpos1.
x()*localpos1.
x()+localpos1.
y()*localpos1.
y();
167 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
168 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
178 if ( std::fabs(localpos2.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
182 G4double localR2 = localpos2.
x()*localpos2.
x()+localpos2.
y()*localpos2.
y();
184 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
185 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
216 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
218 G4cout <<
" copy no.: " << itr->first
const G4String & GetUnit() const
virtual ~G4PSCylinderSurfaceFlux()
const G4VTouchable * GetTouchable() const
G4int GetCollectionID(G4int)
G4LogicalVolume * GetLogicalVolume() const
G4StepPoint * GetPreStepPoint() const
static constexpr double m2
G4int add(const G4int &key, U *&aHit) const
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4VPhysicalVolume * GetPhysicalVolume() const
const G4double kCarTolerance
G4double GetDeltaPhiAngle() const
virtual G4int GetIndex(G4Step *)
G4int IsSelectedSurface(G4Step *, G4Tubs *)
const G4TouchableHandle & GetTouchableHandle() const
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
G4MultiFunctionalDetector * GetMultiFunctionalDetector() const
G4THitsMap< G4double > * EvtMap
G4StepStatus GetStepStatus() const
static constexpr double cm2
G4double GetInnerRadius() const
const G4ThreeVector & GetPosition() const
virtual void Initialize(G4HCofThisEvent *)
static constexpr double mm2
const G4AffineTransform & GetTopTransform() const
const G4ThreeVector & GetMomentumDirection() const
G4StepPoint * GetPostStepPoint() const
G4double GetZHalfLength() const
G4PSCylinderSurfaceFlux(G4String name, G4int direction, G4int depth=0)
void CheckAndSetUnit(const G4String &unit, const G4String &category)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual void EndOfEvent(G4HCofThisEvent *)
static constexpr double radian
G4GLOB_DLL std::ostream G4cout
G4VSolid * GetSolid() const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4double GetWeight() const
static G4GeometryTolerance * GetInstance()
G4MultiFunctionalDetector * detector
G4double GetUnitValue() const
virtual const G4NavigationHistory * GetHistory() const
virtual void DefineUnitAndCategory()
G4double GetSurfaceTolerance() const
virtual void SetUnit(const G4String &unit)