fContainers(NULL),
fInputs(NULL),
fOutputs(NULL),
+ fCommonInput(NULL),
+ fCommonOutput(NULL),
fSelector(NULL),
fGridHandler(NULL)
{
fContainers(NULL),
fInputs(NULL),
fOutputs(NULL),
+ fCommonInput(NULL),
+ fCommonOutput(NULL),
fSelector(NULL),
fGridHandler(NULL)
{
fContainers = new TObjArray(*other.fContainers);
fInputs = new TObjArray(*other.fInputs);
fOutputs = new TObjArray(*other.fOutputs);
+ fCommonInput = NULL;
+ fCommonOutput = NULL;
fSelector = NULL;
fGridHandler = NULL;
fgAnalysisManager = this;
tree->SetMarkerSize(0.5);
if (!gROOT->IsBatch()) {
tree->SetAlias("event", "id0");
- tree->SetAlias("memUSED", "pI.fMemVirtual");
- tree->SetAlias("userCPU", "pI.fCpuUser");
- TCanvas *c = new TCanvas("SysInfo","SysInfo",10,10,800,600);
- c->Divide(2,1,0.01,0.01);
- c->cd(1);
+ tree->SetAlias("memUSED", "mi.fMemUsed");
+ new TCanvas("SysInfo","SysInfo",10,10,800,600);
tree->Draw("memUSED:event","","", 1234567890, 0);
- c->cd(2);
- tree->Draw("userCPU:event","","", 1234567890, 0);
}
tree->Write();
f.Close();
AliAnalysisDataContainer *cont)
{
// Connect input of an existing task to a data container.
+ if (!task) {
+ Error("ConnectInput", "Task pointer is NULL");
+ return kFALSE;
+ }
if (!fTasks->FindObject(task)) {
AddTask(task);
Info("ConnectInput", "Task %s was not registered. Now owned by analysis manager", task->GetName());
AliAnalysisDataContainer *cont)
{
// Connect output of an existing task to a data container.
+ if (!task) {
+ Error("ConnectOutput", "Task pointer is NULL");
+ return kFALSE;
+ }
if (!fTasks->FindObject(task)) {
AddTask(task);
Warning("ConnectOutput", "Task %s not registered. Now owned by analysis manager", task->GetName());
{
// Finish analysis.
}
+
+//______________________________________________________________________________
+void AliAnalysisManager::SetInputEventHandler(AliVEventHandler* handler)
+{
+// Set the input event handler and create a container for it.
+ fInputEventHandler = handler;
+ fCommonInput = CreateContainer("cinput", TChain::Class(), AliAnalysisManager::kInputContainer);
+}
+
+//______________________________________________________________________________
+void AliAnalysisManager::SetOutputEventHandler(AliVEventHandler* handler)
+{
+// Set the input event handler and create a container for it.
+ fOutputEventHandler = handler;
+ fCommonOutput = CreateContainer("coutput", TTree::Class(), AliAnalysisManager::kOutputContainer, "default");
+}