diff --git a/mgr/Dyson/Export/AgROOT.py b/mgr/Dyson/Export/AgROOT.py index 8d393c4a2f..d73c195260 100644 --- a/mgr/Dyson/Export/AgROOT.py +++ b/mgr/Dyson/Export/AgROOT.py @@ -687,7 +687,7 @@ class StarGeometry { /// Construct geometry with the specified tag, and return wrapped in a TDataSet static TDataSet* Construct( const char* name = "%s"); static bool List ( const char* name = "%s"); - static void Whitelist( char* name, int value=1 ){ whitelist[std::string(name)]=value; } + static void Whitelist( const char* name, int value=1 ); static void InitAgML ( const char* stacker="StarTGeoStacker"); StarGeometry(){ /* nada */ }; virtual ~StarGeometry(){ /* nada */ } @@ -718,6 +718,8 @@ class Geometry : public StarGeometry { std::map StarGeometry::whitelist= {{"all",1}}; + void StarGeometry::Whitelist(const char* name, int value=1 ){ whitelist[name]=value; } + TDataSet* StarGeometry::Construct( const char* name ) { std::string tag = name;