Skip to content
Snippets Groups Projects

GeoModelXml - Implement sharing mechanism for LogVol & non FullPhysVols

Merged Johannes Junggeburth requested to merge ShareLogVols into main
2 files
+ 30
42
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -12,24 +12,21 @@
#include <map>
#include "GeoModelXml/ElementProcessor.h"
#include "GeoModelKernel/GeoNameTag.h"
class GmxUtil;
class GeoNameTag;
class GeoLogVol;
class GeoPhysVol;
class LogvolProcessor: public ElementProcessor {
public:
typedef struct {
GeoNameTag *name;
int id;
GeoLogVol *logVol;
bool alignable;
} LogVolStore;
struct LogVolStore {
GeoIntrusivePtr<GeoNameTag> name{};
int id{0};
GeoLogVolPtr logVol{};
bool alignable{false};
} ;
void process(const xercesc::DOMElement *element, GmxUtil &gmxUtil, GeoNodeList &toAdd);
void zeroId(const xercesc::DOMElement *element);
private:
std::map<std::string, LogVolStore> m_map;
std::map<std::string, GeoPhysVol*> m_mapPV;
};
#endif // LOGVOL_PROCESSOR_H
Loading