You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment we have no specific destructors for the Globals, hence I suggest to reimplement it as a SingleTon:
classSetup
{
public:static Setup& getSetup(const Configuration &cfg) {
// either this or make a thread safe version with a few more linesstatic Setup instance(cfg);
return instance;
}
~Setup();
// getters, e.g. const MuonAlgorithm::value muonAlgorithm() const;
...
private:Setup(const Configuration &cfg);
Setup(Setup const&); // Don't Implement.voidoperator=(Setup const&); // Don't implement// all current variables
...
}
Hopefully this will not only hep fix issue #161 but also provide a nicer interface to our global variables.
Please let me know what you think.
The implementation procedure would be simple:
implement Setup to mirror Globals
Use Setup everywhere
Remove Globals
The text was updated successfully, but these errors were encountered:
At the moment we have no specific destructors for the Globals, hence I suggest to reimplement it as a SingleTon:
Hopefully this will not only hep fix issue #161 but also provide a nicer interface to our global variables.
Please let me know what you think.
The implementation procedure would be simple:
Setup
to mirrorGlobals
Setup
everywhereGlobals
The text was updated successfully, but these errors were encountered: