|
VMC Examples Version 6.8
|
The calorimeter sensitive detector. More...
#include <Ex03dCalorimeterSD.h>

Public Member Functions | |
| Ex03dCalorimeterSD (const char *name, Ex03DetectorConstruction *detector) | |
| Ex03dCalorimeterSD (const Ex03dCalorimeterSD &origin, Ex03DetectorConstruction *detector) | |
| Ex03dCalorimeterSD () | |
| virtual | ~Ex03dCalorimeterSD () |
| 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. | |
| Ex03DetectorConstruction * | fDetector |
| Detector construction. | |
| std::vector< Ex03CalorHit > * | fCalCollection |
| Int_t | fAbsorberVolId |
| < The vector of particle (persistent) | |
| Int_t | fGapVolId |
| The gap volume Id. | |
| Int_t | fVerboseLevel |
| Verbosity level. | |
The calorimeter sensitive detector.
A variant of the Ex03CalorimeterSD class updated for RNTuple output.
Definition at line 39 of file Ex03dCalorimeterSD.h.
| Ex03dCalorimeterSD::Ex03dCalorimeterSD | ( | const char * | name, |
| Ex03DetectorConstruction * | 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 37 of file Ex03dCalorimeterSD.cxx.
| Ex03dCalorimeterSD::Ex03dCalorimeterSD | ( | const Ex03dCalorimeterSD & | origin, |
| Ex03DetectorConstruction * | 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 58 of file Ex03dCalorimeterSD.cxx.
| Ex03dCalorimeterSD::Ex03dCalorimeterSD | ( | ) |
Default constructor
Definition at line 79 of file Ex03dCalorimeterSD.cxx.
|
virtual |
Destructor
Definition at line 86 of file Ex03dCalorimeterSD.cxx.
| void Ex03dCalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 119 of file Ex03dCalorimeterSD.cxx.
| Bool_t Ex03dCalorimeterSD::ProcessHits | ( | ) |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 135 of file Ex03dCalorimeterSD.cxx.
| void Ex03dCalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 169 of file Ex03dCalorimeterSD.cxx.
| void Ex03dCalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 180 of file Ex03dCalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 189 of file Ex03dCalorimeterSD.cxx.
| void Ex03dCalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 201 of file Ex03dCalorimeterSD.cxx.
|
inline |
Set verbose level
| level | The new verbose level value |
Definition at line 81 of file Ex03dCalorimeterSD.h.
| Ex03CalorHit * Ex03dCalorimeterSD::GetHit | ( | Int_t | i | ) | const |
| i | The layer number |
Definition at line 98 of file Ex03dCalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 107 of file Ex03dCalorimeterSD.cxx.
|
private |
The VMC implementation.
Definition at line 67 of file Ex03dCalorimeterSD.h.
|
private |
Detector construction.
Definition at line 68 of file Ex03dCalorimeterSD.h.
|
private |
Definition at line 69 of file Ex03dCalorimeterSD.h.
|
private |
< The vector of particle (persistent)
The absorber volume Id
Definition at line 72 of file Ex03dCalorimeterSD.h.
|
private |
The gap volume Id.
Definition at line 73 of file Ex03dCalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 74 of file Ex03dCalorimeterSD.h.