]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDCSValue.h
Protection added in case no ESD files have been chained.
[u/mrichter/AliRoot.git] / STEER / AliDCSValue.h
index 7df7b3dbbbac40dda226443a56a4e706e2b0f6b3..334611ef0bfdcd89728cef2e9027c0a7d466a087 100644 (file)
@@ -21,19 +21,13 @@ public:
     kChar = 2,
     kInt = 3,
     kUInt = 4,
-    kFloat = 5,
-
-    kDynBool = 11,
-    kDynChar = 12,
-    kDynInt = 13,
-    kDynUInt = 14,
-    kDynFloat = 15
+    kFloat = 5
   };
 
   AliDCSValue();
   AliDCSValue(const AliDCSValue& c);
 
-  ~AliDCSValue();
+  virtual ~AliDCSValue();
 
   AliDCSValue& operator=(const AliDCSValue& c);
   virtual void Copy(TObject& c) const;
@@ -44,34 +38,35 @@ public:
   AliDCSValue(UInt_t value, UInt_t timeStamp);
   AliDCSValue(Float_t value, UInt_t timeStamp);
 
-  AliDCSValue(Int_t size, Bool_t* vals, UInt_t timeStamp);
-  AliDCSValue(Int_t size, Char_t* vals, UInt_t timeStamp);
-  AliDCSValue(Int_t size, Int_t* vals, UInt_t timeStamp);
-  AliDCSValue(Int_t size, UInt_t* vals, UInt_t timeStamp);
-  AliDCSValue(Int_t size, Float_t* vals, UInt_t timeStamp);
-
   Bool_t GetBool() const { return fBool; }
   Char_t GetChar() const { return fChar; }
   Int_t GetInt() const { return fInt; }
   UInt_t GetUInt() const { return fUInt; }
   Float_t GetFloat() const { return fFloat; }
 
-  Bool_t GetDynBool(Int_t n) const { return fBoolPtr[n]; }
-  Char_t GetDynChar(Int_t n) const { return fCharPtr[n]; }
-  Int_t GetDynInt(Int_t n) const { return fIntPtr[n]; }
-  UInt_t GetDynUInt(Int_t n) const { return fUIntPtr[n]; }
-  Float_t GetDynFloat(Int_t n) const { return fFloatPtr[n]; }
-
   Type GetType() const { return fType; }
-  Int_t GetDynamicSize() const { return fLength; }
 
   UInt_t GetTimeStamp() const { return fTimeStamp; }
   void SetTimeStamp(UInt_t timeStamp) { fTimeStamp = timeStamp; }
 
   Int_t GetSize() const;
-  static Bool_t IsDynamic(Type type);
 
   const Char_t* ToString() const;
+  void Print(Option_t* /*opt*/) const;
+
+
+/**********************************************/
+
+  Int_t Compare(const TObject* obj) const
+    { if( fTimeStamp < ((AliDCSValue *)obj )->fTimeStamp ) return -1;
+      if( fTimeStamp == ((AliDCSValue *)obj )->fTimeStamp ) return 0;
+      return 1;
+    }
+
+  Bool_t IsSortable() const { return kTRUE; }
+
+/*********************************************/
+
 
 protected:
   void Init();
@@ -84,14 +79,6 @@ protected:
   UInt_t fUInt;         // uint value
   Float_t fFloat;       // float value
 
-  UInt_t fLength;       // length of the following arrays, the ones that are != 0 are expected to contain fLength entries
-
-  Bool_t* fBoolPtr;     //[fLength] bool array
-  Char_t* fCharPtr;     //[fLength] char array
-  Int_t* fIntPtr;       //[fLength] int array
-  UInt_t* fUIntPtr;     //[fLength] uint array
-  Float_t* fFloatPtr;   //[fLength] float array
-
   UInt_t fTimeStamp;    // timestamp of this value
 
        ClassDef(AliDCSValue, 2);