]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/trigger/AliHLTTriggerBarrelMultiplicity.h
- small change
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerBarrelMultiplicity.h
index 19e2c6660c368149d7c241ef0d9612c5ba30909b..d669cf3797a45b4631ae09d444afc23307a54b5b 100644 (file)
@@ -13,6 +13,7 @@
 ///         the central barrel.
 
 #include "AliHLTTrigger.h"
+#include "TString.h"
 
 class AliESDtrack;
 
@@ -21,7 +22,14 @@ class AliESDtrack;
  * HLT trigger component for charged particle multiplicity in the
  * central barrel.
  * 
- * Triggers on charged particle number in a certain pt range.
+ * Triggers on charged particle number in a certain pt range and geometrical
+ * acceptance
+ * 
+ * Multiple instances of this component can serve different trigger
+ * conditions, i.e. component parameters. The different instances get
+ * different names, specified by the '-triggername' component argument.
+ * The configuration is loaded from OCDB entries according to the name, see
+ * below.
  *
  * <h2>General properties:</h2>
  *
@@ -45,12 +53,25 @@ class AliESDtrack;
  *      required minimum pt for a trigger
  * \li -maxpt    <i> pt  </i> <br>
  *      required maximum pt for a trigger
+ * \li -dca-reference    <i> x,y,z  </i> <br>
+ *      reference point for the transverse and longitudinal dca cut
+ * \li -min-ldca    <i> dca  </i> <br>
+ *      minimum longitudinal dca to reference point
+ * \li -max-ldca    <i> dca  </i> <br>
+ *      maximum longitudinal dca to reference point
+ * \li -min-tdca    <i> dca  </i> <br>
+ *      minimum transverse dca to reference point
+ * \li -max-tdca    <i> dca  </i> <br>
+ *      maximum transverse dca to reference point
+ * \li  -triggername    <i> name  </i> <br>
+ *      The name of this specific trigger.
  *
  * By default, configuration is loaded from OCDB, can be overridden by
  * component arguments.
  *
  * <h2>Default CDB entries:</h2>
- * HLT/ConfigHLT/BarrelMultiplicityTrigger: TObjString storing the arguments
+ * HLT/ConfigHLT/BarrelMultiplicityTrigger: TObjString storing the arguments <br>
+ * HLT/ConfigHLT/<name>: for triggers with specific names
  *
  * <h2>Performance:</h2>
  * 
@@ -84,17 +105,21 @@ class AliHLTTriggerBarrelMultiplicity : public AliHLTTrigger
   /// inherited from AliHLTComponent: handle re-configuration event
   int Reconfigure(const char* cdbEntry, const char* chainId);
 
+  /// inherited from AliHLTComponent: handle dcs update event
+  int ReadPreprocessorValues(const char* modules);
+
   /// inherited from AliHLTComponent, scan one argument and
   /// its parameters
   int ScanConfigurationArgument(int argc, const char** argv);
 
  private:
+
   /// inherited from AliHLTTrigger: calculate the trigger
   virtual int DoTrigger();
 
   /// check whether a track meets the criteria
   template<class T>
-  bool CheckCondition(T* track);
+  bool CheckCondition(T* track, float b);
 
   /// pt cut, minimum
   float fPtMin; //! transient
@@ -103,8 +128,25 @@ class AliHLTTriggerBarrelMultiplicity : public AliHLTTrigger
   /// required number of tracks
   int fMinTracks; //!transient
 
+  /// number of coordinates for the DCA reference point
+  const static short fgkDCAReferenceSize=3;
+  /// reference point for the transverse and longitudinal dca cut
+  float fDCAReference[fgkDCAReferenceSize];
+  /// minimum longitudinal dca to reference point
+  float fMinLDca; //!transient
+  /// maximum longitudinal dca to reference point
+  float fMaxLDca; //!transient
+  /// minimum transverse dca to reference point
+  float fMinTDca; //!transient
+  /// maximum transverse dca to reference point
+  float fMaxTDca; //!transient
+  /// magnetic field (dca estimation for)
+  float fSolenoidBz; //!transient
+  /// name of the trigger
+  TString fName; //!transient
+
   /// the default configuration entry for this component
-  static const char* fgkOCDBEntry; //!transient
+  static const char* fgkDefaultOCDBEntry; //!transient
 
   ClassDef(AliHLTTriggerBarrelMultiplicity, 0)
 };