1#ifndef SIMCORE_GEO_GDMLPARSER_H
2#define SIMCORE_GEO_GDMLPARSER_H
5#include "G4GDMLParser.hh"
8#include "Framework/Configure/Parameters.h"
11#include "SimCore/Geo/AuxInfoReader.h"
12#include "SimCore/Geo/Parser.h"
15class G4VPhysicalVolume;
76 std::unique_ptr<simcore::geo::AuxInfoReader>
info_;
Class encapsulating parameters for configuring a processor.
Handle to the conditions system, provided at construction to classes which require it.
Parse GDML files, build the geometry in memory and load it into Geant4.
bool validate_
should we take the time to validate
virtual ~GDMLParser()=default
Default destructor.
static Parser * create(framework::config::Parameters ¶meters, simcore::ConditionsInterface &ci)
Create an instance of this parser.
std::unique_ptr< simcore::geo::AuxInfoReader > info_
The auxiliary info reader.
std::string detector_name_
The name of the parsed detector.
std::string getDetectorName() override
Get the name of the parsed detector.
std::string detector_
path to the detector GDML
G4VPhysicalVolume * GetWorldVolume() override
Retrieve the G4VPhysicalVolume associated with the most top-level (world) volume.
void read() override
Parse the detector geometry and read it into memory.
std::unique_ptr< G4GDMLParser > parser_
The GDML parser.
Interface for a parser used to load a geometry into Geant4.