Drift chamber hit.
More...
#include <Doxymodules_basic.h>
Drift chamber hit.
It records:
- the layer ID
- the particle time
- the particle local and global positions
Definition at line 187 of file Doxymodules_basic.h.
◆ DriftChamberHit() [1/3]
B5::DriftChamberHit::DriftChamberHit |
( |
| ) |
|
|
default |
◆ DriftChamberHit() [2/3]
B5::DriftChamberHit::DriftChamberHit |
( |
G4int |
layerID | ) |
|
◆ DriftChamberHit() [3/3]
◆ ~DriftChamberHit()
B5::DriftChamberHit::~DriftChamberHit |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ operator==()
G4bool B5::DriftChamberHit::operator== |
( |
const DriftChamberHit & |
right | ) |
const |
◆ operator new()
void * B5::DriftChamberHit::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 96 of file DriftChamberHit.hh.
97{
100 }
102}
G4ThreadLocal G4Allocator< DriftChamberHit > * DriftChamberHitAllocator
◆ operator delete()
void B5::DriftChamberHit::operator delete |
( |
void * |
aHit | ) |
|
|
inline |
◆ Draw()
void B5::DriftChamberHit::Draw |
( |
| ) |
|
|
override |
Definition at line 66 of file DriftChamberHit.cc.
67{
68 auto visManager = G4VVisManager::GetConcreteInstance();
69 if (! visManager) return;
70
72 circle.SetScreenSize(2);
73 circle.SetFillStyle(G4Circle::filled);
75 circle.SetVisAttributes(attribs);
76 visManager->Draw(circle);
77}
◆ GetAttDefs()
const std::map< G4String, G4AttDef > * B5::DriftChamberHit::GetAttDefs |
( |
| ) |
const |
|
override |
Definition at line 81 of file DriftChamberHit.cc.
82{
83 G4bool isNew;
84 auto store = G4AttDefStore::GetInstance("DriftChamberHit",isNew);
85
86 if (isNew) {
87 (*store)["HitType"]
88 =
G4AttDef(
"HitType",
"Hit Type",
"Physics",
"",
"G4String");
89
90 (*store)["ID"]
91 =
G4AttDef(
"ID",
"ID",
"Physics",
"",
"G4int");
92
93 (*store)["Time"]
94 =
G4AttDef(
"Time",
"Time",
"Physics",
"G4BestUnit",
"G4double");
95
96 (*store)["Pos"]
97 =
G4AttDef(
"Pos",
"Position",
"Physics",
"G4BestUnit",
"G4ThreeVector");
98 }
99
100 return store;
101}
◆ CreateAttValues()
std::vector< G4AttValue > * B5::DriftChamberHit::CreateAttValues |
( |
| ) |
const |
|
override |
Definition at line 105 of file DriftChamberHit.cc.
106{
107 auto values = new std::vector<G4AttValue>;
108
109 values
110 ->push_back(
G4AttValue(
"HitType",
"DriftChamberHit",
""));
111 values
113 values
115 values
117
118 return values;
119}
◆ Print()
void B5::DriftChamberHit::Print |
( |
| ) |
|
|
override |
◆ SetLayerID()
void B5::DriftChamberHit::SetLayerID |
( |
G4int |
z | ) |
|
|
inline |
◆ GetLayerID()
G4int B5::DriftChamberHit::GetLayerID |
( |
| ) |
const |
|
inline |
◆ SetTime()
void B5::DriftChamberHit::SetTime |
( |
G4double |
t | ) |
|
|
inline |
◆ GetTime()
G4double B5::DriftChamberHit::GetTime |
( |
| ) |
const |
|
inline |
◆ SetLocalPos()
void B5::DriftChamberHit::SetLocalPos |
( |
G4ThreeVector |
xyz | ) |
|
|
inline |
◆ GetLocalPos()
G4ThreeVector B5::DriftChamberHit::GetLocalPos |
( |
| ) |
const |
|
inline |
◆ SetWorldPos()
void B5::DriftChamberHit::SetWorldPos |
( |
G4ThreeVector |
xyz | ) |
|
|
inline |
◆ GetWorldPos()
G4ThreeVector B5::DriftChamberHit::GetWorldPos |
( |
| ) |
const |
|
inline |
◆ fLayerID
G4int B5::DriftChamberHit::fLayerID = -1 |
|
private |
◆ fTime
G4double B5::DriftChamberHit::fTime = 0. |
|
private |
◆ fLocalPos
G4ThreeVector B5::DriftChamberHit::fLocalPos |
|
private |
◆ fWorldPos
G4ThreeVector B5::DriftChamberHit::fWorldPos |
|
private |
The documentation for this class was generated from the following files: