]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliMCQA.h
protection against missing header
[u/mrichter/AliRoot.git] / STEER / AliMCQA.h
CommitLineData
65fb704d 1#ifndef ALIMCQA_H
2#define ALIMCQA_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
fb17acd4 6/* $Id$ */
65fb704d 7
8///////////////////////////////////////////////////////////////////////////////
9// //
10// Quality assurance services for MC //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include "TObject.h"
15class TObjArray;
16class TBrowser;
8409d8c9 17class TPaveLabel;
65fb704d 18
19class AliMCQA : public TObject
20{
21public:
8409d8c9 22 AliMCQA();
65fb704d 23 AliMCQA(Int_t ndets);
5d8718b8 24 AliMCQA(const AliMCQA &qa);
e460afec 25 virtual ~AliMCQA();
65fb704d 26 Bool_t IsFolder() const {return kTRUE;}
27 virtual void Browse(TBrowser *b);
28 virtual void PreTrack();
29 virtual TObjArray *GetQAList() const {return fQAList;}
8409d8c9 30 void DrawModuleName();
31 void AddModuleName();
32 void DrawVolumeName();
33 void AddVolumeName();
e2afb3b6 34 AliMCQA & operator=(const AliMCQA &qa)
35 {qa.Copy(*this); return (*this);}
8409d8c9 36
65fb704d 37 // QA step manager
38 virtual void StepManager(Int_t id);
39
40protected:
8409d8c9 41 Int_t fNdets; // Number of detectors
42 Int_t fNvolumes; // Number of volumes
43 TObjArray *fQAList; // QA lists of histograms
44 Int_t fOldId; //! ID of the current module
45 Int_t *fDetDone; //! Detector done flag
46 TObjArray *fQAHist; // Global QA histograms
47 TObjArray *fVolNames; // Volume names
48 TObjArray *fModNames; // Module names
49 TPaveLabel *fMPaveLabel; //! PaveLabel for the Modules
50 TPaveLabel *fVPaveLabel; //! PaveLabel for the Volumes
65fb704d 51
52private:
8409d8c9 53 void DrawPaveLabel(TPaveLabel *&pv);
54 Int_t GetHBin(const char* hname);
6c4904c2 55 void Copy(TObject& qa) const;
65fb704d 56
57 ClassDef(AliMCQA,1) //Quality Assurance class for the MC
58};
59
60#endif