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