]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliShuttleInterface.h
Bug fix
[u/mrichter/AliRoot.git] / STEER / AliShuttleInterface.h
CommitLineData
57459306 1#ifndef ALI_SHUTTLE_INTERFACE_H
2#define ALI_SHUTTLE_INTERFACE_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//
10// abstract interface class to AliShuttle
11//
12
13#include <TObject.h>
3fe92ec0 14#include <TString.h>
57459306 15
16class TList;
b88146b7 17class AliPreprocessor;
4426d64a 18class AliCDBMetaData;
84090f85 19class AliCDBPath;
4426d64a 20class AliCDBEntry;
57459306 21
22class AliShuttleInterface : public TObject
23{
24 public:
1b82b32d 25 enum System { kDAQ = 0, kDCS, kHLT };
a4e34333 26 enum { kNDetectors = 18 }; // number of subdetectors in ALICE
57459306 27
84090f85 28 virtual UInt_t Store(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData,
29 Int_t validityStart = 0, Bool_t validityInfinite = kFALSE) = 0;
3c78eaa5 30 virtual UInt_t StoreReferenceData(const AliCDBPath& path, TObject* object, AliCDBMetaData* metaData) = 0;
57459306 31 virtual const char* GetFile(Int_t system, const char* detector, const char* id, const char* source) = 0;
32 virtual TList* GetFileSources(Int_t system, const char* detector, const char* id) = 0;
1b82b32d 33 virtual const char* GetRunParameter(const char* lbEntry) = 0;
4426d64a 34 virtual AliCDBEntry* GetFromOCDB(const AliCDBPath& path) = 0;
5c957e4a 35 virtual const char* GetRunType(const char* detCode) = 0;
57459306 36 virtual void Log(const char* detector, const char* message) = 0;
37
b88146b7 38 virtual void RegisterPreprocessor(AliPreprocessor* preprocessor) = 0;
39
1b82b32d 40 static const char* GetSystemName(UInt_t system) {return (system < 3) ? fkSystemNames[system] : 0;}
41
42 static const char* GetOfflineDetName(const char* detName);
43 static const char* GetDetName(UInt_t detPos);
4426d64a 44 static const Int_t GetDetPos(const char* detName);
45 static const UInt_t NDetectors() {return kNDetectors;}
1b82b32d 46
3fe92ec0 47 static TString GetMainCDB () {return fgkMainCDB;}
3fe92ec0 48 static TString GetLocalCDB () {return fgkLocalCDB;}
3fe92ec0 49
50 static TString GetMainRefStorage() {return fgkMainRefStorage;}
3fe92ec0 51 static TString GetLocalRefStorage() {return fgkLocalRefStorage;}
3fe92ec0 52
3fe92ec0 53 static const char* GetShuttleTempDir() {return fgkShuttleTempDir.Data();}
3fe92ec0 54 static const char* GetShuttleLogDir() {return fgkShuttleLogDir.Data();}
55
1b82b32d 56 protected:
4426d64a 57
1b82b32d 58 static const char* fkSystemNames[3]; // names of the systems providing data to the shuttle
3fe92ec0 59 static const char* fgkDetName[kNDetectors]; // names of detectors' preprocessors (3-letter code convention)
60 static const char* fgkOfflineDetName[kNDetectors]; // names of detectors in OCDB (AliRoot naming convention)
61
62 static TString fgkMainCDB; // URI of the main (Grid) CDB storage
63 static TString fgkLocalCDB; // URI of the local backup CDB storage
64 static TString fgkMainRefStorage; // URI of the main (Grid) REFERENCE storage
65 static TString fgkLocalRefStorage; // URI of the local REFERENCE storage
66
67 static TString fgkShuttleTempDir; // path of SHUTTLE temp folder
68 static TString fgkShuttleLogDir; // path of SHUTTLE log folder
1b82b32d 69
57459306 70 private:
71 ClassDef(AliShuttleInterface, 0);
72};
73
74#endif