]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/AliHLTMUONUtils.h
Fixing code so that components use the new standard DDL_RAW data type.
[u/mrichter/AliRoot.git] / HLT / MUON / AliHLTMUONUtils.h
index d916dde574da2161729be4c980d619d78cb9ac0e..c6abda57354521fb7973c66b420004b20a4d12c5 100644 (file)
@@ -250,6 +250,24 @@ public:
         */
        static AliHLTUInt32_t DDLNumberToSpec(AliHLTInt32_t ddlNo);
 
+       /**
+        * Returns true if the given specification was for a single trigger DDL.
+        */
+       static bool IsTriggerDDL(AliHLTUInt32_t spec)
+       {
+               AliHLTInt32_t ddl = SpecToDDLNumber(spec);
+               return (20 <= ddl and ddl <= 21);
+       }
+
+       /**
+        * Returns true if the given specification was for a single tracker DDL.
+        */
+       static bool IsTrackerDDL(AliHLTUInt32_t spec)
+       {
+               AliHLTInt32_t ddl = SpecToDDLNumber(spec);
+               return (0 <= ddl and ddl <= 19);
+       }
+
        /**
         * These codes indicate the reason why a data block failed its
         * validity check.