]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONVQADataMakerRec.cxx
Init event before deleting it !
[u/mrichter/AliRoot.git] / MUON / AliMUONVQADataMakerRec.cxx
CommitLineData
ece56eb9 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
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**************************************************************************/
15
16// $Id$
17
18#include "AliMUONVQADataMakerRec.h"
19
20///
21/// \class AliMUONVQADataMakerRec
22///
23/// Interface for a MUON QADataMakerRec, common to MCH and MTR
24///
25/// \author Laurent Aphecetche
26
27/// \cond CLASSIMP
28ClassImp(AliMUONVQADataMakerRec)
29/// \endcond
30
31#include "AliQADataMakerRec.h"
32#include "AliMUONRecoParam.h"
33#include "AliCDBManager.h"
34
35//_____________________________________________________________________________
36AliMUONVQADataMakerRec::AliMUONVQADataMakerRec(AliQADataMakerRec* master)
37: fMaster(master)
38{
39 /// ctor
40}
41
42//_____________________________________________________________________________
43AliMUONVQADataMakerRec::~AliMUONVQADataMakerRec()
44{
45 /// dtor
46}
47
48//_____________________________________________________________________________
49Int_t
50AliMUONVQADataMakerRec::Add2DigitsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
51{
52 /// fwd
53 return fMaster ? fMaster->Add2DigitsList(hist,index,expert,image) : -1;
54}
55
56//_____________________________________________________________________________
57Int_t
58AliMUONVQADataMakerRec::Add2ESDsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
59{
60 /// fwd
61 return fMaster ? fMaster->Add2ESDsList(hist,index,expert,image) : -1;
62}
63
64//_____________________________________________________________________________
65Int_t
66AliMUONVQADataMakerRec::Add2RecPointsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image )
67{
68 /// fwd
69 return fMaster ? fMaster->Add2RecPointsList(hist,index,expert,image) : -1;
70}
71
72//_____________________________________________________________________________
73Int_t
74AliMUONVQADataMakerRec::Add2RawsList(TH1 * hist, const Int_t index, const Bool_t expert , const Bool_t image , const Bool_t saveForCorr )
75{
76 /// fwd
77 return fMaster ? fMaster->Add2RawsList(hist,index,expert,image,saveForCorr) : -1;
78}
79
80//_____________________________________________________________________________
81AliRecoParam::EventSpecie_t
82AliMUONVQADataMakerRec::CurrentEventSpecie() const
83{
84 /// fwd
85 return fMaster ? fMaster->GetEventSpecie() : AliRecoParam::kDefault;
86}
87
88//_____________________________________________________________________________
89const AliMUONRecoParam*
90AliMUONVQADataMakerRec::GetRecoParam() const
91{
92 /// fwd
93 return fMaster ? dynamic_cast<const AliMUONRecoParam*>(fMaster->GetRecoParam()) : 0x0;
94}
95
96//_____________________________________________________________________________
97TH1*
98AliMUONVQADataMakerRec::GetDigitsData(Int_t index) const
99{
100 /// fwd
101 return fMaster ? fMaster->GetDigitsData(index) : 0x0;
102}
103
104//_____________________________________________________________________________
105TH1*
106AliMUONVQADataMakerRec::GetESDsData(Int_t index) const
107{
108 /// fwd
109 return fMaster ? fMaster->GetESDsData(index) : 0x0;
110}
111
112//_____________________________________________________________________________
113TH1*
114AliMUONVQADataMakerRec::GetRecPointsData(Int_t index) const
115{
116 /// fwd
117 return fMaster ? fMaster->GetRecPointsData(index) : 0x0;
118}
119
120//_____________________________________________________________________________
121TH1*
122AliMUONVQADataMakerRec::GetRawsData(Int_t index) const
123{
124 /// fwd
125 return fMaster ? fMaster->GetRawsData(index) : 0x0;
126}
127
128//_____________________________________________________________________________
129Int_t
130AliMUONVQADataMakerRec::RunNumber() const
131{
132 /// fwd
133 return fMaster ? fMaster->GetRun() : -1;
134}