]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONCheck.h
Updated list of MUON libraries
[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 AliMUONSimData;
23 class AliMUONRecData;
24 class AliRunLoader;
25 class AliLoader;
26 class AliESD;
27 class TTree;
28 class TH1F ;
29
30 class AliMUONCheck : public TObject
31 {
32 public:
33   AliMUONCheck(const char* galiceFile, const char* esdFile,
34                Int_t firstEvent=0, Int_t lastEvent=-1, const char* outDir="");
35   AliMUONCheck(const char* galiceFile, const char* galiceFileSim, const char* esdFile,
36                Int_t firstEvent=0, Int_t lastEvent=-1, const char* outDir="");
37   virtual ~AliMUONCheck();
38  
39   /// Return true if contains valid data
40   Bool_t IsValid() const { return (fRecData!=0); }
41   
42   void CheckESD(Bool_t pdc06TriggerResponse= false);
43   void CheckKine();
44   void CheckTrackRef();
45   void CheckOccupancy(Bool_t perDetEle =kFALSE) const;  
46   void CheckRecTracks() const;
47   
48   void SetEventsToCheck(Int_t firstEvent, Int_t lastEvent);
49
50 private:
51   /// Not implemented
52   AliMUONCheck(const AliMUONCheck& rhs);
53   /// Not implemented
54   AliMUONCheck& operator=(const AliMUONCheck& rhs);
55   
56 private:
57   TString fFileName;   //!< File (galice.root) to read from fro reconstructed data
58   TString fFileNameSim; //!< File (galiceSim.root) for simulated data
59   TString fesdFileName; //!< File (AliESDs.root) to read from
60  
61   const char* foutDir;  //!< output data directory
62   
63   Int_t   fFirstEvent;  //!< First event to consider
64   Int_t   fLastEvent;   //!< Last event to consider
65
66   AliRunLoader* fRunLoader;    //!< AliRunLoader pointer for reconstruction
67   AliRunLoader* fRunLoaderSim; //!< AliRunLoader pointer for simulation
68
69   AliLoader*    fLoader;    //!< MUON loader pointer for reconstruction
70   AliLoader*    fLoaderSim; //!< MUON loader pointer for simulation
71
72   AliMUONRecData*  fRecData;  //!< AliMUONData pointer (to access containers) for recontruction 
73   AliMUONSimData*  fSimData;  //!< AliMUONData pointer (to access containers) for simulation
74
75   TTree   * fTree ;     //!< pointer to the analyzed TTree or TChain
76   AliESD  * fESD ;      //!< Declaration of leave types
77
78   ClassDef(AliMUONCheck,0) // Dumper of MUON related data
79 }; 
80
81 #endif