]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONCheck.h
Adding new classes (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONCheck.h
1 #ifndef ALIMUONCHECK_H
2 #define ALIMUONCHECK_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup base
10 /// \class AliMUONCheck
11 /// \brief A helper class to dump data from AliRoot-generated root files.
12 /// 
13 //  Author Laurent Aphecetche
14
15 #ifndef ROOT_TObject
16 #  include "TObject.h"
17 #endif
18 #ifndef ROOT_TString
19 #  include "TString.h"
20 #endif
21
22 class AliMUONData;
23 class AliRunLoader;
24
25 class AliMUONCheck : public TObject
26 {
27 public:
28   AliMUONCheck(const char* galiceFile, Int_t firstEvent=0, Int_t lastEvent=-1);
29   virtual ~AliMUONCheck();
30   
31   /// Return true if contains valid data
32   Bool_t IsValid() const { return (fData!=0); }
33   
34   void DumpDigits(Option_t* opt="") const;
35   
36 private:
37   AliMUONCheck(const AliMUONCheck& rhs);
38   AliMUONCheck& operator=(const AliMUONCheck& rhs);
39   
40 private:
41   TString fFileName;   //!< File (galice.root) to read from
42   Int_t   fFirstEvent; //!< First event to consider
43   Int_t   fLastEvent;  //!< Last event to consider
44   AliRunLoader* fRunLoader; //!< AliRunLoader pointer
45   AliMUONData*  fData; //!< AliMUONData pointer (to access containers)
46
47   ClassDef(AliMUONCheck,0) // Dumper of MUON related data
48 };
49
50 #endif