VMC Examples Version 6.6
|
The calorimeter sensitive detector. More...
#include <A01DriftChamberSD.h>
Public Member Functions | |
A01DriftChamberSD (const char *name, const char *volName) | |
A01DriftChamberSD (const A01DriftChamberSD &origin) | |
A01DriftChamberSD () | |
virtual | ~A01DriftChamberSD () |
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) |
A01DriftChamberHit * | 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 A01DriftChamberSD.h.
A01DriftChamberSD::A01DriftChamberSD | ( | const char * | name, |
const char * | volName ) |
Standard constructor. Creates hits collection.
name | The calorimeter hits collection name |
volName | The sensitive volume name |
Definition at line 36 of file A01DriftChamberSD.cxx.
A01DriftChamberSD::A01DriftChamberSD | ( | const A01DriftChamberSD & | origin | ) |
Copy constructor (for clonig on worker thread in MT mode). Creates hits collection.
origin | The source object (on master). |
Definition at line 53 of file A01DriftChamberSD.cxx.
A01DriftChamberSD::A01DriftChamberSD | ( | ) |
Default constructor
Definition at line 69 of file A01DriftChamberSD.cxx.
|
virtual |
void A01DriftChamberSD::Initialize | ( | ) |
Register hits collection in the Root manager; set sensitive volumes.
Definition at line 107 of file A01DriftChamberSD.cxx.
Bool_t A01DriftChamberSD::ProcessHits | ( | ) |
Account the hit time, local and global position for each layer in its hit.
Definition at line 118 of file A01DriftChamberSD.cxx.
void A01DriftChamberSD::EndOfEvent | ( | ) |
Print hits collection (if verbose) and reset hits afterwards.
Definition at line 162 of file A01DriftChamberSD.cxx.
void A01DriftChamberSD::Register | ( | ) |
Register the hits collection in Root manager.
Definition at line 173 of file A01DriftChamberSD.cxx.
|
virtual |
Print the hits collection.
Definition at line 184 of file A01DriftChamberSD.cxx.
|
inline |
(In)Activate writing hits on file
writeHits | The new value of the option |
Definition at line 66 of file A01DriftChamberSD.h.
|
inline |
Set verbose level
level | The new verbose level value |
Definition at line 73 of file A01DriftChamberSD.h.
A01DriftChamberHit * A01DriftChamberSD::GetHit | ( | Int_t | i | ) | const |
i | The layer number |
Definition at line 94 of file A01DriftChamberSD.cxx.
|
private |
Hits collection.
Definition at line 55 of file A01DriftChamberSD.h.
|
private |
The sensitive volume name.
Definition at line 56 of file A01DriftChamberSD.h.
|
private |
The calorimeter volume Id.
Definition at line 57 of file A01DriftChamberSD.h.
|
private |
Option to write hits.
Definition at line 58 of file A01DriftChamberSD.h.
|
private |
Verbosity level.
Definition at line 59 of file A01DriftChamberSD.h.