#include "AliQADataMakerRec.h"
#include "AliMUONRecoParam.h"
#include "AliCDBManager.h"
+#include "TH1.h"
//_____________________________________________________________________________
AliMUONVQADataMakerRec::AliMUONVQADataMakerRec(AliQADataMakerRec* master)
return fMaster ? fMaster->GetRawsData(index) : 0x0;
}
+//_____________________________________________________________________________
+void
+AliMUONVQADataMakerRec::ResetDetector(TObjArray* list)
+{
+ /// Reset all histograms found in list, that match either trigger or tracker
+
+ TString cn(ClassName());
+ TString pattern;
+
+ if ( cn.Contains("Trigger") ) pattern = "Trigger";
+ if ( cn.Contains("Tracker") ) pattern = "Tracker";
+
+ TIter next(list);
+ TObject* o;
+ while ( (o = next()) )
+ {
+ TH1* h = dynamic_cast<TH1*>(o);
+ if ( h )
+ {
+ TString hcn(h->ClassName());
+ if ( hcn.Contains(pattern) )
+ {
+ h->Reset();
+ }
+ }
+ }
+}
+
//_____________________________________________________________________________
Int_t
AliMUONVQADataMakerRec::RunNumber() const