1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliMUONVQADataMakerRec.h"
21 /// \class AliMUONVQADataMakerRec
23 /// Interface for a MUON QADataMakerRec, common to MCH and MTR
25 /// \author Laurent Aphecetche
28 ClassImp(AliMUONVQADataMakerRec)
31 #include "AliMUONRecoParam.h"
32 #include "AliCDBManager.h"
35 //_____________________________________________________________________________
36 AliMUONVQADataMakerRec::AliMUONVQADataMakerRec(AliQADataMakerRec* master)
42 //_____________________________________________________________________________
43 AliMUONVQADataMakerRec::~AliMUONVQADataMakerRec()
48 //_____________________________________________________________________________
50 AliMUONVQADataMakerRec::Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
53 return fMaster ? fMaster->Add2DigitsList(hist,index,expert,image) : -1;
56 //_____________________________________________________________________________
58 AliMUONVQADataMakerRec::Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
61 return fMaster ? fMaster->Add2ESDsList(hist,index,expert,image) : -1;
64 //_____________________________________________________________________________
66 AliMUONVQADataMakerRec::Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
69 return fMaster ? fMaster->Add2RecPointsList(hist,index,expert,image) : -1;
72 //_____________________________________________________________________________
74 AliMUONVQADataMakerRec::Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image , const Bool_t saveForCorr )
77 return fMaster ? fMaster->Add2RawsList(hist,index,expert,image,saveForCorr) : -1;
80 //_____________________________________________________________________________
81 void AliMUONVQADataMakerRec::ClonePerTrigClass(AliQAv1::TASKINDEX_t task)
83 // RS: alias to QADataMaker per-trigger-class histo clonning
85 fMaster->ClonePerTrigClass(task);
89 //_____________________________________________________________________________
90 AliRecoParam::EventSpecie_t
91 AliMUONVQADataMakerRec::CurrentEventSpecie() const
94 return fMaster ? fMaster->GetEventSpecie() : AliRecoParam::kDefault;
97 //_____________________________________________________________________________
98 const AliMUONRecoParam*
99 AliMUONVQADataMakerRec::GetRecoParam() const
102 return fMaster ? dynamic_cast<const AliMUONRecoParam*>(fMaster->GetRecoParam()) : 0x0;
105 //_____________________________________________________________________________
107 AliMUONVQADataMakerRec::ResetDetector(const TObjArray* list)
109 /// Reset all histograms found in list, that match either trigger or tracker
111 TString cn(ClassName());
114 if ( cn.Contains("Trigger") ) pattern = "Trigger";
115 if ( cn.Contains("Tracker") ) pattern = "Tracker";
119 while ( (o = next()) )
121 // RS: Check if this is a histo or array of histos
122 TString hcn(o->GetName());
123 if ( !hcn.Contains(pattern) ) continue;
124 if ( !o->TestBit(AliQAv1::GetClonedBit()) ) { // not cloned, this is orig. histo
128 // histo was cloned, so we are dealing with TObjArray
129 TIter nextCl( (TObjArray*)o );
131 while ( (hclone = (TH1*) nextCl()) ) hclone->Reset();
135 //_____________________________________________________________________________
137 AliMUONVQADataMakerRec::RunNumber() const
140 return fMaster ? fMaster->GetRun() : -1;