]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnListOutput.cxx
- Removed small bug (otherwise chargeVector was not filled for normal data)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnListOutput.cxx
index 5ccec162356eef07513b1b04a69aae16d7e03a42..0a04bc3aa2a0d5ca529e2e8bd91fea88b8a99ae1 100644 (file)
@@ -22,6 +22,7 @@
 #include <Riostream.h>
 
 #include "AliLog.h"
+#include "AliCFContainer.h"
 
 #include "AliRsnValue.h"
 #include "AliRsnLoop.h"
@@ -33,6 +34,7 @@ ClassImp(AliRsnListOutput)
 //________________________________________________________________________________________
 AliRsnListOutput::AliRsnListOutput(const char *name, AliRsnListOutput::EOut type) :
    TNamed(name, ""),
+   fSkipFailed(kTRUE),
    fType(type),
    fSteps(0),
    fValues(0),
@@ -51,6 +53,7 @@ AliRsnListOutput::AliRsnListOutput(const char *name, AliRsnListOutput::EOut type
 //________________________________________________________________________________________
 AliRsnListOutput::AliRsnListOutput(const AliRsnListOutput &copy) :
    TNamed(copy),
+   fSkipFailed(copy.fSkipFailed),
    fType(copy.fType),
    fSteps(copy.fSteps),
    fValues(copy.fValues),
@@ -78,6 +81,7 @@ const AliRsnListOutput& AliRsnListOutput::operator=(const AliRsnListOutput& copy
 
    TNamed::operator=(copy);
 
+   fSkipFailed = copy.fSkipFailed;
    fType = copy.fType;
    fSteps = copy.fSteps;
    fValues = copy.fValues;
@@ -235,7 +239,7 @@ TH1* AliRsnListOutput::CreateHistogram(const char *name)
          hist = new TH3F(name, "", nbins[0], array[0].GetArray(), nbins[1], array[1].GetArray(), nbins[2], array[2].GetArray());
          break;
       default:
-         AliError(Form("Wrong number of dimensions: %d", fNValues))
+         //AliError(Form("Wrong number of dimensions: %d", fNValues))
          return 0x0;
    }
 
@@ -334,7 +338,7 @@ Bool_t AliRsnListOutput::Fill(TObject *target, Int_t step)
       globalOK = globalOK && val->Eval(target);
       fArray[i] = (Double_t)val->GetComputedValue();
    }
-   if (!globalOK) return kFALSE;
+   if (!globalOK && fSkipFailed) return kFALSE;
    
    // retrieve object
    if (!fList || fIndex < 0) {