]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Minor bug fixes: Error messages were not being printed correctly and parsing of comma...
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Dec 2007 10:27:09 +0000 (10:27 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Dec 2007 10:27:09 +0000 (10:27 +0000)
HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMComponent.cxx

index 478c1e7dbd6e5e017af826da370ac487d8df4dfd..47ae0380163cda04a6629c4f1e00224bb561f190 100644 (file)
@@ -151,7 +151,13 @@ int AliHLTMUONMansoTrackerFSMComponent::DoInit(int argc, const char** argv)
        for (int i = 0; i < argc; i++)
        {
                if (strcmp(argv[i], "-warn_on_unexpected_block") == 0)
+               {
                        fWarnForUnexpecedBlock = true;
+                       continue;
+               }
+
+               HLTError("Unknown option '%s'.", argv[i]);
+               return EINVAL;
        }
        
        const int initArraySize = 10;
@@ -307,7 +313,7 @@ int AliHLTMUONMansoTrackerFSMComponent::DoEvent(
                                        HLTError("Received a reconstructed hits data block with a record"
                                                " width of %d bytes, but the expected value is %d bytes."
                                                " The block might be corrupt.",
-                                               blocks[n].fSize, headerSize
+                                               inblock.CommonBlockHeader().fRecordWidth, expectedWidth
                                        );
                                        continue;
                                }
@@ -382,7 +388,7 @@ int AliHLTMUONMansoTrackerFSMComponent::DoEvent(
                                HLTError("Received a trigger records data block with a record"
                                        " width of %d bytes, but the expected value is %d bytes."
                                        " The block might be corrupt.",
-                                       blocks[n].fSize, headerSize
+                                       inblock.CommonBlockHeader().fRecordWidth, expectedWidth
                                );
                                continue;
                        }