|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
27 else if ( strncmp(value,
"BUILD_DEFAULT",9)==0 )
29 else if ( strncmp(value,
"BUILD_SIMU",9)==0 )
31 else if ( strcmp(value,
"1")==0 )
33 else if ( strncmp(value,
"BUILD_RECO",9)==0 )
35 else if ( strcmp(value,
"2")==0 )
37 else if ( strncmp(value,
"BUILD_DISPLAY",9)==0 )
39 else if ( strcmp(value,
"3")==0 )
41 else if ( strncmp(value,
"BUILD_ENVELOPE",9)==0 )
43 else if ( strcmp(value,
"4")==0 )
45 throw std::runtime_error(std::string(
"Invalid build type value: ")+value);
59 return "BUILD_DEFAULT";
65 return "BUILD_DISPLAY";
67 return "BUILD_ENVELOPE";
69 throw std::runtime_error(
"Invalid build type value: "+std::to_string(
int(type)));
82 return value.find(
"REC") != std::string::npos;
84 return value.find(
"ENV") != std::string::npos;
86 return value.find(
"DIS") != std::string::npos;
DetectorBuildType buildType(const char *value)
Translate string representation of the geometry build type to value.
bool buildMatch(const std::string &value, DetectorBuildType match)
Check if a build type matches the current.
virtual DetectorBuildType buildType() const =0
Access flag to steer the detail of building of the geometry/detector description.
DetectorBuildType
Detector description build types.
std::string buildTypeName(DetectorBuildType type)
Translate the geometry build type to value to the string representation.
The main interface to the dd4hep detector description package.