refactor: introduce PhysicalVolume class and update Geant scene hierarchy to use logical and physical volumes
This commit is contained in:
@@ -76,10 +76,10 @@ public:
|
||||
void SetFromNist(const char *name);
|
||||
|
||||
template <typename Ar>
|
||||
void serialize(Ar &ar) {
|
||||
ar & HRP("name", m_G4Data->GetName());
|
||||
ar & HRP("density", m_G4Data->GetDensity());
|
||||
ar & serialization::make_hrp_enum("state", m_G4Data->GetState(), {"Undefined", "Solid", "Liquid", "Gas"});
|
||||
void serialize(Ar &ar, const unsigned int /*version*/) {
|
||||
ar & HRP("name", std::string(m_G4Data->GetName()));
|
||||
ar & HRP("density", (double)m_G4Data->GetDensity());
|
||||
ar & serialization::make_hrp_enum("state", (int)m_G4Data->GetState(), {"Undefined", "Solid", "Liquid", "Gas"});
|
||||
}
|
||||
|
||||
G4Material *GetG4Material() { return m_G4Data; }
|
||||
|
||||
Reference in New Issue
Block a user