]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTComponent.h
Changes for #90436: Misuse of TClonesArray containing AliESDMuonCluster
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTComponent.h
index f8c8a4f6892831d9adb6ad503d301fe871836fbc..849dcae870a2c354da8fad8a38060765715d9573 100644 (file)
@@ -83,7 +83,7 @@ class TObjArray;
 class TMap;
 class TStopwatch;
 class TUUID;
-class AliRawDataHeader;
+struct AliRawDataHeader;
 class AliHLTComponent;
 class AliHLTMemoryFile;
 class AliHLTCTPData;
@@ -382,6 +382,10 @@ typedef vector<AliHLTMemoryFile*>         AliHLTMemoryFilePList;
  * \li -pushback-period=period     <br>
  *      scale down for PushBack of objects, shipped only for one event
  *      every <i>period</i> seconds
+ * \li -event-module=number     <br>
+ *      This option reduces the event processing rate by processing only n'th event
+ *      based on the modulo number <i>number</i>. The scale down should be about
+ *      1/<i>number</i>, where <i>number</i> is a positive integer.
  *
  * @ingroup alihlt_component
  * @section alihltcomponent-members Class members
@@ -688,8 +692,8 @@ class AliHLTComponent : public AliHLTLogging {
   /**
    * Copy data type structure
    * Copies the value an AliHLTComponentDataType structure to another one
-   * @param[out] tgtdt   target structure
-   * @param[in] srcdt   source structure
+   * @param [out] tgtdt   target structure
+   * @param [in] srcdt   source structure
    */
   static void CopyDataType(AliHLTComponentDataType& tgtdt, const AliHLTComponentDataType& srcdt);
 
@@ -739,13 +743,13 @@ class AliHLTComponent : public AliHLTLogging {
 
   /**
    * Extracts the different data parts from the trigger data structure.
-   * [in] @param trigData  The trigger data as passed to the DoProcessing method.
-   * [out] @param attributes  The data block attributes given by the HLT framework.
-   * [out] @param status  The HLT status bits given by the HLT framework.
-   * [out] @param cdh  The common data header received from DDL links.
-   * [out] @param readoutlist  The readout list to fill with readout list bits
+   * @param [in] trigData  The trigger data as passed to the DoProcessing method.
+   * @param [out] attributes  The data block attributes given by the HLT framework.
+   * @param [out] status  The HLT status bits given by the HLT framework.
+   * @param [out] cdh  The common data header received from DDL links.
+   * @param [out] readoutlist  The readout list to fill with readout list bits
    *                           passed on by the HLT framework.
-   * [in] @param printErrors  If true then error messages are generated as necessary
+   * @param [in] printErrors  If true then error messages are generated as necessary
    *                          and suppressed otherwise.
    * @note If any of the output parameters are set to NULL then the field is not set.
    *   For example, the following line will only fill the CDH pointer.
@@ -774,9 +778,9 @@ class AliHLTComponent : public AliHLTLogging {
 
   /**
    * Extracts the readout list from a trigger data structure.
-   * [in] @param trigData  The trigger data as passed to the DoProcessing method.
-   * [out] @param list  The output readout list to fill.
-   * [in] @param printErrors  If true then error messages are generated as necessary
+   * @param [in] trigData  The trigger data as passed to the DoProcessing method.
+   * @param [out] list  The output readout list to fill.
+   * @param [in] printErrors  If true then error messages are generated as necessary
    *                          and suppressed otherwise.
    * @return zero on success or one of the error codes returned by ExtractTriggerData.
    */
@@ -790,7 +794,7 @@ class AliHLTComponent : public AliHLTLogging {
 
   /**
    * Extracts the event type from the given Common Data Header.
-   * [in] @param cdh  The Common Data Header to extract the event type from.
+   * @param [in] cdh  The Common Data Header to extract the event type from.
    * @return the event type code from the CDH.
    */
   static AliHLTUInt32_t ExtractEventTypeFromCDH(const AliRawDataHeader* cdh);
@@ -1112,11 +1116,7 @@ class AliHLTComponent : public AliHLTLogging {
    * @param subVersion  subversion of the entry
    * @param key       key of the object within TMap
    */
-  TObject* LoadAndExtractOCDBObject(const char* path, int version = -1, int subVersion = -1, const char* key=NULL);
-
-  TObject* LoadAndExtractOCDBObject(const char* path, const char* key) {
-    return LoadAndExtractOCDBObject(path, -1, -1, key);
-  }
+  TObject* LoadAndExtractOCDBObject(const char* path, const char* key=NULL) const;
 
   /**
    * Get event number.
@@ -1823,6 +1823,9 @@ class AliHLTComponent : public AliHLTLogging {
   int fPushbackPeriod;                                             //! transient
   /// time of last executed PushBack
   int fLastPushBackTime;                                           //! transient
+  
+  /// Event modulo for down scaling the processing rate.
+  int fEventModulo;                                                //! transient
 
   ClassDef(AliHLTComponent, 0)
 };