The absorber sensitive detector.
More...
#include <SensitiveDetector.h>
The absorber sensitive detector.
- Date
- 18/12/2015
- Author
- I. Hrivnacova; IPN, Orsay
Definition at line 34 of file SensitiveDetector.h.
◆ SensitiveDetector() [1/3]
VMC::TR::SensitiveDetector::SensitiveDetector |
( |
const char * | name | ) |
|
Standard constructor.
- Parameters
-
name | The sensitive detector name |
Definition at line 35 of file SensitiveDetector.cxx.
37{
38
39
40}
Int_t fVerboseLevel
Verbosity level.
Double_t fEdep
Energy deposit.
Int_t fAbsorberVolId
The absorber volume Id.
◆ SensitiveDetector() [2/3]
Copy constructor (for clonig on worker thread in MT mode). Create hits collection.
- Parameters
-
origin | The source object (on master). |
Definition at line 43 of file SensitiveDetector.cxx.
◆ SensitiveDetector() [3/3]
VMC::TR::SensitiveDetector::SensitiveDetector |
( |
| ) |
|
◆ ~SensitiveDetector()
VMC::TR::SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
virtual |
◆ Initialize()
void VMC::TR::SensitiveDetector::Initialize |
( |
| ) |
|
◆ ProcessHits()
Bool_t VMC::TR::SensitiveDetector::ProcessHits |
( |
| ) |
|
Account energy deposit.
Definition at line 80 of file SensitiveDetector.cxx.
81{
82
83
84 Int_t copyNo;
85 Int_t id = gMC->CurrentVolID(copyNo);
86
88
90
91 return true;
92}
◆ EndOfEvent()
void VMC::TR::SensitiveDetector::EndOfEvent |
( |
| ) |
|
Print the enrgy deposit (if verbose) and reset hits afterwards.
Definition at line 95 of file SensitiveDetector.cxx.
96{
97
98
100
101
103}
virtual void Print(Option_t *option="") const
◆ Print()
void VMC::TR::SensitiveDetector::Print |
( |
Option_t * | option = "" | ) |
const |
|
virtual |
Print the energy deposit.
Definition at line 106 of file SensitiveDetector.cxx.
107{
108
109
110 cout <<
"\n-------->Edep: in this event [MeV]: " <<
fEdep * 1e+03 << endl
111 << endl;
112}
◆ SetVerboseLevel()
void VMC::TR::SensitiveDetector::SetVerboseLevel |
( |
Int_t | level | ) |
|
|
inline |
Set verbose level
- Parameters
-
level | The new verbose level value |
Definition at line 65 of file SensitiveDetector.h.
◆ GetEdep()
Double_t VMC::TR::SensitiveDetector::GetEdep |
( |
| ) |
const |
|
inline |
◆ fEdep
Double_t VMC::TR::SensitiveDetector::fEdep |
|
private |
◆ fAbsorberVolId
Int_t VMC::TR::SensitiveDetector::fAbsorberVolId |
|
private |
◆ fVerboseLevel
Int_t VMC::TR::SensitiveDetector::fVerboseLevel |
|
private |
The documentation for this class was generated from the following files: