fCloneList(false),
fCorrManager(0)
{
- SetTitle(title && title[0] != '\0' ? title : this->ClassName());
+ // The line below doesn't actually do the job - when we're
+ // constructing, the derived class ins't set yet and this explicitly
+ // points to an object of _this_ class.
+ // SetTitle(title && title[0] != '\0' ? title : this->ClassName());
+ SetTitle(title && title[0] != '\0' ? title : "");
fCorrManager = manager;
// if (!manager)
// AliFatal("Must pass in a valid correction manager object!");
gROOT->SetMacroPath(macroPath);
}
TString mac(macro);
- if (mac.EqualTo("-default-"))
- mac = "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/ForwardAODConfig.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 false;
}
+ if (fTitle.IsNull()) fTitle = this->ClassName();
AliInfoF("Loading configuration of '%s' from %s", ClassName(), config);
gROOT->Macro(Form("%s((%s*)%p)", config, GetTitle(), this));
*
* @return true on success, false otherwise
*/
- virtual Bool_t Configure(const char* macro="ForwardAODConfig.C");
+ virtual Bool_t Configure(const char* macro="-default-");
/**
* Get a reference to the event inspector. User must override this
* to return proper object
*/
virtual AliESDEvent* GetESDEvent();
+ virtual const char* DefaultConfig() const
+ {
+ return "ForwardAODConfig.C";
+ }
+
// --- Members -----------------------------------------------------
Bool_t fFirstEvent; // Wheter we're waiting for the first event
TList* fList; // Output list