Hit class to store energy deposited in the sensitive detector. More...
#include <Doxymodules_parameterisations.h>
Public Member Functions | |
Par04Hit () | |
Par04Hit (const Par04Hit &aRight) | |
virtual | ~Par04Hit () |
const Par04Hit & | operator= (const Par04Hit &aRight) |
int | operator== (const Par04Hit &aRight) const |
void * | operator new (size_t) |
void | operator delete (void *aHit) |
virtual void | Draw () final |
Visualise hits. | |
virtual const std::map< G4String, G4AttDef > * | GetAttDefs () const final |
Retrieve atributes' names in order to allow filtering. | |
virtual std::vector< G4AttValue > * | CreateAttValues () const final |
Create attributes for the visualisation. | |
virtual void | Print () final |
Print hit properties. | |
void | SetPos (G4ThreeVector aXYZ) |
Set position. | |
G4ThreeVector | GetPos () const |
Get position. | |
void | SetRot (G4RotationMatrix aXYZ) |
Set rotation. | |
G4RotationMatrix | GetRot () const |
Get rotation. | |
void | SetEdep (G4double aEdep) |
Set energy. | |
void | AddEdep (G4double aEdep) |
Add energy to previous value. | |
G4double | GetEdep () const |
Get energy. | |
void | SetNdep (G4int aNdep) |
Set number of deposits per hit/cell. | |
void | AddNdep (G4int aNdep=1) |
Add number of deposits to previous value, by defualt increment. | |
G4int | GetNdep () const |
Get number of deposits per hit/cell. | |
void | SetZid (G4int aZ) |
Set Z id of the cell in the readout segmentation. | |
G4int | GetZid () const |
Get Z id of the cell in the readout segmentation. | |
void | SetRhoId (G4int aRho) |
Set Rho id of the cell in the readout segmentation. | |
G4int | GetRhoId () const |
Get rho id of the cell in the readout segmentation. | |
void | SetPhiId (G4int aPhi) |
Set phi id of the cell in the readout segmentation. | |
G4int | GetPhiId () const |
Get phi id of the cell in the readout segmentation. | |
void | SetTime (G4double aTime) |
Set time. | |
G4double | GetTime () const |
Get time. | |
void | SetType (G4int aType) |
Set type (0 = full sim, 1 = fast sim) | |
G4int | GetType () const |
Get type (0 = full sim, 1 = fast sim) | |
void | SetLogV (G4LogicalVolume *aLogVol) |
const G4LogicalVolume * | GetLogVol () |
Public Attributes | |
G4double | fEdep = 0 |
Energy deposit. | |
G4int | fNdep = 0 |
Counter of deposits in a hit/cell. | |
G4int | fZId = -1 |
Z ID of readout cell. | |
G4int | fRhoId = -1 |
Rho ID of readout cell. | |
G4int | fPhiId = -1 |
Phi ID of readout cell. | |
G4ThreeVector | fPos = { -1, -1, -1 } |
Position. | |
G4RotationMatrix | fRot |
Rotation. | |
G4double | fTime = -1 |
Time. | |
G4int | fType = -1 |
Type: 0 = full sim, 1 = fast sim. | |
G4LogicalVolume * | fLogVol = nullptr |
Pointer to logical volume for visualisation. | |
Hit class to store energy deposited in the sensitive detector.
Hit class registers position and energy deposited within the sensitive detector. Cell ID is stored using identifiers of readout segmentation (z, phi, rho). Additionally, pointer to cell logical volume, its position and rotation are saved for visualisation purposes. Time allows to filter hits in visualisation. Type of hit allows to distinguish between hits originating from full simulation (type 0) and fast simulation (type 1).
Definition at line 83 of file Doxymodules_parameterisations.h.
Par04Hit::Par04Hit | ( | ) |
Definition at line 53 of file Par04Hit.cc.
Par04Hit::Par04Hit | ( | const Par04Hit & | aRight | ) |
Definition at line 63 of file Par04Hit.cc.
|
virtualdefault |
Definition at line 80 of file Par04Hit.cc.
int Par04Hit::operator== | ( | const Par04Hit & | aRight | ) | const |
|
inline |
Definition at line 149 of file Par04Hit.hh.
|
inline |
Definition at line 156 of file Par04Hit.hh.
|
finalvirtual |
Visualise hits.
If pointer to the logical volume was set, cell shape is drawn taking into account proper radial position (taken from fRhoId)
Arbitrary size corresponds to the example macros
Definition at line 104 of file Par04Hit.cc.
Retrieve atributes' names in order to allow filtering.
Definition at line 144 of file Par04Hit.cc.
|
finalvirtual |
Create attributes for the visualisation.
Definition at line 161 of file Par04Hit.cc.
|
finalvirtual |
Print hit properties.
Definition at line 173 of file Par04Hit.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set number of deposits per hit/cell.
Definition at line 92 of file Par04Hit.hh.
|
inline |
Add number of deposits to previous value, by defualt increment.
Definition at line 94 of file Par04Hit.hh.
|
inline |
|
inline |
Set Z id of the cell in the readout segmentation.
Definition at line 98 of file Par04Hit.hh.
|
inline |
|
inline |
Set Rho id of the cell in the readout segmentation.
Definition at line 102 of file Par04Hit.hh.
|
inline |
|
inline |
Set phi id of the cell in the readout segmentation.
Definition at line 106 of file Par04Hit.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Set type (0 = full sim, 1 = fast sim)
Definition at line 114 of file Par04Hit.hh.
|
inline |
|
inline |
Definition at line 118 of file Par04Hit.hh.
|
inline |
Definition at line 120 of file Par04Hit.hh.
G4double Par04Hit::fEdep = 0 |
Energy deposit.
Definition at line 124 of file Par04Hit.hh.
G4int Par04Hit::fNdep = 0 |
Counter of deposits in a hit/cell.
Definition at line 126 of file Par04Hit.hh.
G4int Par04Hit::fZId = -1 |
Z ID of readout cell.
Definition at line 128 of file Par04Hit.hh.
G4int Par04Hit::fRhoId = -1 |
Rho ID of readout cell.
Definition at line 130 of file Par04Hit.hh.
G4int Par04Hit::fPhiId = -1 |
Phi ID of readout cell.
Definition at line 132 of file Par04Hit.hh.
G4ThreeVector Par04Hit::fPos = { -1, -1, -1 } |
G4RotationMatrix Par04Hit::fRot |
Rotation.
Definition at line 136 of file Par04Hit.hh.
G4double Par04Hit::fTime = -1 |
Time.
Definition at line 138 of file Par04Hit.hh.
G4int Par04Hit::fType = -1 |
Type: 0 = full sim, 1 = fast sim.
Definition at line 140 of file Par04Hit.hh.
G4LogicalVolume* Par04Hit::fLogVol = nullptr |
Pointer to logical volume for visualisation.
Definition at line 142 of file Par04Hit.hh.