]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONCheck.h
Adding handling of Capacitances (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 evaluation
10 /// \class AliMUONCheck
11 /// \brief Class for data quality control
12 /// 
13 //  Author Frederic Yermia, INFN Torino
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 class AliLoader;
25 class AliESD;
26 class TTree;
27 class TH1F ;
28
29 class AliMUONCheck : public TObject
30 {
31 public:
32   AliMUONCheck(const char* galiceFile, const char* esdFile,
33                Int_t firstEvent=0, Int_t lastEvent=-1, const char* outDir="");
34   virtual ~AliMUONCheck();
35  
36   /// Return true if contains valid data
37   Bool_t IsValid() const { return (fData!=0); }
38   
39   void CheckESD(Bool_t pdc06TriggerResponse= false);
40   void CheckKine();
41   void CheckTrackRef();
42   void CheckOccupancy(Bool_t perDetEle =kFALSE) const;  
43   void CheckRecTracks() const;
44   
45   void SetEventsToCheck(Int_t firstEvent, Int_t lastEvent);
46
47 private:
48   /// Not implemented
49   AliMUONCheck(const AliMUONCheck& rhs);
50   /// Not implemented
51   AliMUONCheck& operator=(const AliMUONCheck& rhs);
52   
53 private:
54   TString fFileName;   //!< File (galice.root) to read from
55   TString fesdFileName; //!< File (AliESDs.root) to read from
56  
57   const char* foutDir;  //!< output data directory
58   
59   Int_t   fFirstEvent;  //!< First event to consider
60   Int_t   fLastEvent;   //!< Last event to consider
61
62   AliRunLoader* fRunLoader; //!< AliRunLoader pointer
63   AliLoader*    fLoader; //!< MUON loader pointer
64
65   AliMUONData*  fData;  //!< AliMUONData pointer (to access containers)
66
67   TTree   * fTree ;     //!< pointer to the analyzed TTree or TChain
68   AliESD  * fESD ;      //!< Declaration of leave types
69
70   ClassDef(AliMUONCheck,0) // Dumper of MUON related data
71 }; 
72
73 #endif