#include <LUCID_SensitiveDetector.h>
Definition at line 21 of file LUCID_SensitiveDetector.h.
◆ LUCID_SensitiveDetector() [1/2]
LUCID_SensitiveDetector::LUCID_SensitiveDetector |
( |
const std::string & |
name, |
|
|
const std::string & |
hitCollectionName |
|
) |
| |
◆ ~LUCID_SensitiveDetector()
LUCID_SensitiveDetector::~LUCID_SensitiveDetector |
( |
| ) |
|
|
inline |
◆ LUCID_SensitiveDetector() [2/2]
◆ AddHit()
template<class... Args>
void LUCID_SensitiveDetector::AddHit |
( |
Args &&... |
args | ) |
|
|
inline |
Templated method to stuff a single hit into the sensitive detector class.
This could get rather tricky, but the idea is to allow fast simulations to use the very same SD classes as the standard simulation.
Definition at line 42 of file LUCID_SensitiveDetector.h.
◆ FRIEND_TEST() [1/3]
LUCID_SensitiveDetector::FRIEND_TEST |
( |
LUCID_SensitiveDetectortest |
, |
|
|
AddHit |
|
|
) |
| |
|
private |
◆ FRIEND_TEST() [2/3]
LUCID_SensitiveDetector::FRIEND_TEST |
( |
LUCID_SensitiveDetectortest |
, |
|
|
Initialize |
|
|
) |
| |
|
private |
◆ FRIEND_TEST() [3/3]
LUCID_SensitiveDetector::FRIEND_TEST |
( |
LUCID_SensitiveDetectortest |
, |
|
|
ProcessHits |
|
|
) |
| |
|
private |
◆ Initialize()
void LUCID_SensitiveDetector::Initialize |
( |
G4HCofThisEvent * |
| ) |
|
|
finaloverride |
◆ operator=()
◆ ProcessHits()
bool LUCID_SensitiveDetector::ProcessHits |
( |
G4Step * |
aStep, |
|
|
G4TouchableHistory * |
|
|
) |
| |
|
finaloverride |
Definition at line 44 of file LUCID_SensitiveDetector.cxx.
48 G4cout <<
"LUCID_SensitiveDetector::ProcessHits - Begin" << G4endl;
50 G4Track* aTrack = aStep->GetTrack();
52 if (aTrack->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition())
return false;
56 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): There is an OpticalPhoton " << G4endl;
59 aTrack->SetTrackStatus(fKillTrackAndSecondaries);
61 if (aTrack->GetCreatorProcess()->GetProcessName() !=
"Cerenkov")
return false;
65 G4cout <<
"LUCID_SensitiveDetector::ProcessHits(): It is from a Cerenkov process " << G4endl;
73 aTrack->GetDefinition()->GetPDGEncoding(),
74 trHelp.GenerateParticleLink(),
◆ m_hit
◆ m_HitColl
The documentation for this class was generated from the following files: