VMC Examples Version 6.6
|
The calorimeter sensitive detector. More...
#include <Ex03cCalorimeterSD.h>
Public Member Functions | |
Ex03cCalorimeterSD (const char *name, Ex03cDetectorConstruction *detector) | |
Ex03cCalorimeterSD (const Ex03cCalorimeterSD &origin, Ex03cDetectorConstruction *detector) | |
Ex03cCalorimeterSD () | |
virtual | ~Ex03cCalorimeterSD () |
void | Initialize () |
Bool_t | ProcessHits () |
void | EndOfEvent () |
void | Register () |
virtual void | Print (Option_t *option="") const |
void | PrintTotal () const |
void | SetVerboseLevel (Int_t level) |
Ex03CalorHit * | GetHit (Int_t i) const |
Private Member Functions | |
void | ResetHits () |
Private Attributes | |
TVirtualMC * | fMC |
The VMC implementation. | |
Ex03cDetectorConstruction * | fDetector |
Detector construction. | |
TClonesArray * | fCalCollection |
Hits collection. | |
Int_t | fAbsorberVolId |
The absorber volume Id. | |
Int_t | fGapVolId |
The gap volume Id. | |
Int_t | fVerboseLevel |
Verbosity level. | |
The calorimeter sensitive detector.
A variant of the Ex03CalorimeterSD class updated for multiple engine runs.
Definition at line 38 of file Ex03cCalorimeterSD.h.
Ex03cCalorimeterSD::Ex03cCalorimeterSD | ( | const char * | name, |
Ex03cDetectorConstruction * | detector ) |
Standard constructor. Create hits collection and an empty hit for each layer As the copy numbers may start from 0 or 1 (depending on geometry model, we create one more layer for this case.)
name | The calorimeter hits collection name |
detector | The detector construction |
Definition at line 38 of file Ex03cCalorimeterSD.cxx.
Ex03cCalorimeterSD::Ex03cCalorimeterSD | ( | const Ex03cCalorimeterSD & | origin, |
Ex03cDetectorConstruction * | detector ) |
Copy constructor (for clonig on worker thread in MT mode). Create hits collection and an empty hit for each layer As the copy numbers may start from 0 or 1 (depending on geometry model, we create one more layer for this case.)
origin | The source object (on master). |
detector | The detector construction |
Definition at line 61 of file Ex03cCalorimeterSD.cxx.
Ex03cCalorimeterSD::Ex03cCalorimeterSD | ( | ) |
Default constructor
Definition at line 84 of file Ex03cCalorimeterSD.cxx.
|
virtual |
void Ex03cCalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 131 of file Ex03cCalorimeterSD.cxx.
Bool_t Ex03cCalorimeterSD::ProcessHits | ( | ) |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 153 of file Ex03cCalorimeterSD.cxx.
void Ex03cCalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 187 of file Ex03cCalorimeterSD.cxx.
void Ex03cCalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 198 of file Ex03cCalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 206 of file Ex03cCalorimeterSD.cxx.
void Ex03cCalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 218 of file Ex03cCalorimeterSD.cxx.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 78 of file Ex03cCalorimeterSD.h.
Ex03CalorHit * Ex03cCalorimeterSD::GetHit | ( | Int_t | i | ) | const |
i | The layer number |
Definition at line 109 of file Ex03cCalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 118 of file Ex03cCalorimeterSD.cxx.
|
private |
The VMC implementation.
Definition at line 66 of file Ex03cCalorimeterSD.h.
|
private |
Detector construction.
Definition at line 67 of file Ex03cCalorimeterSD.h.
|
private |
Hits collection.
Definition at line 68 of file Ex03cCalorimeterSD.h.
|
private |
The absorber volume Id.
Definition at line 69 of file Ex03cCalorimeterSD.h.
|
private |
The gap volume Id.
Definition at line 70 of file Ex03cCalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 71 of file Ex03cCalorimeterSD.h.