#include "OpDetSensitiveDetector.h"
Definition at line 42 of file OpDetSensitiveDetector.h.
larg4::OpDetSensitiveDetector::OpDetSensitiveDetector |
( |
G4String |
name | ) |
|
virtual larg4::OpDetSensitiveDetector::~OpDetSensitiveDetector |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpDetSensitiveDetector::clear |
( |
void |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpDetSensitiveDetector::DrawAll |
( |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpDetSensitiveDetector::EndOfEvent |
( |
G4HCofThisEvent * |
| ) |
|
|
inlinevirtual |
virtual void larg4::OpDetSensitiveDetector::PrintAll |
( |
| ) |
|
|
inlinevirtual |
G4bool larg4::OpDetSensitiveDetector::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
|
|
) |
| |
|
virtual |
Definition at line 39 of file OpDetSensitiveDetector.cxx.
References larg4::OpDetPhotonTable::AddPhoton(), sim::OnePhoton::Energy, sim::OnePhoton::FinalLocalPosition, fTheOpDetLookup, fThePhotonTable, larg4::OpDetLookup::GetOpDet(), sim::OnePhoton::InitialPosition, sim::OnePhoton::SetInSD, and sim::OnePhoton::Time.
49 aStep->GetTrack()->GetVertexPosition().x(),
50 aStep->GetTrack()->GetVertexPosition().y(),
51 aStep->GetTrack()->GetVertexPosition().z()
55 ThePhoton.
Time = aStep->GetTrack()->GetGlobalTime();
58 ThePhoton.
Energy = aStep->GetTrack()->GetVertexKineticEnergy();
61 G4StepPoint *preStepPoint = aStep->GetPreStepPoint();
66 G4ThreeVector worldPosition = preStepPoint->GetPosition();
67 G4ThreeVector localPosition = preStepPoint->GetTouchableHandle()->GetHistory()->GetTopTransform().TransformPoint(worldPosition);
68 ThePhoton.
FinalLocalPosition = TVector3(localPosition.x()/CLHEP::cm, localPosition.y()/CLHEP::cm, localPosition.z()/CLHEP::cm);
75 aStep->GetTrack()->SetTrackStatus(fStopAndKill);
void AddPhoton(size_t opchannel, sim::OnePhoton &&photon)
int GetOpDet(G4VPhysicalVolume *)
OpDetLookup * fTheOpDetLookup
OpDetPhotonTable * fThePhotonTable
TVector3 FinalLocalPosition
OpDetLookup* larg4::OpDetSensitiveDetector::fTheOpDetLookup |
|
private |
The documentation for this class was generated from the following files: