85 G4StepPoint* preStep = aStep->GetPreStepPoint();
108 G4StepPoint* thisStep=0;
112 thisStep = aStep->GetPostStepPoint();
121 G4double localdirL2 = localdir.
x()*localdir.
x()
122 +localdir.
y()*localdir.
y()
123 +localdir.
z()*localdir.
z();
124 G4ThreeVector stppos1= aStep->GetPreStepPoint()->GetPosition();
127 G4double localR2 = localpos1.
x()*localpos1.
x()
128 +localpos1.
y()*localpos1.
y()
129 +localpos1.
z()*localpos1.
z();
130 G4double anglefactor = (localdir.
x()*localpos1.
x()
131 +localdir.
y()*localpos1.
y()
132 +localdir.
z()*localpos1.
z())
133 /std::sqrt(localdirL2)/std::sqrt(localR2);
134 if ( anglefactor < 0.0 ) anglefactor *= -1.0;
140 G4double square = radi*radi*dph*( -std::cos(enth) + std::cos(stth) );
143 if (
weighted ) thisStep->GetWeight();
146 current /= anglefactor;
G4int add(const G4int &key, T *&aHit) const
G4double GetStartThetaAngle() const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4THitsMap< G4double > * EvtMap
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4int GetIndex(G4Step *)
G4int IsSelectedSurface(G4Step *, G4Sphere *)
virtual const G4NavigationHistory * GetHistory() const
G4double GetDeltaPhiAngle() const
G4double GetDeltaThetaAngle() const
const G4AffineTransform & GetTopTransform() const
static const double radian
G4double GetInnerRadius() const
G4LogicalVolume * GetLogicalVolume() const
G4VSolid * GetSolid() const