]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTReadoutList.h
HLTcalo module
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTReadoutList.h
index 9415a34cc0047f65402f8e225612fbca8d9bc1a5..339c0d03cd7c95901e0183d9b1e3b7c2c36f1628 100644 (file)
@@ -248,9 +248,9 @@ class AliHLTReadoutList : public TNamed
   /**
    * This typecast operator converts the readout list to the AliHLTEventDDL
    * structure format.
-   * \return  Copy of the AliHLTEventDDL raw structure.
+   * \return  Constant reference to the AliHLTEventDDL raw structure.
    */
-  operator AliHLTEventDDL () const { return fReadoutList; }
+  operator const AliHLTEventDDL& () const { return fReadoutList; }
   
   /**
    * This typecast operator converts the readout list to the AliHLTEventDDL
@@ -381,14 +381,11 @@ class AliHLTReadoutList : public TNamed
     return result.operator -= (list);
   }
   
- private:
-  
   /**
    * Decodes the word index and bit index within that word for the readout list structure.
-   * \param ddlId <i>[in]</i>  The ID number of the DDL to decode.
-   * \param wordIndex <i>[out]</i>  the word index of the word to modify or check
-   *    within fReadoutList.fList
-   * \param bitIndex <i>[out]</i>   the bit index of the bit to modify or check
+   * \param [in] ddlId   The ID number of the DDL to decode.
+   * \param [out] wordIndex  the word index of the word to modify or check within fReadoutList.fList
+   * \param [out] bitIndex   the bit index of the bit to modify or check
    *    within the word pointed to by <i>wordIndex</i>.
    * \return  true if the ddlId was decoded and false if it was invalid.
    * \note We do not check extensively if the ddlId is invalid. Just simple checks
@@ -396,6 +393,15 @@ class AliHLTReadoutList : public TNamed
    */
   static bool DecodeDDLID(Int_t ddlId, Int_t& wordIndex, Int_t& bitIndex);
   
+ private:
+  
+  /**
+   * This method fills the internal bit field structure taking care of converting
+   * from the old format to the new one.
+   * \param list  The raw DDL readout list bits.
+   */
+  void FillStruct(const AliHLTEventDDL& list);
+  
   AliHLTEventDDL fReadoutList; /// The DDL readout list structure.
   
   ClassDef(AliHLTReadoutList, 3) // Readout list object used for manipulating and storing an AliHLTEventDDL structure.