diff --git a/StarVMC/StarAgmlLib/AgBlock.cxx b/StarVMC/StarAgmlLib/AgBlock.cxx index f6801e47086..5c96915bdef 100644 --- a/StarVMC/StarAgmlLib/AgBlock.cxx +++ b/StarVMC/StarAgmlLib/AgBlock.cxx @@ -98,6 +98,9 @@ void AgBlock::AddGroup( const Char_t *name ) ;//{ mGroups.push_back( name ); } +void AgBlock::AddCut( TString cut, double value ){ mGstpar[cut] = value; } + + // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WHY IS THIS COMMENTED OUT??? void AgBlock::Inherit() { diff --git a/StarVMC/StarAgmlLib/AgBlock.h b/StarVMC/StarAgmlLib/AgBlock.h index 653b60e9510..be59cca0b61 100644 --- a/StarVMC/StarAgmlLib/AgBlock.h +++ b/StarVMC/StarAgmlLib/AgBlock.h @@ -153,7 +153,7 @@ class AgBlock : public TNamed int numberBranches() const { return mNumberBranches; } void branch(){ mNumberBranches++; } - void AddCut( TString cut, double value ){ mGstpar[cut] = value; } + void AddCut( TString cut, double value ); std::map& GetCuts() { return mGstpar; } private: diff --git a/StarVMC/StarAgmlLib/AgMLExtension.cxx b/StarVMC/StarAgmlLib/AgMLExtension.cxx index 5287b9bdb3f..de85e142434 100644 --- a/StarVMC/StarAgmlLib/AgMLExtension.cxx +++ b/StarVMC/StarAgmlLib/AgMLExtension.cxx @@ -13,3 +13,5 @@ AgMLExtension::AgMLExtension() : TGeoRCExtension(), { Grab(); } + +void AgMLExtension::AddCut( TString cut, double value ){ mGstpar[cut] = value; } diff --git a/StarVMC/StarAgmlLib/AgMLExtension.h b/StarVMC/StarAgmlLib/AgMLExtension.h index 3d1d0bbef11..e379749d116 100644 --- a/StarVMC/StarAgmlLib/AgMLExtension.h +++ b/StarVMC/StarAgmlLib/AgMLExtension.h @@ -57,7 +57,7 @@ class AgMLExtension : public TGeoRCExtension { std::vector GetUserHits(){ return mHitScoring; } - void AddCut( TString cut, double value ){ mGstpar[cut] = value; } + void AddCut( TString cut, double value ); std::map& GetCuts() { return mGstpar; } diff --git a/StarVMC/StarAgmlLib/AgModule.cxx b/StarVMC/StarAgmlLib/AgModule.cxx index 95c41d06912..29465ba7618 100644 --- a/StarVMC/StarAgmlLib/AgModule.cxx +++ b/StarVMC/StarAgmlLib/AgModule.cxx @@ -25,6 +25,8 @@ TDataSet *AgModule::Geom() else return mGeomSet; }; +void AgModule::AddHitScoring( TString name, AgMLScoring* sc ){ mHitScoring[name] = sc; } + // --------------------------------------------------------------------------------------------- AgBlock *AgModule::AddBlock( const Char_t *name, AgBlock *_block ) { diff --git a/StarVMC/StarAgmlLib/AgModule.h b/StarVMC/StarAgmlLib/AgModule.h index dd0f3f5a1f6..c69e5a3d61d 100644 --- a/StarVMC/StarAgmlLib/AgModule.h +++ b/StarVMC/StarAgmlLib/AgModule.h @@ -40,7 +40,7 @@ class AgModule : public AgBlock void SetTrackingFlag( int flag ){ mTrackingFlag = flag; } int GetTrackingFlag(){ return mTrackingFlag; } - void AddHitScoring( TString name, AgMLScoring* sc ){ mHitScoring[name] = sc; } + void AddHitScoring( TString name, AgMLScoring* sc ); std::map GetHitScoring(){ return mHitScoring; } private: diff --git a/StarVMC/StarAgmlLib/AgShape.cxx b/StarVMC/StarAgmlLib/AgShape.cxx index 66a0fd26a38..5ca97db14c9 100644 --- a/StarVMC/StarAgmlLib/AgShape.cxx +++ b/StarVMC/StarAgmlLib/AgShape.cxx @@ -626,6 +626,8 @@ Bool_t AgShape::morphed() return true; // No shapes match } +std::vector< TString > &AgShape::parList(){ return mParList[mId]; } + // ============================================================================================================= Bool_t AgShape::parameterized() { diff --git a/StarVMC/StarAgmlLib/AgShape.h b/StarVMC/StarAgmlLib/AgShape.h index 63ab9a840a5..a58c8e9f7e0 100644 --- a/StarVMC/StarAgmlLib/AgShape.h +++ b/StarVMC/StarAgmlLib/AgShape.h @@ -67,7 +67,7 @@ class AgShape : public TNamed, public AgParameterList Bool_t morphed(); /// Return a list of the parameters which define this shape - std::vector< TString > &parList(){ return mParList[mId]; } + std::vector< TString > &parList(); /// Returns true if the shape's parameters are to be set /// when positioned diff --git a/StarVMC/StarAgmlLib/StarAgmlStacker.cxx b/StarVMC/StarAgmlLib/StarAgmlStacker.cxx index 0e1bc6d1c07..a79aebeb2bd 100644 --- a/StarVMC/StarAgmlLib/StarAgmlStacker.cxx +++ b/StarVMC/StarAgmlLib/StarAgmlStacker.cxx @@ -129,6 +129,12 @@ TString StarAgmlStacker::realname( TString nname ) return mRealnames[nname]; } + +const std::vector &StarAgmlStacker::nicknames(const Char_t *name) +{ + return mNicknames[ TString(name) ]; +} + // --------------------------------------------------------------------------------------------------- void StarAgmlStacker::Debug( const Char_t *name, const Char_t *flag ) { diff --git a/StarVMC/StarAgmlLib/StarAgmlStacker.h b/StarVMC/StarAgmlLib/StarAgmlStacker.h index ea323dbaed6..809b6496682 100644 --- a/StarVMC/StarAgmlLib/StarAgmlStacker.h +++ b/StarVMC/StarAgmlLib/StarAgmlStacker.h @@ -35,10 +35,7 @@ class StarAgmlStacker : public TNamed virtual Bool_t SearchVolume( const AgShape &shape, const AgAttribute &attr )=0; - const std::vector &nicknames(const Char_t *name) - { - return mNicknames[ TString(name) ]; - } + const std::vector &nicknames(const Char_t *name); void Debug( const Char_t *name, const Char_t *flag="position" ); diff --git a/mgr/Dyson/Export/AgROOT.py b/mgr/Dyson/Export/AgROOT.py index 314ecc42791..8934d724515 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( const char* name, int value=1 ){ whitelist[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){ whitelist[name]=value; } + TDataSet* StarGeometry::Construct( const char* name ) { std::string tag = name;