52 fCellID(-1), fEdep(0.), fPos(0.), fPLogV(nullptr)
59 fCellID(cellID), fEdep(0.), fPos(0.), fPLogV(nullptr)
71 fCellID(right.fCellID),
103 if ( ! visManager || (
fEdep==0.) )
return;
109 if (pVA) attribs = *pVA;
111 if (rcol>1.) rcol = 1.;
112 if (rcol<0.4) rcol = 0.4;
114 attribs.SetColour(colour);
115 attribs.SetForceSolid(
true);
116 visManager->Draw(*
fPLogV,attribs,trans);
128 =
G4AttDef(
"HitType",
"Hit Type",
"Physics",
"",
"G4String");
131 =
G4AttDef(
"ID",
"ID",
"Physics",
"",
"G4int");
134 =
G4AttDef(
"Energy",
"Energy Deposited",
"Physics",
"G4BestUnit",
138 =
G4AttDef(
"Pos",
"Position",
"Physics",
"G4BestUnit",
142 =
G4AttDef(
"LVol",
"Logical Volume",
"Physics",
"",
"G4String");
151 auto values =
new std::vector<G4AttValue>;
154 ->push_back(
G4AttValue(
"HitType",
"EmCalorimeterHit",
""));
virtual std::vector< G4AttValue > * CreateAttValues() const
static constexpr double MeV
int operator==(const B5EmCalorimeterHit &right) const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4ThreadLocal G4Allocator< B5EmCalorimeterHit > * B5EmCalorimeterHitAllocator
static G4VVisManager * GetConcreteInstance()
virtual ~B5EmCalorimeterHit()
const G4VisAttributes * GetVisAttributes() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
const B5EmCalorimeterHit & operator=(const B5EmCalorimeterHit &right)
static G4String ConvertToString(G4bool boolVal)
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
G4GLOB_DLL std::ostream G4cout
static constexpr double GeV
HepRotation inverse() const
const G4LogicalVolume * fPLogV
const G4String & GetName() const
Definition of the B5EmCalorimeterHit class.