#include "AliSelectorRL.h"
#include <AliLog.h>
-#include <AliRun.h>
#include <AliRunLoader.h>
+#include <TChain.h>
+#include <TFile.h>
+
+//
+// This selector depends on the RunLoader, therefore to use it you have to have the whole AliRoot available
+// The benefit is that you can use the RunLoader to access everything in the data structure
+// If you only have the ESD library use AliSelector instead
+//
+
ClassImp(AliSelectorRL)
AliSelectorRL::AliSelectorRL() :
DeleteRunLoader();
}
-AliRun* AliSelectorRL::GetAliRun()
+AliRunLoader* AliSelectorRL::GetAliRunLoader()
{
// Returns AliRun instance corresponding to current ESD active in fChain
// Loads galice.root, the file is identified by replacing "AliESDs" to
fRunLoader->LoadgAlice();
}
- return fRunLoader->GetAliRun();
+ return fRunLoader;
}
void AliSelectorRL::DeleteRunLoader()
#include "AliSelector.h"
-class AliRun;
class AliRunLoader;
class AliSelectorRL : public AliSelector {
virtual void SlaveTerminate();
protected:
- AliRun* GetAliRun();
+ AliRunLoader* GetAliRunLoader();
private:
void DeleteRunLoader();