ClassImp(AliMUONVQADataMakerRec)
/// \endcond
-#include "AliQADataMakerRec.h"
#include "AliMUONRecoParam.h"
#include "AliCDBManager.h"
#include "TH1.h"
return fMaster ? fMaster->Add2RawsList(hist,index,expert,image,saveForCorr) : -1;
}
+//_____________________________________________________________________________
+void AliMUONVQADataMakerRec::ClonePerTrigClass(AliQAv1::TASKINDEX_t task)
+{
+ // RS: alias to QADataMaker per-trigger-class histo clonning
+ if (!fMaster) return;
+ fMaster->ClonePerTrigClass(task);
+}
+
+
//_____________________________________________________________________________
AliRecoParam::EventSpecie_t
AliMUONVQADataMakerRec::CurrentEventSpecie() const
return fMaster ? dynamic_cast<const AliMUONRecoParam*>(fMaster->GetRecoParam()) : 0x0;
}
-//_____________________________________________________________________________
-TH1*
-AliMUONVQADataMakerRec::GetDigitsData(Int_t index) const
-{
- /// fwd
- return fMaster ? fMaster->GetDigitsData(index) : 0x0;
-}
-
-//_____________________________________________________________________________
-TH1*
-AliMUONVQADataMakerRec::GetESDsData(Int_t index) const
-{
- /// fwd
- return fMaster ? fMaster->GetESDsData(index) : 0x0;
-}
-
-//_____________________________________________________________________________
-TH1*
-AliMUONVQADataMakerRec::GetRecPointsData(Int_t index) const
-{
- /// fwd
- return fMaster ? fMaster->GetRecPointsData(index) : 0x0;
-}
-
-//_____________________________________________________________________________
-TH1*
-AliMUONVQADataMakerRec::GetRawsData(Int_t index) const
-{
- /// fwd
- return fMaster ? fMaster->GetRawsData(index) : 0x0;
-}
-
//_____________________________________________________________________________
void
-AliMUONVQADataMakerRec::ResetDetector(TObjArray* list)
+AliMUONVQADataMakerRec::ResetDetector(const TObjArray* list)
{
/// Reset all histograms found in list, that match either trigger or tracker
-
+
TString cn(ClassName());
TString pattern;
TObject* o;
while ( (o = next()) )
{
- TH1* h = dynamic_cast<TH1*>(o);
- if ( h )
- {
- h->Reset();
- TString hcn(h->ClassName());
- if ( hcn.Contains(pattern) )
- {
- h->Reset();
- }
+ // RS: Check if this is a histo or array of histos
+ TString hcn(o->GetName());
+ if ( !hcn.Contains(pattern) ) continue;
+ if ( !o->TestBit(AliQAv1::GetClonedBit()) ) { // not cloned, this is orig. histo
+ ((TH1*)o)->Reset();
+ continue;
}
+ // histo was cloned, so we are dealing with TObjArray
+ TIter nextCl( (TObjArray*)o );
+ TH1* hclone = 0;
+ while ( (hclone = (TH1*) nextCl()) ) hclone->Reset();
}
}