|
VMC Examples Version 6.7
|
The calorimeter sensitive detector. More...
#include <A01HodoscopeSD.h>

Public Member Functions | |
| A01HodoscopeSD (const char *name, const char *volName) | |
| A01HodoscopeSD (const A01HodoscopeSD &origin) | |
| A01HodoscopeSD () | |
| virtual | ~A01HodoscopeSD () |
| void | Initialize () |
| Bool_t | ProcessHits () |
| void | EndOfEvent () |
| void | Register () |
| virtual void | Print (Option_t *option="") const |
| void | SetWriteHits (Bool_t writeHits) |
| void | SetVerboseLevel (Int_t level) |
| A01HodoscopeHit * | GetHit (Int_t i) const |
Private Attributes | |
| TClonesArray * | fHitsCollection |
| Hits collection. | |
| TString | fVolName |
| The sensitive volume Name. | |
| Int_t | fVolId |
| The calorimeter volume Id. | |
| Bool_t | fWriteHits |
| Option to write hits. | |
| Int_t | fVerboseLevel |
| Verbosity level. | |
The calorimeter sensitive detector.
Definition at line 30 of file A01HodoscopeSD.h.
| A01HodoscopeSD::A01HodoscopeSD | ( | const char * | name, |
| const char * | volName ) |
Standard constructor. Create hits collection and an empty hit for each layer.
| name | The calorimeter hits collection name |
| volName | The sensitive volume name |
Definition at line 36 of file A01HodoscopeSD.cxx.
| A01HodoscopeSD::A01HodoscopeSD | ( | const A01HodoscopeSD & | 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 A01HodoscopeSD.cxx.
| A01HodoscopeSD::A01HodoscopeSD | ( | ) |
Default constructor
Definition at line 72 of file A01HodoscopeSD.cxx.
|
virtual |
| void A01HodoscopeSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 110 of file A01HodoscopeSD.cxx.
| Bool_t A01HodoscopeSD::ProcessHits | ( | ) |
Account hit time; create a new hit per detector cell if it does not yet exist
Definition at line 121 of file A01HodoscopeSD.cxx.
| void A01HodoscopeSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 172 of file A01HodoscopeSD.cxx.
| void A01HodoscopeSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 183 of file A01HodoscopeSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 194 of file A01HodoscopeSD.cxx.
|
inline |
(In)Activate writing hits on file
| writeHits | The new value of the option |
Definition at line 66 of file A01HodoscopeSD.h.
|
inline |
Set verbose level
| level | The new verbose level value |
Definition at line 73 of file A01HodoscopeSD.h.
| A01HodoscopeHit * A01HodoscopeSD::GetHit | ( | Int_t | i | ) | const |
| i | The layer number |
Definition at line 97 of file A01HodoscopeSD.cxx.
|
private |
Hits collection.
Definition at line 55 of file A01HodoscopeSD.h.
|
private |
The sensitive volume Name.
Definition at line 56 of file A01HodoscopeSD.h.
|
private |
The calorimeter volume Id.
Definition at line 57 of file A01HodoscopeSD.h.
|
private |
Option to write hits.
Definition at line 58 of file A01HodoscopeSD.h.
|
private |
Verbosity level.
Definition at line 59 of file A01HodoscopeSD.h.