3 #ifndef artg4tk_util_util_hh 4 #define artg4tk_util_util_hh 10 #include "Geant4/G4SDManager.hh" 12 class G4LogicalVolume;
13 class G4VisAttributes;
32 G4SDManager* fSDM = G4SDManager::GetSDMpointer();
33 if ((SDptr = static_cast<T*>(fSDM->FindSensitiveDetector(name))) == NULL)
39 void setVisAtts(G4LogicalVolume* lv,
bool display,
const std::vector<double>& rgba);
42 const std::vector<double>& rgba,
43 std::function<
void(G4VisAttributes*)> func);
51 std::string
basePath(
const std::string& envVar,
const std::string& pkgName);
std::string addNumberToName(const std::string &name, int number)
std::string basePath(const std::string &envVar, const std::string &pkgName)
void setVisAtts(G4LogicalVolume *lv, bool display, const std::vector< double > &rgba)
std::enable_if< std::is_base_of< G4VSensitiveDetector, T >::value, T * >::type getSensitiveDetector(G4String name)