VMC Examples Version 6.6
|
The calorimeter sensitive detector. More...
#include <Ex03bCalorimeterSD.h>
Public Member Functions | |
Ex03bCalorimeterSD (const char *name, Ex03DetectorConstruction *detector) | |
Ex03bCalorimeterSD (const Ex03bCalorimeterSD &origin, Ex03DetectorConstruction *detector) | |
Ex03bCalorimeterSD () | |
virtual | ~Ex03bCalorimeterSD () |
void | Initialize () |
virtual void | ProcessHits () |
void | EndOfEvent () |
void | Register () |
virtual void | Print (Option_t *option="") const |
void | PrintTotal () const |
void | SetVerboseLevel (Int_t level) |
void | SetPrintModulo (Int_t value) |
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. | |
Int_t | fPrintModulo |
The event modulus number to be printed. | |
The calorimeter sensitive detector.
A variant of the Ex03CalorimeterSD: a sensitive detector class derived fron the new TVirtualMCSensitiveDetector interface
Definition at line 38 of file Ex03bCalorimeterSD.h.
Ex03bCalorimeterSD::Ex03bCalorimeterSD | ( | 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 Ex03bCalorimeterSD.cxx.
Ex03bCalorimeterSD::Ex03bCalorimeterSD | ( | const Ex03bCalorimeterSD & | 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 61 of file Ex03bCalorimeterSD.cxx.
Ex03bCalorimeterSD::Ex03bCalorimeterSD | ( | ) |
Default constructor
Definition at line 85 of file Ex03bCalorimeterSD.cxx.
|
virtual |
void Ex03bCalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 132 of file Ex03bCalorimeterSD.cxx.
|
virtual |
Account energy deposit and track lengths for each layer in its hit.
Definition at line 149 of file Ex03bCalorimeterSD.cxx.
void Ex03bCalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 179 of file Ex03bCalorimeterSD.cxx.
void Ex03bCalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 194 of file Ex03bCalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 202 of file Ex03bCalorimeterSD.cxx.
void Ex03bCalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 214 of file Ex03bCalorimeterSD.cxx.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 80 of file Ex03bCalorimeterSD.h.
|
inline |
Set the event modulus number to be printed
value | The new event modulus number value |
Definition at line 87 of file Ex03bCalorimeterSD.h.
Ex03CalorHit * Ex03bCalorimeterSD::GetHit | ( | Int_t | i | ) | const |
i | The layer number |
Definition at line 110 of file Ex03bCalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 119 of file Ex03bCalorimeterSD.cxx.
|
private |
The VMC implementation.
Definition at line 67 of file Ex03bCalorimeterSD.h.
|
private |
Detector construction.
Definition at line 68 of file Ex03bCalorimeterSD.h.
|
private |
Hits collection.
Definition at line 69 of file Ex03bCalorimeterSD.h.
|
private |
The absorber volume Id.
Definition at line 70 of file Ex03bCalorimeterSD.h.
|
private |
The gap volume Id.
Definition at line 71 of file Ex03bCalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 72 of file Ex03bCalorimeterSD.h.
|
private |
The event modulus number to be printed.
Definition at line 73 of file Ex03bCalorimeterSD.h.