#include #include #include using namespace RAT; using namespace RAT::geo; #include #include #include using namespace CLHEP; using namespace std; G4VSolid* Box::Construct( const std::string& name, DBLinkPtr table ) const { const vector size = table->GetDArray( "half_size" ); Log::Assert( size.size() == 3, "Box::Construct: Box half_size is ill-defined." ); return new G4Box( name + "_solid", size[0] * mm, size[1] * mm, size[2] * mm ); }