]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/OnlineAnalysis/AliHLTMUONCalculations.h
Added the dimuon trigger decision component, its default configuration CDB entries...
[u/mrichter/AliRoot.git] / HLT / MUON / OnlineAnalysis / AliHLTMUONCalculations.h
index 7cc588df1be9a1c6a25026eebdb7500dc7fc7c69..9e5281a8a54b7c3b2eb7d87a8cf2d5fec07efab6 100644 (file)
@@ -15,8 +15,8 @@
 #include "AliHLTMUONDataTypes.h"
 
 /*
- * Note: this class is not reentrant so thread protection must be explicit in
- * any multi-threaded usage.
+ * Note: this class uses static global variables so thread protection must be
+ * explicit in any multi-threaded usage.
  */
 class AliHLTMUONCalculations
 {
@@ -50,7 +50,19 @@ public:
        static AliHLTFloat32_t Px() { return fgPx; }
        static AliHLTFloat32_t Py() { return fgPy; }
        static AliHLTFloat32_t Pz() { return fgPz; }
-               
+       
+       /// Calculates the invariant mass for a pair of particles.
+       static AliHLTFloat32_t ComputeMass(
+                       AliHLTFloat32_t massA,
+                       AliHLTFloat32_t pxA,
+                       AliHLTFloat32_t pyA,
+                       AliHLTFloat32_t pzA,
+                       AliHLTFloat32_t massB,
+                       AliHLTFloat32_t pxB,
+                       AliHLTFloat32_t pyB,
+                       AliHLTFloat32_t pzB
+               );
+       
 private:
 
        // Prevent destroying or creating of this object.