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 "AliQADataMakerRec.h"
32 #include "AliMUONRecoParam.h"
33 #include "AliCDBManager.h"
36 //_____________________________________________________________________________
37 AliMUONVQADataMakerRec::AliMUONVQADataMakerRec(AliQADataMakerRec* master)
43 //_____________________________________________________________________________
44 AliMUONVQADataMakerRec::~AliMUONVQADataMakerRec()
49 //_____________________________________________________________________________
51 AliMUONVQADataMakerRec::Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
54 return fMaster ? fMaster->Add2DigitsList(hist,index,expert,image) : -1;
57 //_____________________________________________________________________________
59 AliMUONVQADataMakerRec::Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
62 return fMaster ? fMaster->Add2ESDsList(hist,index,expert,image) : -1;
65 //_____________________________________________________________________________
67 AliMUONVQADataMakerRec::Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
70 return fMaster ? fMaster->Add2RecPointsList(hist,index,expert,image) : -1;
73 //_____________________________________________________________________________
75 AliMUONVQADataMakerRec::Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image , const Bool_t saveForCorr )
78 return fMaster ? fMaster->Add2RawsList(hist,index,expert,image,saveForCorr) : -1;
81 //_____________________________________________________________________________
82 AliRecoParam::EventSpecie_t
83 AliMUONVQADataMakerRec::CurrentEventSpecie() const
86 return fMaster ? fMaster->GetEventSpecie() : AliRecoParam::kDefault;
89 //_____________________________________________________________________________
90 const AliMUONRecoParam*
91 AliMUONVQADataMakerRec::GetRecoParam() const
94 return fMaster ? dynamic_cast<const AliMUONRecoParam*>(fMaster->GetRecoParam()) : 0x0;
97 //_____________________________________________________________________________
99 AliMUONVQADataMakerRec::GetDigitsData(Int_t index) const
102 return fMaster ? fMaster->GetDigitsData(index) : 0x0;
105 //_____________________________________________________________________________
107 AliMUONVQADataMakerRec::GetESDsData(Int_t index) const
110 return fMaster ? fMaster->GetESDsData(index) : 0x0;
113 //_____________________________________________________________________________
115 AliMUONVQADataMakerRec::GetRecPointsData(Int_t index) const
118 return fMaster ? fMaster->GetRecPointsData(index) : 0x0;
121 //_____________________________________________________________________________
123 AliMUONVQADataMakerRec::GetRawsData(Int_t index) const
126 return fMaster ? fMaster->GetRawsData(index) : 0x0;
129 //_____________________________________________________________________________
131 AliMUONVQADataMakerRec::ResetDetector(const TObjArray* list)
133 /// Reset all histograms found in list, that match either trigger or tracker
135 TString cn(ClassName());
138 if ( cn.Contains("Trigger") ) pattern = "Trigger";
139 if ( cn.Contains("Tracker") ) pattern = "Tracker";
143 while ( (o = next()) )
145 TH1* h = dynamic_cast<TH1*>(o);
148 TString hcn(h->ClassName());
149 if ( hcn.Contains(pattern) )
157 //_____________________________________________________________________________
159 AliMUONVQADataMakerRec::RunNumber() const
162 return fMaster ? fMaster->GetRun() : -1;