#include <Doxymodules_optical.h>
Definition at line 93 of file Doxymodules_optical.h.
◆ WLSPhotonDetSD()
WLSPhotonDetSD::WLSPhotonDetSD |
( |
G4String |
name | ) |
|
Definition at line 46 of file WLSPhotonDetSD.cc.
48{
49 collectionName.insert("PhotonDetHitCollection");
50}
◆ ~WLSPhotonDetSD()
WLSPhotonDetSD::~WLSPhotonDetSD |
( |
| ) |
|
|
overridedefault |
◆ Initialize()
Definition at line 54 of file WLSPhotonDetSD.cc.
55{
58
60 {
63 }
65}
G4THitsCollection< WLSPhotonDetHit > WLSPhotonDetHitsCollection
WLSPhotonDetHitsCollection * fPhotonDetHitCollection
◆ ProcessHits()
Definition at line 69 of file WLSPhotonDetSD.cc.
70{
71 if(!aStep)
72 return false;
73 G4Track* theTrack = aStep->GetTrack();
74
75
76 if(theTrack->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition())
77 {
78 return false;
79 }
80
81
82 G4StepPoint* thePostPoint = aStep->GetPostStepPoint();
83
84 auto trackInformation =
86
88
89 G4ThreeVector photonExit = trackInformation->GetExitPosition();
90 G4ThreeVector photonArrive = thePostPoint->GetPosition();
91 G4double arrivalTime = theTrack->GetGlobalTime();
92 G4double energy = theTrack->GetTotalEnergy();
93
94
95
96 photonArrive =
97 theTouchable->GetHistory()->GetTopTransform().TransformPoint(photonArrive);
98
99
102
103 return true;
104}
◆ EndOfEvent()
Definition at line 106 of file WLSPhotonDetSD.cc.
107{
108 if ( verboseLevel>1 ) {
110 G4cout << G4endl
111 << "-------->Hits Collection: in this event there are " << nofHits
112 << " hits in the photon detector: " << G4endl;
114 }
115}
◆ fPhotonDetHitCollection
◆ fHCID
G4int WLSPhotonDetSD::fHCID = -1 |
|
private |
The documentation for this class was generated from the following files: