58{
59 auto trajectory = (
LXeTrajectory*) fpTrackingManager->GimmeTrajectory();
60 auto trackInformation =
62
63
64 if(aTrack->GetDefinition() == G4OpticalPhoton::OpticalPhotonDefinition())
65 {
66 const G4VProcess* creator = aTrack->GetCreatorProcess();
67 if(creator && creator->GetProcessName() == "OpWLS")
68 {
69 trajectory->WLS();
70 trajectory->SetDrawTrajectory(true);
71 }
72
74 {
75 if((trackInformation->GetTrackStatus() &
hitPMT) &&
76 (trackInformation->GetTrackStatus() &
hitSphere))
77 {
78 trajectory->SetDrawTrajectory(true);
79 }
80 }
81 else
82 {
83 if(trackInformation->GetTrackStatus() &
hitPMT)
84 trajectory->SetDrawTrajectory(true);
85 }
86 }
87
88 else
89 trajectory->SetDrawTrajectory(true);
90
91 if(trackInformation->GetForceDrawTrajectory())
92 trajectory->SetDrawTrajectory(true);
93}
static G4bool GetSphereOn()