VMC Examples Version 6.6
|
The calorimeter sensitive detector. More...
#include <SensitiveDetector.h>
Public Member Functions | |
SensitiveDetector (const char *name) | |
SensitiveDetector (const SensitiveDetector &origin) | |
SensitiveDetector () | |
virtual | ~SensitiveDetector () |
void | Initialize () |
Bool_t | ProcessHits () |
void | EndOfEvent () |
void | Register () |
virtual void | Print (Option_t *option="") const |
void | PrintTotal () const |
void | SetVerboseLevel (Int_t level) |
Hit * | GetHit (Int_t i) const |
TClonesArray * | GetHitsCollection () const |
Return the hits collection. | |
Private Attributes | |
TClonesArray * | fCaloHitsCollection |
Hits collection. | |
Int_t | fCrystalVolId |
The crystal volume Id. | |
Int_t | fVerboseLevel |
Verbosity level. | |
The calorimeter sensitive detector.
Geant4 gflash example adapted to Virtual Monte Carlo.
Definition at line 38 of file SensitiveDetector.h.
VMC::Gflash::SensitiveDetector::SensitiveDetector | ( | const char * | name | ) |
Standard constructor. Create hits collection.
name | The calorimeter name |
Definition at line 39 of file SensitiveDetector.cxx.
VMC::Gflash::SensitiveDetector::SensitiveDetector | ( | const SensitiveDetector & | origin | ) |
Copy constructor (for cloning on worker thread in MT mode). Create hits collection.
origin | The source object (on master). |
Definition at line 50 of file SensitiveDetector.cxx.
VMC::Gflash::SensitiveDetector::SensitiveDetector | ( | ) |
Default constructor
Definition at line 64 of file SensitiveDetector.cxx.
|
virtual |
void VMC::Gflash::SensitiveDetector::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 97 of file SensitiveDetector.cxx.
Bool_t VMC::Gflash::SensitiveDetector::ProcessHits | ( | ) |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 107 of file SensitiveDetector.cxx.
void VMC::Gflash::SensitiveDetector::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 135 of file SensitiveDetector.cxx.
void VMC::Gflash::SensitiveDetector::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 146 of file SensitiveDetector.cxx.
|
virtual |
Print the hits collection.
Definition at line 155 of file SensitiveDetector.cxx.
void VMC::Gflash::SensitiveDetector::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 167 of file SensitiveDetector.cxx.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 72 of file SensitiveDetector.h.
Hit * VMC::Gflash::SensitiveDetector::GetHit | ( | Int_t | i | ) | const |
i | The layer number |
Definition at line 84 of file SensitiveDetector.cxx.
|
inline |
Return the hits collection.
Definition at line 78 of file SensitiveDetector.h.
|
private |
Hits collection.
Definition at line 63 of file SensitiveDetector.h.
|
private |
The crystal volume Id.
Definition at line 64 of file SensitiveDetector.h.
|
private |
Verbosity level.
Definition at line 65 of file SensitiveDetector.h.