VMC Examples Version 6.6
|
The calorimeter sensitive detector. More...
#include <Ex03CalorimeterSD.h>
Public Member Functions | |
Ex03CalorimeterSD (const char *name, Ex03DetectorConstruction *detector) | |
Ex03CalorimeterSD (const Ex03CalorimeterSD &origin, Ex03DetectorConstruction *detector) | |
Ex03CalorimeterSD () | |
virtual | ~Ex03CalorimeterSD () |
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. | |
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.
Definition at line 35 of file Ex03CalorimeterSD.h.
Ex03CalorimeterSD::Ex03CalorimeterSD | ( | 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 Ex03CalorimeterSD.cxx.
Ex03CalorimeterSD::Ex03CalorimeterSD | ( | const Ex03CalorimeterSD & | 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 60 of file Ex03CalorimeterSD.cxx.
Ex03CalorimeterSD::Ex03CalorimeterSD | ( | ) |
Default constructor
Definition at line 83 of file Ex03CalorimeterSD.cxx.
|
virtual |
void Ex03CalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 130 of file Ex03CalorimeterSD.cxx.
Bool_t Ex03CalorimeterSD::ProcessHits | ( | ) |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 147 of file Ex03CalorimeterSD.cxx.
void Ex03CalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 181 of file Ex03CalorimeterSD.cxx.
void Ex03CalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 192 of file Ex03CalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 200 of file Ex03CalorimeterSD.cxx.
void Ex03CalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 212 of file Ex03CalorimeterSD.cxx.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 75 of file Ex03CalorimeterSD.h.
Ex03CalorHit * Ex03CalorimeterSD::GetHit | ( | Int_t | i | ) | const |
i | The layer number |
Definition at line 108 of file Ex03CalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 117 of file Ex03CalorimeterSD.cxx.
|
private |
The VMC implementation.
Definition at line 63 of file Ex03CalorimeterSD.h.
|
private |
Detector construction.
Definition at line 64 of file Ex03CalorimeterSD.h.
|
private |
Hits collection.
Definition at line 65 of file Ex03CalorimeterSD.h.
|
private |
The absorber volume Id.
Definition at line 66 of file Ex03CalorimeterSD.h.
|
private |
The gap volume Id.
Definition at line 67 of file Ex03CalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 68 of file Ex03CalorimeterSD.h.