Compilation with gcc 3.2.3 (Artur)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 May 2008 10:32:06 +0000 (10:32 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 May 2008 10:32:06 +0000 (10:32 +0000)
MUON/AliMUONTriggerDDLDecoder.h

index c0985a2..55697bc 100644 (file)
@@ -345,11 +345,18 @@ void AliMUONTriggerDDLDecoder<EventHandler>::DecodeBuffer(
        
        // Detect how many regional blocks we expect. If we have no idea then
        // just use what the maximum setting is.
-       switch (EventHandler::GetDarcType(*darcHeader))
+       UInt_t darkType = EventHandler::GetDarcType(*darcHeader);
+       if (darkType == fgkDarcVadorhType)
        {
-       case fgkDarcVadorhType:  fNoRegionals = 1; break;
-       case fgkDarcDefaultType: fNoRegionals = 8; break;
-       default: fNoRegionals = fMaxRegionals; break;
+               fNoRegionals = 1;
+       }
+       else if (darkType == fgkDarcDefaultType)
+       {
+               fNoRegionals = 8;
+       }
+       else
+       {
+               fNoRegionals = fMaxRegionals;
        }
        
        // Check if the DARC header indicates we expect more regionals than we