X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=ANALYSIS%2FAliAnalysisTask.cxx;h=ed917c59336828f08d3e934716ae9e720c3d1707;hp=82208d2f2123012bcb91f7d4571ae5908301e739;hb=11026a8010b381cdfc500e6bc3f6666a2a9e7342;hpb=327eaf462c2e9e7adb351493fd5de41fb9c63bae;ds=sidebyside diff --git a/ANALYSIS/AliAnalysisTask.cxx b/ANALYSIS/AliAnalysisTask.cxx index 82208d2f212..ed917c59336 100644 --- a/ANALYSIS/AliAnalysisTask.cxx +++ b/ANALYSIS/AliAnalysisTask.cxx @@ -68,9 +68,11 @@ // //============================================================================== +#include "Riostream.h" + #include "TClass.h" -#include "AliLog.h" +//#include "AliLog.h" #include "AliAnalysisTask.h" #include "AliAnalysisDataSlot.h" #include "AliAnalysisDataContainer.h" @@ -175,7 +177,8 @@ Bool_t AliAnalysisTask::AreSlotsConnected() for (i=0; iAt(i); if (!slot) { - AliError(Form("Input slot %i of task %s not defined !",i,GetName())); + cout<<"Input slot "<IsConnected()) return kFALSE; @@ -183,7 +186,8 @@ Bool_t AliAnalysisTask::AreSlotsConnected() for (i=0; iAt(i); if (!slot) { - AliError(Form("Output slot %i of task %s not defined !",i,GetName())); + cout<<"Output slot "<IsConnected()) return kFALSE; @@ -219,13 +223,14 @@ Bool_t AliAnalysisTask::ConnectInput(Int_t islot, AliAnalysisDataContainer *cont // Connect an input slot to a data container. AliAnalysisDataSlot *input = GetInputSlot(islot); if (!input) { - AliError(Form("Input slot %i not defined for analysis task %s", islot, GetName())); + cout<<"Input slot "<GetType()->InheritsFrom(cont->GetType())) { - AliError(Form("Data type %s for input %i of task %s not matching container %s of type %s", - input->GetType()->GetName(), islot, GetName(), cont->GetName(), cont->GetType()->GetName())); + cout<<"Data type "<GetType()->GetName()<<" for input "<GetName()<<" of type "<GetType()->GetName()<GetType()->GetName(), islot, GetName(), cont->GetName(), cont->GetType()->GetName())); return kFALSE; } // Connect the slot to the container as input @@ -242,13 +247,14 @@ Bool_t AliAnalysisTask::ConnectOutput(Int_t islot, AliAnalysisDataContainer *con // Connect an output slot to a data container. AliAnalysisDataSlot *output = GetOutputSlot(islot); if (!output) { - AliError(Form("Output slot %i not defined for analysis task %s", islot, GetName())); + cout<<"Output slot "<GetType()->InheritsFrom(cont->GetType())) { - AliError(Form("Data type %s for output %i of task %s not matching container %s of type %s", - output->GetType()->GetName(), islot, GetName(), cont->GetName(), cont->GetType()->GetName())); + cout<<"Data type "<GetType()->GetName()<<" for output "<GetName()<<" of type "<GetType()->GetName()<GetType()->GetName(), islot, GetName(), cont->GetName(), cont->GetType()->GetName())); return kFALSE; } // Connect the slot to the container as output @@ -273,7 +279,8 @@ void AliAnalysisTask::DefineOutput(Int_t islot, TClass *type) { // Define an output slot and its type. if (islot<0) { - AliError(Form("Cannot define negative output slot number for task %s", GetName())); + cout<<"Cannot define negative output slot number for task "<GetType()); @@ -304,7 +312,8 @@ TClass *AliAnalysisTask::GetOutputType(Int_t islot) const // Retreive type of a given output slot. AliAnalysisDataSlot *output = GetOutputSlot(islot); if (!output) { - AliError(Form("Output slot %i not defined for analysis task %s", islot, GetName())); + cout<<"Output slot "<GetType()); @@ -317,7 +326,8 @@ TObject *AliAnalysisTask::GetInputData(Int_t islot) const // the object has to be statically cast to the appropriate type. AliAnalysisDataSlot *input = GetInputSlot(islot); if (!input) { - AliError(Form("Input slot %i not defined for analysis task %s", islot, GetName())); + cout<<"Input slot "<GetData()); @@ -368,11 +378,13 @@ Bool_t AliAnalysisTask::PostData(Int_t iout, TObject *data, Option_t *option) fPublishedData = 0; AliAnalysisDataSlot *output = GetOutputSlot(iout); if (!output) { - AliError(Form("Output slot %i not defined for analysis task %s", iout, GetName())); + cout<<"Output slot "<IsConnected()) { - AliError(Form("Output slot %i of analysis task %s not connected to any data container", iout, GetName())); + cout<<"Output slot "<