]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRun.h
Obsolete file (Ivana)
[u/mrichter/AliRoot.git] / STEER / AliRun.h
index eef5a7f55c9a74450b815479c62fee2e0ee192a9..f0baa7a06bc580ac1872162785a35885602703ee 100644 (file)
@@ -12,7 +12,7 @@
 //
 
 #include <TError.h>
-#include <TStopwatch.h>
+#include <TSystem.h>
 
 class TGeometry;
 class TParticle;
@@ -58,7 +58,7 @@ public:
    Int_t          GetEventNrInRun() const {return fEventNrInRun;}
    Int_t          GetEventsPerRun() const {return fEventsPerRun;}
    Int_t          GetNdets() const {return fNdets;}
-   Int_t          GetDebug() const {return fDebug;}
+   Int_t          GetDebug() const;
    AliModule     *GetModule(const char *name) const;
    AliDetector   *GetDetector(const char *name) const;
    Int_t          GetModuleID(const char *name) const;
@@ -92,7 +92,7 @@ public:
                           Float_t rmax=430,Float_t zmax=10000, AliLegoGenerator* gener=NULL);
    virtual  Bool_t IsLegoRun() const {return (fLego!=0);}
    virtual  void  RunReco(const char *detector=0, Int_t first = 0, Int_t last = 0);
-   virtual  void  SetDebug(Int_t level=0) {fDebug = level;}
+   virtual  void  SetDebug(Int_t level=0);
    virtual  void  SetDisplay(AliDisplay *display) {fDisplay = display;}
    virtual  void  SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, const char* filename="$(ALICE_ROOT)/data/field01.dat");
    virtual  void  SetField(AliMagF* magField);
@@ -104,6 +104,14 @@ public:
    virtual  void  ResetHits();
    virtual  AliGenerator* Generator() const;
 
+
+
+// Added by Alberto Colla
+
+   Bool_t         IsFileAccessible(Char_t* name, EAccessMode mode = kFileExists);
+   static   Bool_t   IsFileAccessible(const char* fnam, EAccessMode mode = kFileExists);
+// Added by Alberto Colla
+
    //
    // End of MC Application
 
@@ -124,10 +132,7 @@ public:
    
   virtual  void  InitLoaders(); //prepares run (i.e. creates getters)
   static void Deprecated(TObject *obj, const char *method, const char *replace)
-    {
-      //
-      // Indicates deprecated method
-      //
+    {// Indicates deprecated method
       if (obj) ::Warning(Form("%s::%s", obj->ClassName(), method),
                  "method is depricated\nPlease use: %s", replace);
       else ::Warning(method, "method is depricated\nPlease use: %s", replace);
@@ -140,12 +145,10 @@ protected:
   Int_t          fEvent;             //! Current event number (from 1)
   Int_t          fEventNrInRun;      //! Current unique event number in run
   Int_t          fEventsPerRun;      //  Number of events per run
-  Int_t          fDebug;             //  Debug flag
   TObjArray     *fModules;           //  List of Detectors
   TGeometry     *fGeometry;          //  Pointer to geometry
   AliMC         *fMCApp;             //  Pointer to virtual MC Application
   AliDisplay    *fDisplay;           //! Pointer to event display
-  TStopwatch     fTimer;             //  Timer object
   AliMagF       *fField;             //  Magnetic Field Map
   TVirtualMC    *fMC;                //! Pointer to MonteCarlo object
   Int_t          fNdets;             //  Number of detectors
@@ -160,9 +163,9 @@ protected:
 private:
   void Copy(TObject &arun) const;
 
-  ClassDef(AliRun,8)      //Supervisor class for all Alice detectors
+  ClassDef(AliRun,10)      //Supervisor class for all Alice detectors
 };
  
 R__EXTERN  AliRun *gAlice;
+  
 #endif