52 fCellID(-1), fEdep(0.), fPos(0.), fPLogV(nullptr)
59 fCellID(cellID), fEdep(0.), fPos(0.), fPLogV(nullptr)
71 fCellID(right.fCellID),
83 fCellID = right.fCellID;
87 fPLogV = right.fPLogV;
95 return (fCellID==right.fCellID);
103 if ( ! visManager || (fEdep==0.) )
return;
109 if (pVA) attribs = *pVA;
110 auto rcol = fEdep/(0.7*
GeV);
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",
""));
174 G4cout <<
" Cell[" << fCellID <<
"] " << fEdep/
MeV <<
" (MeV)" <<
G4endl;
virtual ~B5EmCalorimeterHit()
G4ThreadLocal G4Allocator< B5EmCalorimeterHit > * B5EmCalorimeterHitAllocator
static G4VVisManager * GetConcreteInstance()
virtual std::vector< G4AttValue > * CreateAttValues() const
static G4String ConvertToString(G4bool boolVal)
const B5EmCalorimeterHit & operator=(const B5EmCalorimeterHit &right)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
int operator==(const B5EmCalorimeterHit &right) const
HepRotation inverse() const
Definition of the B5EmCalorimeterHit class.
G4GLOB_DLL std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const G4VisAttributes * GetVisAttributes() const
static constexpr double GeV
static constexpr double MeV
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
const G4String & GetName() const