54 fColumnID(-1), fRowID(-1), fEdep(0.), fPos(0)
61 fColumnID(columnID), fRowID(rowID), fEdep(0.), fPos(0)
73 fColumnID(right.fColumnID),
85 fColumnID = right.fColumnID;
86 fRowID = right.fRowID;
97 return (fColumnID==right.fColumnID&&fRowID==right.fRowID);
105 if (! visManager || (fEdep==0.))
return;
111 attribs.SetColour(colour);
112 attribs.SetForceSolid(
true);
114 visManager->Draw(box,attribs,trans);
126 =
G4AttDef(
"HitType",
"Hit Type",
"Physics",
"",
"G4String");
129 =
G4AttDef(
"Column",
"Column ID",
"Physics",
"",
"G4int");
132 =
G4AttDef(
"Row",
"Row ID",
"Physics",
"",
"G4int");
135 =
G4AttDef(
"Energy",
"Energy Deposited",
"Physics",
"G4BestUnit",
139 =
G4AttDef(
"Pos",
"Position",
"Physics",
"G4BestUnit",
149 auto values =
new std::vector<G4AttValue>;
152 ->push_back(
G4AttValue(
"HitType",
"HadCalorimeterHit",
""));
170 G4cout <<
" Cell[" << fRowID <<
", " << fColumnID <<
"] "
171 << fEdep/
MeV <<
" (MeV) " << fPos <<
G4endl;
Definition of the B5DetectorConstruction class.
static G4VVisManager * GetConcreteInstance()
static G4String ConvertToString(G4bool boolVal)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual std::vector< G4AttValue > * CreateAttValues() const
HepRotation inverse() const
G4GLOB_DLL std::ostream G4cout
virtual ~B5HadCalorimeterHit()
static constexpr double m
G4ThreadLocal G4Allocator< B5HadCalorimeterHit > * B5HadCalorimeterHitAllocator
static constexpr double cm
int operator==(const B5HadCalorimeterHit &right) const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static constexpr double GeV
static constexpr double MeV
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
const B5HadCalorimeterHit & operator=(const B5HadCalorimeterHit &right)
Definition of the B5HadCalorimeterHit class.