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

Public Member Functions | |
| A01HadCalorimeterSD (const char *name) | |
| A01HadCalorimeterSD (const A01HadCalorimeterSD &origin) | |
| A01HadCalorimeterSD () | |
| virtual | ~A01HadCalorimeterSD () |
| void | Initialize () |
| Bool_t | ProcessHits () |
| void | EndOfEvent () |
| void | Register () |
| virtual void | Print (Option_t *option="") const |
| void | PrintTotal () const |
| void | SetWriteHits (Bool_t writeHits) |
| void | SetVerboseLevel (Int_t level) |
| A01HadCalorHit * | GetHit (Int_t i) const |
Private Member Functions | |
| void | ResetHits () |
Private Attributes | |
| TClonesArray * | fCalCollection |
| Hits collection. | |
| Int_t | fVolId |
| The calorimeter volume Id. | |
| Bool_t | fWriteHits |
| Option to write hits. | |
| Int_t | fVerboseLevel |
| Verbosity level. | |
Static Private Attributes | |
| static const Int_t | fgkNofColumns = 10 |
| static const Int_t | fgkNofRows = 2 |
The hadron calorimeter sensitive detector.
Definition at line 30 of file A01HadCalorimeterSD.h.
| A01HadCalorimeterSD::A01HadCalorimeterSD | ( | const char * | name | ) |
Standard constructor. Create hits collection and an empty hit for each layer.
| name | The calorimeter hits collection name |
Definition at line 39 of file A01HadCalorimeterSD.cxx.
| A01HadCalorimeterSD::A01HadCalorimeterSD | ( | const A01HadCalorimeterSD & | origin | ) |
Copy constructor (for clonig on worker thread in MT mode). Create hits collection and an empty hit for each layer.
| origin | The source object (on master). |
Definition at line 61 of file A01HadCalorimeterSD.cxx.
| A01HadCalorimeterSD::A01HadCalorimeterSD | ( | ) |
Default constructor
Definition at line 83 of file A01HadCalorimeterSD.cxx.
|
virtual |
| void A01HadCalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 125 of file A01HadCalorimeterSD.cxx.
| Bool_t A01HadCalorimeterSD::ProcessHits | ( | ) |
Account energy deposit for each layer in its hit.
Definition at line 136 of file A01HadCalorimeterSD.cxx.
| void A01HadCalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 187 of file A01HadCalorimeterSD.cxx.
| void A01HadCalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 198 of file A01HadCalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 209 of file A01HadCalorimeterSD.cxx.
| void A01HadCalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 223 of file A01HadCalorimeterSD.cxx.
|
inline |
(In)Activate writing hits on file
| writeHits | The new value of the option |
Definition at line 72 of file A01HadCalorimeterSD.h.
|
inline |
Set verbose level
| level | The new verbose level value |
Definition at line 79 of file A01HadCalorimeterSD.h.
| A01HadCalorHit * A01HadCalorimeterSD::GetHit | ( | Int_t | i | ) | const |
| i | The layer number |
Definition at line 103 of file A01HadCalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 112 of file A01HadCalorimeterSD.cxx.
|
staticprivate |
Definition at line 58 of file A01HadCalorimeterSD.h.
|
staticprivate |
Definition at line 59 of file A01HadCalorimeterSD.h.
|
private |
Hits collection.
Definition at line 62 of file A01HadCalorimeterSD.h.
|
private |
The calorimeter volume Id.
Definition at line 63 of file A01HadCalorimeterSD.h.
|
private |
Option to write hits.
Definition at line 64 of file A01HadCalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 65 of file A01HadCalorimeterSD.h.