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

Public Member Functions | |
| A01EmCalorimeterSD (const char *name) | |
| A01EmCalorimeterSD (const A01EmCalorimeterSD &origin) | |
| A01EmCalorimeterSD () | |
| virtual | ~A01EmCalorimeterSD () |
| 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) |
| A01EmCalorHit * | 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 = 20 |
| static const Int_t | fgkNofRows = 4 |
The EM calorimeter sensitive detector.
Definition at line 30 of file A01EmCalorimeterSD.h.
| A01EmCalorimeterSD::A01EmCalorimeterSD | ( | const char * | name | ) |
Standard constructor. Create hits collection and an empty hit for each layer.
| name | The calorimeter hits collection name |
Definition at line 37 of file A01EmCalorimeterSD.cxx.
| A01EmCalorimeterSD::A01EmCalorimeterSD | ( | const A01EmCalorimeterSD & | 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 55 of file A01EmCalorimeterSD.cxx.
| A01EmCalorimeterSD::A01EmCalorimeterSD | ( | ) |
Default constructor
Definition at line 73 of file A01EmCalorimeterSD.cxx.
|
virtual |
| void A01EmCalorimeterSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 106 of file A01EmCalorimeterSD.cxx.
| Bool_t A01EmCalorimeterSD::ProcessHits | ( | ) |
Account energy deposit for each layer in its hit.
Definition at line 117 of file A01EmCalorimeterSD.cxx.
| void A01EmCalorimeterSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 167 of file A01EmCalorimeterSD.cxx.
| void A01EmCalorimeterSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 178 of file A01EmCalorimeterSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 189 of file A01EmCalorimeterSD.cxx.
| void A01EmCalorimeterSD::PrintTotal | ( | ) | const |
Print the total values for all layers.
Definition at line 203 of file A01EmCalorimeterSD.cxx.
|
inline |
(In)Activate writing hits on file
| writeHits | The new value of the option |
Definition at line 72 of file A01EmCalorimeterSD.h.
|
inline |
Set verbose level
| level | The new verbose level value |
Definition at line 79 of file A01EmCalorimeterSD.h.
| A01EmCalorHit * A01EmCalorimeterSD::GetHit | ( | Int_t | i | ) | const |
| i | The layer number |
Definition at line 221 of file A01EmCalorimeterSD.cxx.
|
private |
Reset all hits in the hits collection.
Definition at line 93 of file A01EmCalorimeterSD.cxx.
|
staticprivate |
Definition at line 58 of file A01EmCalorimeterSD.h.
|
staticprivate |
Definition at line 59 of file A01EmCalorimeterSD.h.
|
private |
Hits collection.
Definition at line 62 of file A01EmCalorimeterSD.h.
|
private |
The calorimeter volume Id.
Definition at line 63 of file A01EmCalorimeterSD.h.
|
private |
Option to write hits.
Definition at line 64 of file A01EmCalorimeterSD.h.
|
private |
Verbosity level.
Definition at line 65 of file A01EmCalorimeterSD.h.