52 fAffineTransformationDefined( false ),
53 fEnvelope ( anEnvelope ),
54 fIsUnique ( IsUnique ),
55 fEnvelopeLogicalVolume ( nullptr ),
56 fEnvelopePhysicalVolume ( nullptr ),
57 fEnvelopeSolid ( nullptr )
85 if (!fAffineTransformationDefined || !fIsUnique) FRecordsAffineTransformation(theNavigator);
99 fLocalTrackDirection = fLocalTrackMomentum.
unit();
111G4FastTrack::FRecordsAffineTransformation(
const G4Navigator* theNavigator)
121 if(theNavigator != 0 ) NavigatorToUse = theNavigator;
130 G4int depth = history->GetHistory()->GetDepth();
131 G4int idepth, Done = 0;
132 for (idepth = 0; idepth <= depth; idepth++)
138 fEnvelopePhysicalVolume = currPV;
139 fEnvelopeLogicalVolume = currLV;
140 fEnvelopeSolid = currLV->
GetSolid();
151 ed <<
"Can't find transformation for `" << fEnvelopePhysicalVolume->
GetName() <<
"'" <<
G4endl;
152 G4Exception(
"G4FastTrack::FRecordsAffineTransformation()",
161 fAffineTransformation = history->GetHistory()->GetTransform(idepth);
162 fInverseAffineTransformation = fAffineTransformation.
Inverse();
164 fAffineTransformationDefined =
true;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4FastTrack(G4Envelope *anEnvelope, G4bool IsUnique)
void SetCurrentTrack(const G4Track &, const G4Navigator *a=0)
G4VSolid * GetSolid() const
G4bool IsRootRegion() const
G4Region * GetRegion() const
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
const G4ThreeVector & GetPosition() const
G4ThreeVector GetMomentum() const
const G4ThreeVector & GetPolarization() const
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const