// --- ROOT system ---
#include <TClass.h>
#include <TFile.h>
+#include <TH1.h>
#include <TSystem.h>
#include <TROOT.h>
return bitName.Data() ;
}
+//_______________________________________________________________
+TH1 * AliQAv1::GetData(TObjArray** list, Int_t index, AliRecoParam::EventSpecie_t eventSpecie)
+{
+ // retrieve QA data from the list at a given index and for a given event specie
+ TH1 * rv = NULL ;
+ Int_t esindex = AliRecoParam::AConvert(eventSpecie) ;
+ TObjArray * arr = list[esindex] ;
+ if (arr) {
+ if ( index > AliQAv1::GetMaxQAObj() ) {
+ AliErrorClass(Form("Max number of authorized QA objects is %d", AliQAv1::GetMaxQAObj())) ;
+ } else {
+ if ( arr->At(index) ) {
+ rv = static_cast<TH1*>(arr->At(index)) ;
+ }
+ }
+ }
+ return rv ;
+}
+
//_______________________________________________________________
AliQAv1::DETECTORINDEX_t AliQAv1::GetDetIndex(const char * name)
{