Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
digits+hits
src
TG4GflashSensitiveDetector.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Geant4 Virtual Monte Carlo package
3
// Copyright (C) 2007 - 2015 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
14
15
#include "
TG4GflashSensitiveDetector.h
"
16
#include "
TG4StepManager.h
"
17
18
#include <TVirtualMCApplication.h>
19
20
//_____________________________________________________________________________
21
TG4GflashSensitiveDetector::TG4GflashSensitiveDetector
(
22
G4String sdName, G4int mediumId)
23
:
TG4SensitiveDetector
(sdName, mediumId)
24
{
26
}
27
28
//_____________________________________________________________________________
29
TG4GflashSensitiveDetector::~TG4GflashSensitiveDetector
()
30
{
32
}
33
34
//
35
// public methods
36
//
37
38
//_____________________________________________________________________________
39
G4bool
TG4GflashSensitiveDetector::ProcessHits
(
40
G4GFlashSpot* gflashSpot, G4TouchableHistory*)
41
{
43
44
// let user sensitive detector process Gflash step
45
fStepManager
->SetStep(gflashSpot,
kGflashSpot
);
46
fMCApplication
->Stepping();
47
48
return
true
;
49
}
TG4GflashSensitiveDetector.h
Definition of the TG4GflashSensitiveDetector class.
TG4StepManager.h
Definition of the TG4StepManager class.
kGflashSpot
@ kGflashSpot
in post step point with Gflash
Definition
TG4StepStatus.h:40
TG4GflashSensitiveDetector::TG4GflashSensitiveDetector
TG4GflashSensitiveDetector()
Not implemented.
TG4GflashSensitiveDetector::~TG4GflashSensitiveDetector
virtual ~TG4GflashSensitiveDetector()
Definition
TG4GflashSensitiveDetector.cxx:29
TG4GflashSensitiveDetector::ProcessHits
virtual G4bool ProcessHits(G4GFlashSpot *gflashSpot, G4TouchableHistory *)
Definition
TG4GflashSensitiveDetector.cxx:39
TG4SensitiveDetector::TG4SensitiveDetector
TG4SensitiveDetector(G4String sdName, G4int mediumID)
Definition
TG4SensitiveDetector.cxx:24
TG4SensitiveDetector::fMCApplication
TVirtualMCApplication * fMCApplication
Cached pointer to thread-local VMC application.
Definition
TG4SensitiveDetector.h:68
TG4SensitiveDetector::fStepManager
TG4StepManager * fStepManager
Cached pointer to thread-local step manager.
Definition
TG4SensitiveDetector.h:66
Generated on
for Geant4 VMC by
1.17.0