]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCheck.h
Fixed memory leak
[u/mrichter/AliRoot.git] / MUON / AliMUONCheck.h
index 2137c7c5357df5a65c5f61a332fe5fc3562d9768..c37f8c0c4d4690fcf75046471dfe53c2d89b2452 100644 (file)
@@ -2,18 +2,15 @@
 #define ALIMUONCHECK_H
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
-* See cxx source for full Copyright notice                               */
+ * See cxx source for full Copyright notice                               */
 
 // $Id$
 
-/// \ingroup base
+/// \ingroup evaluation
 /// \class AliMUONCheck
-/// \brief A helper class to dump data from AliRoot-generated root files.
+/// \brief Class for data quality control
 /// 
-/// Only implemented for digits so far, it is meant as a replacement
-/// of the MUONCheck.C macro, or to be used by this macro to simplify it.
-///
-/// \author Laurent Aphecetche
+//  Author Frederic Yermia, INFN Torino
 
 #ifndef ROOT_TObject
 #  include "TObject.h"
 #  include "TString.h"
 #endif
 
-class AliMUONData;
-class AliRunLoader;
+class AliESDEvent;
+class TTree;
+class TH1F ;
 
 class AliMUONCheck : public TObject
 {
 public:
-  AliMUONCheck(const char* galiceFile, Int_t firstEvent=0, Int_t lastEvent=-1);
+  AliMUONCheck(const char* galiceFile, const char* esdFile,
+               Int_t firstEvent=0, Int_t lastEvent=-1, const char* outDir="");
+  AliMUONCheck(const char* galiceFile, const char* galiceFileSim, const char* esdFile,
+               Int_t firstEvent=0, Int_t lastEvent=-1, const char* outDir="");
   virtual ~AliMUONCheck();
+  void CheckESD(Bool_t pdc06TriggerResponse= false);
+  void CheckKine();
+  void CheckTrackRef();
+  void CheckOccupancy(Bool_t perDetEle =kFALSE) const;  
   
-  Bool_t IsValid() const { return (fData!=0); }
-  
-  void DumpDigits(Option_t* opt="") const;
-  
+  void SetEventsToCheck(Int_t firstEvent, Int_t lastEvent);
+  void SetOutFileName(const TString& outFileName) { fOutFileName = outFileName; } 
+
 private:
+  /// Not implemented
   AliMUONCheck(const AliMUONCheck& rhs);
+  /// Not implemented
   AliMUONCheck& operator=(const AliMUONCheck& rhs);
   
 private:
-  TString fFileName; //! File (galice.root) to read from
-  Int_t fFirstEvent; //! First event to consider
-  Int_t fLastEvent; //! Last event to consider
-  AliRunLoader* fRunLoader; //! AliRunLoader pointer
-  AliMUONData* fData; //! AliMUONData pointer (to access containers)
+  static const TString& GetDefaultOutFileName(); 
+
+  TString fFileName;   //!< File (galice.root) to read from fro reconstructed data
+  TString fFileNameSim; //!< File (galiceSim.root) for simulated data
+  TString fesdFileName; //!< File (AliESDs.root) to read from
+  const char* fkOutDir;  //!< output data directory
+  TString fOutFileName;  //!< output file name 
+  
+  Int_t   fFirstEvent;  //!< First event to consider
+  Int_t   fLastEvent;   //!< Last event to consider
 
   ClassDef(AliMUONCheck,0) // Dumper of MUON related data
-};
+}; 
 
 #endif