Hadron Calorimeter hit.
More...
#include <Doxymodules_basic.h>
Hadron Calorimeter hit.
It records:
- the cell column ID and row ID
- the energy deposit
- the cell position and rotation
Definition at line 192 of file Doxymodules_basic.h.
◆ HadCalorimeterHit() [1/3]
B5::HadCalorimeterHit::HadCalorimeterHit |
( |
| ) |
|
|
default |
◆ HadCalorimeterHit() [2/3]
B5::HadCalorimeterHit::HadCalorimeterHit |
( |
G4int |
iCol, |
|
|
G4int |
iRow |
|
) |
| |
◆ HadCalorimeterHit() [3/3]
◆ ~HadCalorimeterHit()
B5::HadCalorimeterHit::~HadCalorimeterHit |
( |
| ) |
|
|
overridedefault |
◆ operator=()
◆ operator==()
◆ operator new()
void * B5::HadCalorimeterHit::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 101 of file HadCalorimeterHit.hh.
102{
105 }
107}
G4ThreadLocal G4Allocator< HadCalorimeterHit > * HadCalorimeterHitAllocator
◆ operator delete()
void B5::HadCalorimeterHit::operator delete |
( |
void * |
aHit | ) |
|
|
inline |
◆ Draw()
void B5::HadCalorimeterHit::Draw |
( |
| ) |
|
|
override |
Definition at line 67 of file HadCalorimeterHit.cc.
68{
69 auto visManager = G4VVisManager::GetConcreteInstance();
70 if (! visManager || (
fEdep==0.))
return;
71
72
73 G4Transform3D trans(
fRot.inverse(),
fPos);
75 attribs.SetColour(G4Colour::Red());
76 attribs.SetForceSolid(true);
77 G4Box box(
"dummy",15.*cm,15.*cm,1.*m*
fEdep/(0.1*GeV));
78 visManager->Draw(box,attribs,trans);
79}
◆ GetAttDefs()
const std::map< G4String, G4AttDef > * B5::HadCalorimeterHit::GetAttDefs |
( |
| ) |
const |
|
override |
Definition at line 83 of file HadCalorimeterHit.cc.
84{
85 G4bool isNew;
86 auto store = G4AttDefStore::GetInstance("HadCalorimeterHit",isNew);
87
88 if (isNew) {
89 (*store)["HitType"]
90 =
G4AttDef(
"HitType",
"Hit Type",
"Physics",
"",
"G4String");
91
92 (*store)["Column"]
93 =
G4AttDef(
"Column",
"Column ID",
"Physics",
"",
"G4int");
94
95 (*store)["Row"]
96 =
G4AttDef(
"Row",
"Row ID",
"Physics",
"",
"G4int");
97
98 (*store)["Energy"]
99 =
G4AttDef(
"Energy",
"Energy Deposited",
"Physics",
"G4BestUnit",
100 "G4double");
101
102 (*store)["Pos"]
103 =
G4AttDef(
"Pos",
"Position",
"Physics",
"G4BestUnit",
104 "G4ThreeVector");
105 }
106 return store;
107}
◆ CreateAttValues()
std::vector< G4AttValue > * B5::HadCalorimeterHit::CreateAttValues |
( |
| ) |
const |
|
override |
Definition at line 111 of file HadCalorimeterHit.cc.
112{
113 auto values = new std::vector<G4AttValue>;
114
115 values
116 ->push_back(
G4AttValue(
"HitType",
"HadCalorimeterHit",
""));
117 values
119 ""));
120 values
122 values
124 values
126
127 return values;
128}
◆ Print()
void B5::HadCalorimeterHit::Print |
( |
| ) |
|
|
override |
◆ SetColumnID()
void B5::HadCalorimeterHit::SetColumnID |
( |
G4int |
z | ) |
|
|
inline |
◆ GetColumnID()
G4int B5::HadCalorimeterHit::GetColumnID |
( |
| ) |
const |
|
inline |
◆ SetRowID()
void B5::HadCalorimeterHit::SetRowID |
( |
G4int |
z | ) |
|
|
inline |
◆ GetRowID()
G4int B5::HadCalorimeterHit::GetRowID |
( |
| ) |
const |
|
inline |
◆ SetEdep()
void B5::HadCalorimeterHit::SetEdep |
( |
G4double |
de | ) |
|
|
inline |
◆ AddEdep()
void B5::HadCalorimeterHit::AddEdep |
( |
G4double |
de | ) |
|
|
inline |
◆ GetEdep()
G4double B5::HadCalorimeterHit::GetEdep |
( |
| ) |
const |
|
inline |
◆ SetPos()
void B5::HadCalorimeterHit::SetPos |
( |
G4ThreeVector |
xyz | ) |
|
|
inline |
◆ GetPos()
G4ThreeVector B5::HadCalorimeterHit::GetPos |
( |
| ) |
const |
|
inline |
◆ SetRot()
void B5::HadCalorimeterHit::SetRot |
( |
G4RotationMatrix |
rmat | ) |
|
|
inline |
◆ GetRot()
G4RotationMatrix B5::HadCalorimeterHit::GetRot |
( |
| ) |
const |
|
inline |
◆ fColumnID
G4int B5::HadCalorimeterHit::fColumnID = -1 |
|
private |
◆ fRowID
G4int B5::HadCalorimeterHit::fRowID = -1 |
|
private |
◆ fEdep
G4double B5::HadCalorimeterHit::fEdep = 0. |
|
private |
◆ fPos
G4ThreeVector B5::HadCalorimeterHit::fPos |
|
private |
◆ fRot
G4RotationMatrix B5::HadCalorimeterHit::fRot |
|
private |
The documentation for this class was generated from the following files: