]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONVCalibParam.h
Removing leftover return
[u/mrichter/AliRoot.git] / MUON / AliMUONVCalibParam.h
index e6ab17b5fdd6e44664957ff0d37f7ab0e19ad8ef..5901d16c1949b897ef779d868d3c5cb1c6a719e2 100644 (file)
@@ -25,12 +25,18 @@ public:
   virtual ~AliMUONVCalibParam();
 
   virtual const char* GetName() const;
+
+  /// Advertise that we can be sorted in TCollections
+  virtual Bool_t IsSortable() const { return kTRUE; }
   
   /// First id of this object
   virtual Int_t ID0() const;
   
   /// Second id of this object (might not be required)
   virtual Int_t ID1() const;
+
+  /// method for sorting pedestal values ordered by ID0 and ID1
+  virtual Int_t Compare(const TObject* object) const;
   
   /// whether or not the value we store are packed, e.g. as v = a*cste + b
   virtual Bool_t IsPacked() const { return kFALSE; }
@@ -43,12 +49,23 @@ public:
     */
   virtual void SetValueAsDouble(Int_t i, Int_t j, Double_t value);
 
+  /// Same as above but w/o bound checking
+  virtual void SetValueAsDoubleFast(Int_t i, Int_t j, Double_t value);
+
   /// Set one value, for channel i, dimension j. Consider value is a float.
   virtual void SetValueAsFloat(Int_t i, Int_t j, Float_t value) = 0;
-  
+
+  /** Set one value, for channel i, dimension j. Consider value is a float.
+    Assume (i,j) are valid indices, i.e. do not check them.
+    */
+  virtual void SetValueAsFloatFast(Int_t i, Int_t j, Float_t value) = 0;
+
   /// Set one value, for channel i, dimension j. Consider value is an integer.
   virtual void SetValueAsInt(Int_t i, Int_t j, Int_t value) = 0;
-  
+
+  /// Same as above but w/o bound checkings.
+  virtual void SetValueAsIntFast(Int_t i, Int_t j, Int_t value) = 0;
+
   /// The number of channels handled by this object.
   virtual Int_t Size() const = 0;
 
@@ -57,15 +74,32 @@ public:
   
   /** Retrieve the value for a given (channel,dim) as a double.
       Only ok if IsDoublePrecision() is kTRUE.
+      (i,j) are checked to within boundaries
     */
   virtual Double_t ValueAsDouble(Int_t i, Int_t j=0) const;
 
-  /// Retrieve the value for a given (channel,dim) as a float.
-  virtual Float_t ValueAsFloat(Int_t i, Int_t j=0) const = 0;
+  /** Retrieve the value for a given (channel,dim) as a double.
+    Only ok if IsDoublePrecision() is kTRUE.
+    Fast means there's no bound checking on (i,j)
+    */
+  virtual Double_t ValueAsDoubleFast(Int_t i, Int_t j=0) const;
   
-  /// Retrieve the value for a given (channel,dim) as an integer.
+  /** Retrieve the value for a given (channel,dim) as a float, with
+      bound checking on (i,j).
+    */
+  virtual Float_t ValueAsFloat(Int_t i, Int_t j=0) const = 0;
+
+  /// Same as above but without bound checking.
+  virtual Float_t ValueAsFloatFast(Int_t i, Int_t j=0) const = 0;
+
+  /** Retrieve the value for a given (channel,dim) as an integer.
+      With bound checking.
+    */
   virtual Int_t ValueAsInt(Int_t i, Int_t j=0) const = 0;
 
+  /// Same as above but w/o bound checking.
+  virtual Int_t ValueAsIntFast(Int_t i, Int_t j=0) const = 0;
+
   /// Unpack a value into a couple (a,b). Returns false if IsPacked()==kFALSE
   virtual Bool_t UnpackValue(Int_t /*value*/, Int_t& /*a*/, Int_t& /*b*/) const { return kFALSE; }
   
@@ -75,10 +109,11 @@ public:
   /// Return 1E38 as invalid float value
   static Float_t InvalidFloatValue() { return 1E38; }
 
-protected:
-    
   static UInt_t BuildUniqueID(Int_t id0, Int_t id1);
   static void DecodeUniqueID(UInt_t uniqueID, Int_t& id0, Int_t& id1);
+
+protected:
+  
   static Int_t ID0(UInt_t uniqueID);
   static Int_t ID1(UInt_t uniqueID);