gROOT->SetMacroPath(macroPath);
}
TString mac(macro);
- if (mac.EqualTo("-default-"))
- mac = "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/dNdetaConfig.C";
+ if (mac.EqualTo("-default-")) mac = DefaultConfig();
const char* config = gSystem->Which(gROOT->GetMacroPath(), mac.Data());
if (!config) {
AliWarningF("%s not found in %s", mac.Data(), gROOT->GetMacroPath());
*
* @return true on success, false otherwise
*/
- virtual Bool_t Configure(const char* macro="dNdetaConfig.C");
+ virtual Bool_t Configure(const char* macro="-default-");
/**
* @{
* @name Set parameters
fCentAxis.GetXbins() &&
fCentAxis.GetXbins()->GetArray());
}
+ /**
+ * Get the name of the default configuration script to use.
+ * Sub-classes can override this to give another default
+ * configuration script. Note, it should problably only return the
+ * base name (not full path) of the script.
+ *
+ * @return Name of the configuration script to use.
+ */
+ virtual const char* DefaultConfig() const { return "dNdetaConfig.C"; }
UInt_t fTriggerMask; // Trigger mask
Double_t fMinIpZ; // Least z--coordiante of interaction point