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 () |
Bool_t | UpdateFromGarfield () |
void | EndOfEvent () |
void | Register () |
virtual void | Print (Option_t *option="") const |
void | SetVerboseLevel (Int_t level) |
Hit * | GetHit () const |
Return the hits collection. | |
Private Attributes | |
Hit * | fHit |
The detector hit. | |
Int_t | fAbsorberVolId |
The absorber volume Id. | |
Int_t | fGasVolId |
The gas volume Id. | |
Int_t | fVerboseLevel |
Verbosity level. | |
The calorimeter sensitive detector.
Garfield garfieldpp example adapted to Virtual Monte Carlo.
Definition at line 38 of file SensitiveDetector.h.
VMC::ExGarfield::SensitiveDetector::SensitiveDetector | ( | const char * | name | ) |
Standard constructor. Create hits collection.
name | The calorimeter hits collection name |
Definition at line 39 of file SensitiveDetector.cxx.
VMC::ExGarfield::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::ExGarfield::SensitiveDetector::SensitiveDetector | ( | ) |
Default constructor
Definition at line 65 of file SensitiveDetector.cxx.
|
virtual |
Destructor
Definition at line 72 of file SensitiveDetector.cxx.
void VMC::ExGarfield::SensitiveDetector::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 84 of file SensitiveDetector.cxx.
Bool_t VMC::ExGarfield::SensitiveDetector::ProcessHits | ( | ) |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 95 of file SensitiveDetector.cxx.
Bool_t VMC::ExGarfield::SensitiveDetector::UpdateFromGarfield | ( | ) |
Update the collected hit information from Garfield interface
Definition at line 121 of file SensitiveDetector.cxx.
void VMC::ExGarfield::SensitiveDetector::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 141 of file SensitiveDetector.cxx.
void VMC::ExGarfield::SensitiveDetector::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 156 of file SensitiveDetector.cxx.
|
virtual |
Print the hit.
Definition at line 164 of file SensitiveDetector.cxx.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 72 of file SensitiveDetector.h.
|
inline |
|
private |
The detector hit.
Definition at line 62 of file SensitiveDetector.h.
|
private |
The absorber volume Id.
Definition at line 63 of file SensitiveDetector.h.
|
private |
The gas volume Id.
Definition at line 64 of file SensitiveDetector.h.
|
private |
Verbosity level.
Definition at line 65 of file SensitiveDetector.h.