]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - SHUTTLE/AliShuttle.h
CMAKE: CMakeLists.example skeleton
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttle.h
index 786973bace620155553bf7c0fafd0c0644454ebb..b5492ce715f66c512585d43f7ae94b70965c69b1 100644 (file)
@@ -65,11 +65,15 @@ public:
        virtual TList* GetFileSources(Int_t system, const char* detector, const char* id = 0);
        virtual TList* GetFileIDs(Int_t system, const char* detector, const char* source);
        virtual const char* GetRunParameter(const char* lbEntry);
+       virtual UInt_t GetStartTimeDCSQuery();
+       virtual UInt_t GetEndTimeDCSQuery();
        virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path);
        virtual const char* GetRunType();
        virtual Bool_t GetHLTStatus();
        virtual const char* GetTriggerConfiguration(); 
-       virtual void Log(const char* detector, const char* message);
+       virtual const char* GetCTPTimeParams(); 
+       virtual const char* GetTriggerDetectorMask(); 
+       virtual void Log(const char* detector, const char* message, UInt_t level=3);
 
        void SetLogbookEntry(AliShuttleLogbookEntry* entry) {fLogbookEntry=entry;}
        
@@ -83,10 +87,14 @@ public:
 
        static void SetMainRefStorage (TString mainRefStorage) {fgkMainRefStorage = mainRefStorage;}
        static void SetLocalRefStorage (TString localRefStorage) {fgkLocalRefStorage = localRefStorage;}
+       static void SetMirrorSEs (TString mirrors) {fgkMirrorSEs = mirrors;}
 
        static void SetShuttleTempDir (const char* tmpDir);
        static void SetShuttleLogDir (const char* logDir);
 
+       virtual void SendMLFromDet(const char* value);
+       virtual TString* GetLTUConfig(const char* det);
+
 private:
        AliShuttle(const AliShuttle& other);
        AliShuttle& operator= (const AliShuttle& other);
@@ -104,6 +112,7 @@ private:
        Bool_t RetrieveFile(UInt_t system, const char* daqFileName, const char* localFileName);
 
        Bool_t UpdateTable();
+       Bool_t UpdateTableSkippedCase(const char* detector="ALL");
        Bool_t UpdateTableFailCase();
 
        Bool_t StoreLocally(const TString& localUri, const AliCDBPath& path, TObject* object,
@@ -124,13 +133,15 @@ private:
        void UpdateShuttleStatus(AliShuttleStatus::Status newStatus, Bool_t increaseCount = kFALSE);
        Bool_t UpdateShuttleLogbook(const char* detector, const char* status=0);
        Bool_t SendMail(EMailTarget target, Int_t system = -1);
+       Int_t GetMem(Int_t pid);
        
        TString GetLogFileName(const char* detector) const;
 
        void SetLastAction(const char* action);
        
        void SendAlive();
-       void SendMLInfo();
+       void SendMLDetInfo();
+       void SendMLRunInfo(const char* status);
        virtual Bool_t TouchFile();
 
        const AliShuttleConfig* fConfig;        // pointer to configuration object
@@ -144,9 +155,9 @@ private:
        TString fCurrentDetector; // current detector
        Bool_t fFirstProcessing;  // processing this detector the first time in this run
 
-       TSQLServer *fServer[4];         // pointer to the three FXS + Run & Shuttle logbook servers
-       Bool_t fFXSCalled[3];           // FXS call status
-       TList  fFXSlist[3];             // List of files retrieved from each FXS
+       TSQLServer *fServer[5];         // pointer to the four FXS + Run & Shuttle logbook servers
+       Bool_t fFXSCalled[4];           // FXS call status
+       TList  fFXSlist[4];             // List of files retrieved from each FXS
        Int_t  fFXSError;               // Variable to keep track of any FXS errors; contains -1 for no error, kDAQ, kDCS, kHLT otherwise
 
        AliCDBEntry* fStatusEntry; // last CDB entry containing a AliShuttleStatus retrieved