]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
data specification and meta data for CDB entries (Jenny)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2008 09:23:26 +0000 (09:23 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2008 09:23:26 +0000 (09:23 +0000)
HLT/comp/AliHLTCOMPHuffmanAltroCalibComponent.cxx
HLT/comp/AliHLTCOMPHuffmanData.cxx
HLT/comp/AliHLTCOMPHuffmanData.h

index 444d4ad668f42d0ab718ae609faadc266f76f1a9..b656117bf0791ce1bc79e6241b3dafba6ca1454c 100644 (file)
@@ -356,7 +356,10 @@ Int_t AliHLTCOMPHuffmanAltroCalibComponent::ShipDataToFXS( const AliHLTComponent
   huffmanrootfile->Close();
 
   // ** PushBack data to FXS ...
+  // currently specification has to be put in by command line argument!
+  Int_t dataspec = (Int_t) fSpecification;
 
+  fHuffmanData->SetOCDBSpecifications(fOrigin, dataspec);
   PushToFXS( (TObject*) fHuffmanData, "TPC", "HuffmanData" ) ;
   
   return 0;
index e86e6638cf7ac0a08bd7d8ab16cf6f19803cd14a..d2e11b2867faf593a15c15ef55af39ef64da0f18 100644 (file)
@@ -79,3 +79,13 @@ AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* AliHLTCOMPHuffmanData::G
 
   return codetable;
 }
+
+Int_t AliHLTCOMPHuffmanData::SetOCDBSpecifications(TString origin, Int_t dataspec)
+{
+  // see header file for class documentation
+  fOrigin = origin;
+  fDataSpec = dataspec;
+
+  return 0;
+}
+
index 6db202f09b5096c0606e93d94b31f76970ee7344..6dc745961c7c22b73acdbd667ac0ed7ea662c3f6 100644 (file)
@@ -82,6 +82,23 @@ public:
   */
   AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* GetCodeTable(AliHLTCOMPHuffmanCodeData::AliHLTCOMPHuffmanCodeStruct* codetable);
 
+  /** set specifications for Huffman data to be recognised again in the Preprocessor before storing the data in the OCDB 
+   * @param origin string to detector origin
+   * @param dataspec integer to define data specification
+   * @return 0 upon success
+   **/
+  Int_t SetOCDBSpecifications(TString origin, Int_t dataspec);
+
+  /** get detector origin (used in Preprocessor of OCDB)
+   * @return fOrigin (TString)
+   **/
+  TString GetOrigin() {return fOrigin;}
+
+  /** get dataspec (i.e. table number from 1 to 6) (used in Preprocessor of OCDB)
+   * @return dataspec (Int_t)
+   **/
+  Int_t GetDataSpec() {return fDataSpec;}
+
 private:
 
   /** copy constructor prohibited */
@@ -94,6 +111,13 @@ private:
   AliHLTCOMPHuffmanOccurrenceData fOccurrenceTable[TIMEBINS]; // occurrence table for all ADC-values
   /** array of instances of HuffmanCodeData thtat contains complete Huffman code table */
   AliHLTCOMPHuffmanCodeData fCodeTable[TIMEBINS];             // Huffman translation table for all ADC-values
+
+ /** define detector where this data comes from **/
+  TString fOrigin;
+
+  /** define dataspecification where this data comes from **/
+  Int_t fDataSpec;
+    
     
   ClassDef(AliHLTCOMPHuffmanData, 1)