85 G4String colName =
"PhotonDetHitCollection";
104 n_hit = mppcHC->entries();
107 auto analysisManager = G4AnalysisManager::Instance();
108 analysisManager->FillH1(2, mppcHC->entries());
109 for (
size_t i = 0; i < mppcHC->entries(); ++i) {
110 auto pdHit = (*mppcHC)[i];
111 analysisManager->FillH1(0, pdHit->GetEnergy());
112 analysisManager->FillH1(1, pdHit->GetArrivalTime());
117 G4cout <<
"-------------------------------------" << G4endl
118 <<
" In this event, number of:" << G4endl
119 <<
" TIR: " <<
fNTIR << G4endl
123 <<
" Bounced: " <<
fBounce << G4endl
128 <<
" Escaped: " <<
fEscaped << G4endl
129 <<
" Mirror: " <<
fMirror << G4endl
130 <<
" Detector hit: " << n_hit << G4endl;
133 auto run =
static_cast<WLSRun*
>(
134 G4RunManager::GetRunManager()->GetNonConstCurrentRun());
146 run->AddDetectorHits(n_hit);