X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONVQADataMakerRec.cxx;h=c7b37b6801cd259291f4f6aaf138ee51467528f4;hb=f8d390676f60a0defb3e947b153899a64b6ab624;hp=c92a86e8a9ea0d9ec19af2b21f656e1210e814e6;hpb=57e2ad1a48096a0838d3e4a05f69d5469b822971;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONVQADataMakerRec.cxx b/MUON/AliMUONVQADataMakerRec.cxx index c92a86e8a9e..c7b37b6801c 100644 --- a/MUON/AliMUONVQADataMakerRec.cxx +++ b/MUON/AliMUONVQADataMakerRec.cxx @@ -28,7 +28,6 @@ ClassImp(AliMUONVQADataMakerRec) /// \endcond -#include "AliQADataMakerRec.h" #include "AliMUONRecoParam.h" #include "AliCDBManager.h" #include "TH1.h" @@ -78,6 +77,15 @@ AliMUONVQADataMakerRec::Add2RawsList(TH1 * hist, const Int_t index, const Bool_t 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 @@ -94,44 +102,12 @@ AliMUONVQADataMakerRec::GetRecoParam() const return fMaster ? dynamic_cast(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(const TObjArray* list) { /// Reset all histograms found in list, that match either trigger or tracker - + TString cn(ClassName()); TString pattern; @@ -142,15 +118,17 @@ AliMUONVQADataMakerRec::ResetDetector(const TObjArray* list) TObject* o; while ( (o = next()) ) { - TH1* h = dynamic_cast(o); - if ( h ) - { - 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(); } }