2 /**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * ALICE Experiment at CERN, All rights reserved. *
6 * Primary Authors: Artur Szostak <artursz@iafrica.com> *
7 * for The ALICE HLT Project. *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
18 /// @file AliHLTGlobalTriggerComponent.cxx
19 /// @author Artur Szostak <artursz@iafrica.com>
21 /// @brief Implementation of the AliHLTGlobalTriggerComponent component class.
23 /// The AliHLTGlobalTriggerComponentComponent class applies the global HLT trigger to all
24 /// trigger information produced by components deriving from AliHLTTrigger.
26 #include "AliHLTGlobalTriggerComponent.h"
27 #include "AliHLTGlobalTriggerDecision.h"
28 #include "AliHLTGlobalTrigger.h"
29 #include "AliHLTGlobalTriggerConfig.h"
30 #include "AliHLTTriggerMenu.h"
31 #include "AliCDBManager.h"
32 #include "AliCDBStorage.h"
33 #include "AliCDBEntry.h"
38 #include "TClonesArray.h"
39 #include "TObjString.h"
41 #include "TInterpreter.h"
45 ClassImp(AliHLTGlobalTriggerComponent)
47 const char* AliHLTGlobalTriggerComponent::fgkTriggerMenuCDBPath = "HLT/ConfigHLT/HLTGlobalTrigger";
50 AliHLTGlobalTriggerComponent::AliHLTGlobalTriggerComponent() :
56 // Default constructor.
58 ClearInfoForNewEvent(false);
62 AliHLTGlobalTriggerComponent::~AliHLTGlobalTriggerComponent()
64 // Default destructor.
66 if (fTrigger != NULL) delete fTrigger;
70 void AliHLTGlobalTriggerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier)
72 // Returns the output data size estimate.
74 constBase = sizeof(AliHLTGlobalTriggerDecision);
79 Int_t AliHLTGlobalTriggerComponent::DoInit(int argc, const char** argv)
81 // Initialises the global trigger component.
84 const char* configFileName = NULL;
85 const char* codeFileName = NULL;
87 TClonesArray includePaths(TObjString::Class());
88 TClonesArray includeFiles(TObjString::Class());
90 for (int i = 0; i < argc; i++)
92 if (strcmp(argv[i], "-config") == 0)
94 if (configFileName != NULL)
96 HLTWarning("Trigger configuration macro was already specified."
97 " Will replace previous value given by -config."
102 HLTError("The trigger configuration macro filename was not specified." );
105 configFileName = argv[i+1];
110 if (strcmp(argv[i], "-includepath") == 0)
114 HLTError("The include path was not specified." );
117 new (includePaths[includePaths.GetEntriesFast()]) TObjString(argv[i+1]);
122 if (strcmp(argv[i], "-include") == 0)
126 HLTError("The include file name was not specified." );
129 new (includeFiles[includeFiles.GetEntriesFast()]) TObjString(argv[i+1]);
134 if (strcmp(argv[i], "-debug") == 0)
136 if (fDebugMode == true)
138 HLTWarning("The debug flag was already specified. Ignoring this instance.");
145 if (strcmp(argv[i], "-usecode") == 0)
147 if (codeFileName != NULL)
149 HLTWarning("Custom trigger code file was already specified."
150 " Will replace previous value given by -usecode."
155 HLTError("The custom trigger code filename was not specified." );
158 codeFileName = argv[i+1];
161 HLTError("The custom trigger class name was not specified." );
164 classname = argv[i+2];
169 HLTError("Unknown option '%s'.", argv[i]);
173 const AliHLTTriggerMenu* menu = NULL;
174 if (configFileName != NULL)
177 cmd += configFileName;
178 gROOT->ProcessLine(cmd);
179 menu = AliHLTGlobalTriggerConfig::Menu();
182 // Try load the trigger menu from the CDB if it is not loaded yet with the
184 if (menu == NULL and AliCDBManager::Instance() != NULL)
186 AliCDBStorage* store = AliCDBManager::Instance()->GetDefaultStorage();
189 HLTError("Could not get the the default storage for the CDB.");
192 Int_t version = store->GetLatestVersion(fgkTriggerMenuCDBPath, GetRunNo());
193 Int_t subVersion = store->GetLatestSubVersion(fgkTriggerMenuCDBPath, GetRunNo(), version);
194 AliCDBEntry* entry = AliCDBManager::Instance()->Get(fgkTriggerMenuCDBPath, GetRunNo(), version, subVersion);
197 HLTError("Could not get the CDB entry for \"%s\".", fgkTriggerMenuCDBPath);
200 TObject* obj = entry->GetObject();
203 HLTError("Configuration object for \"%s\" is missing.", fgkTriggerMenuCDBPath);
206 if (obj->IsA() != AliHLTTriggerMenu::Class())
208 HLTError("Wrong type for configuration object in \"%s\". Found a %s but we expect a AliHLTTriggerMenu.",
209 fgkTriggerMenuCDBPath, obj->ClassName()
213 menu = dynamic_cast<AliHLTTriggerMenu*>(obj);
218 HLTError("No trigger menu configuration found or specified.");
223 if (codeFileName == NULL)
225 HLTDebug("Generating custom HLT trigger class.");
226 result = GenerateTrigger(menu, classname, includePaths, includeFiles);
230 HLTDebug("Loading HLT trigger class from file '%s'.", codeFileName);
231 result = LoadTriggerClass(codeFileName, includePaths);
233 if (result != 0) return result;
235 fTrigger = AliHLTGlobalTrigger::CreateNew(classname.Data());
236 if (fTrigger == NULL)
238 HLTError("Could not create a new instance of '%s'.", classname.Data());
242 fTrigger->FillFromMenu(*menu);
243 fTrigger->ResetCounters(menu->NumberOfItems());
245 // Set the default values from the trigger menu.
246 SetDescription(menu->DefaultDescription());
247 SetTriggerDomain(menu->DefaultTriggerDomain());
253 Int_t AliHLTGlobalTriggerComponent::DoDeinit()
255 // Cleans up the global trigger component.
257 if (fTrigger != NULL)
263 if (!fCodeFileName.IsNull() && gSystem->AccessPathName(fCodeFileName)==0) {
264 TString command="rm "; command+=fCodeFileName;
265 gSystem->Exec(command);
272 AliHLTComponent* AliHLTGlobalTriggerComponent::Spawn()
274 // Creates a new object instance.
276 return new AliHLTGlobalTriggerComponent;
280 int AliHLTGlobalTriggerComponent::DoTrigger()
282 // This method will apply the global trigger decision.
284 if (fTrigger == NULL)
286 HLTFatal("Global trigger implementation object is NULL!");
290 fTrigger->NewEvent();
292 // Fill in the input data.
293 const TObject* obj = GetFirstInputObject();
296 fTrigger->Add(obj, GetDataType(), GetSpecification());
297 obj = GetNextInputObject();
300 // Calculate the global trigger result and trigger domain, then create and push
301 // back the new global trigger decision object.
303 AliHLTTriggerDomain triggerDomain;
304 bool triggerResult = fTrigger->CalculateTriggerDecision(triggerDomain, description);
306 AliHLTGlobalTriggerDecision decision(
308 // The following will cause the decision to be generated with default values
309 // (set in fTriggerDomain and fDescription) if the trigger result is false.
310 (triggerResult == true) ? triggerDomain : GetTriggerDomain(),
311 (triggerResult == true) ? description.Data() : GetDescription()
313 decision.SetCounters(fTrigger->Counters());
315 // Add the input objects used to the global decision.
316 obj = GetFirstInputObject();
319 if (obj->IsA() == AliHLTTriggerDecision::Class())
321 decision.AddTriggerInput( *static_cast<const AliHLTTriggerDecision*>(obj) );
325 decision.AddInputObject(obj);
327 obj = GetNextInputObject();
330 TriggerEvent(&decision);
335 int AliHLTGlobalTriggerComponent::GenerateTrigger(
336 const AliHLTTriggerMenu* menu, TString& name,
337 const TClonesArray& includePaths, const TClonesArray& includeFiles
340 // Generates the global trigger class that will implement the specified trigger menu.
341 // See header for more details.
343 // Create a new UUID and replace the '-' characters with '_' to make it a valid
346 TString uuidstr = uuid.AsString();
347 for (Int_t i = 0; i < uuidstr.Length(); i++)
349 if (uuidstr[i] == '-') uuidstr[i] = '_';
352 // Create the name of the new class.
353 name = "AliHLTGlobalTriggerImpl_";
355 fCodeFileName = name + ".cxx";
357 // Open a text file to write the code and generate the new class.
358 fstream code(fCodeFileName.Data(), ios_base::out | ios_base::trunc);
361 HLTError("Could not open file '%s' for writing.", fCodeFileName.Data());
365 TClonesArray symbols(AliHLTTriggerMenuSymbol::Class());
366 int result = BuildSymbolList(menu, symbols);
367 if (result != 0) return result;
369 code << "#include <cstring>" << endl;
370 code << "#include \"TString.h\"" << endl;
371 code << "#include \"TClonesArray.h\"" << endl;
372 code << "#include \"AliHLTGlobalTrigger.h\"" << endl;
373 code << "#include \"AliHLTGlobalTriggerDecision.h\"" << endl;
374 code << "#include \"AliHLTDomainEntry.h\"" << endl;
375 code << "#include \"AliHLTTriggerDomain.h\"" << endl;
376 code << "#include \"AliHLTReadoutList.h\"" << endl;
377 code << "#include \"AliHLTTriggerMenu.h\"" << endl;
378 code << "#include \"AliHLTTriggerMenuItem.h\"" << endl;
379 code << "#include \"AliHLTTriggerMenuSymbol.h\"" << endl;
381 // Add any include files that were specified on the command line.
382 for (Int_t i = 0; i < includeFiles.GetEntriesFast(); i++)
384 TString file = static_cast<TObjString*>(includeFiles.UncheckedAt(i))->String();
385 code << "#include \"" << file.Data() << "\"" << endl;
388 code << "class " << name << " : public AliHLTGlobalTrigger" << endl;
390 code << "public:" << endl;
392 code << " " << name << "() : AliHLTGlobalTrigger()";
393 // Write the symbols in the trigger menu in the initialisation list.
394 for (Int_t i = 0; i < symbols.GetEntriesFast(); i++)
397 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(i) );
398 code << " " << symbol->Name() << "()," << endl;
399 if (strcmp(symbol->ObjectClass(), "AliHLTTriggerDecision") == 0)
401 code << " " << symbol->Name() << "TriggerDomain()," << endl;
403 code << " " << symbol->Name() << "DomainEntry(kAliHLTAnyDataType)";
405 for (UInt_t i = 0; i < menu->NumberOfItems(); i++)
407 code << "," << endl << " fMenuItemDescription" << i << "()";
409 code << endl << " {" << endl;
412 code << " SetLocalLoggingLevel(kHLTLogAll);" << endl;
413 code << " HLTInfo(\"Creating new instance at %p.\", this);" << endl;
415 code << " }" << endl;
417 code << " virtual ~" << name << "() {" << endl;
420 code << " HLTInfo(\"Deleting instance at %p.\", this);" << endl;
422 code << " }" << endl;
424 // Generate the FillFromMenu method.
425 code << " virtual void FillFromMenu(const AliHLTTriggerMenu& menu) {" << endl;
428 code << " HLTDebug(\"Filling description entries from trigger menu for global trigger %p.\", this);" << endl;
430 for (UInt_t i = 0; i < menu->NumberOfItems(); i++)
432 code << " fMenuItemDescription" << i << " = (menu.Item(" << i
433 << ") != NULL) ? menu.Item(" << i << ")->Description() : \"\";" << endl;
437 code << " HLTDebug(\"Finished filling description entries from trigger menu.\");" << endl;
438 code << " HLTDebug(\"Filling domain entries from trigger menu symbols for global trigger %p.\", this);" << endl;
440 code << " for (Int_t i = 0; i < menu.SymbolArray().GetEntriesFast(); i++) {" << endl;
441 code << " const AliHLTTriggerMenuSymbol* symbol = dynamic_cast<const"
442 " AliHLTTriggerMenuSymbol*>(menu.SymbolArray().UncheckedAt(i));" << endl;
443 code << " if (symbol == NULL) continue;" << endl;
444 for (Int_t i = 0; i < symbols.GetEntriesFast(); i++)
446 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(i) );
447 code << " if (strcmp(symbol->Name(), \"" << symbol->Name() << "\") == 0) {" << endl;
450 code << " HLTDebug(\"Assinging domain entry value to match for symbol '%s' to '%s'.\","
451 " symbol->Name(), symbol->BlockType().AsString().Data());" << endl;
453 code << " " << symbol->Name() << "DomainEntry = symbol->BlockType();" << endl;
454 code << " continue;" << endl;
455 code << " }" << endl;
457 code << " }" << endl;
460 code << " HLTDebug(\"Finished filling domain entries from trigger menu symbols.\");" << endl;
462 code << " }" << endl;
464 // Generate the NewEvent method.
465 code << " virtual void NewEvent() {" << endl;
468 code << " HLTDebug(\"New event for global trigger object %p, initialising variables to default values.\", this);" << endl;
470 // Write code to initialise the symbols in the trigger menu to their default values.
471 for (Int_t i = 0; i < symbols.GetEntriesFast(); i++)
473 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(i) );
474 code << " " << symbol->Name() << " = " << symbol->DefaultValue() << ";" << endl;
475 if (strcmp(symbol->ObjectClass(), "AliHLTTriggerDecision") == 0)
477 code << " " << symbol->Name() << "TriggerDomain.Clear();" << endl;
482 code << " HLTDebug(\"Finished initialising variables.\");" << endl;
484 code << " }" << endl;
486 // Generate the Add method.
487 code << " virtual void Add(const TObject* _object_, const AliHLTComponentDataType& _type_, AliHLTUInt32_t _spec_) {" << endl;
488 code << " AliHLTDomainEntry _type_spec_(_type_, _spec_);" << endl;
491 code << " HLTDebug(\"Adding TObject %p, with class name '%s' from data block"
492 " '%s', to global trigger object %p\", _object_, _object_->ClassName(),"
493 " _type_spec_.AsString().Data(), this);" << endl;
494 code << " _object_->Print();" << endl;
495 code << " bool _object_assigned_ = false;" << endl;
497 for (Int_t i = 0; i < symbols.GetEntriesFast(); i++)
499 // Write code to check if the block type, specification and class name is correct.
500 // Then write code to assign the variable from the input object.
501 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(i) );
502 TString expr = symbol->AssignExpression();
503 if (expr == "") continue; // Skip entries that have no assignment expression.
504 bool isTrigDecision = strcmp(symbol->ObjectClass(), "AliHLTTriggerDecision") == 0;
509 code << " HLTDebug(\"Trying to match input object to class '"
510 << symbol->ObjectClass() << "', trigger name '" << symbol->Name()
511 << "' and block type '%s'\", " << symbol->Name()
512 << "DomainEntry.AsString().Data());" << endl;
516 code << " HLTDebug(\"Trying to match input object to class '"
517 << symbol->ObjectClass() << "' and block type '%s'\", "
518 << symbol->Name() << "DomainEntry.AsString().Data());" << endl;
521 code << " const " << symbol->ObjectClass() << "* " << symbol->Name()
522 << "_object_ = dynamic_cast<const " << symbol->ObjectClass()
523 << "*>(_object_);" << endl;
524 code << " if (" << symbol->Name() << "_object_ != NULL and ";
527 code << "strcmp(" << symbol->Name() << "_object_->Name(), \""
528 << symbol->Name() << "\") == 0 and ";
530 code << symbol->Name() << "DomainEntry == _type_spec_) {" << endl;
531 TString fullname = symbol->Name();
532 fullname += "_object_";
533 expr.ReplaceAll("this", fullname);
534 code << " this->" << symbol->Name() << " = " << expr.Data() << ";" << endl;
537 code << " this->" << symbol->Name() << "TriggerDomain = "
538 << fullname.Data() << "->TriggerDomain();" << endl;
542 code << " HLTDebug(\"Added TObject %p with class name '%s' to variable "
543 << symbol->Name() << "\", _object_, _object_->ClassName());" << endl;
544 code << " _object_assigned_ = true;" << endl;
546 code << " }" << endl;
550 code << " if (not _object_assigned_) HLTDebug(\"Did not assign TObject %p"
551 " with class name '%s' to any variable.\", _object_, _object_->ClassName());"
554 code << " }" << endl;
556 // Generate the CalculateTriggerDecision method.
557 code << " virtual bool CalculateTriggerDecision(AliHLTTriggerDomain& _domain_, TString& _description_) {" << endl;
560 code << " HLTDebug(\"Calculating global HLT trigger result with trigger object at %p.\", this);" << endl;
562 for (UInt_t i = 0; i < menu->NumberOfItems(); i++)
564 const AliHLTTriggerMenuItem* item = menu->Item(i);
565 TString mergeExpr = item->MergeExpression();
566 for (Int_t j = 0; j < symbols.GetEntriesFast(); j++)
568 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(j) );
569 if (strcmp(symbol->ObjectClass(), "AliHLTTriggerDecision") != 0) continue;
570 TString newname = symbol->Name();
571 newname += "TriggerDomain";
572 mergeExpr.ReplaceAll(symbol->Name(), newname);
576 code << " HLTDebug(\"Trying trigger condition " << i
577 << " (Description = '%s').\", fMenuItemDescription" << i << ".Data());"
580 code << " if (" << item->TriggerCondision() << ") {" << endl;
581 code << " IncrementCounter(" << i << ");" << endl;
582 const char* indentation = "";
583 if (item->PreScalar() != 0)
586 code << " if ((GetCounter(" << i << ") % " << item->PreScalar() << ") == 1) {" << endl;
588 code << indentation << " _domain_ = " << mergeExpr.Data() << ";" << endl;
589 code << indentation << " _description_ = fMenuItemDescription" << i << ";" << endl;
592 code << indentation << " HLTDebug(\"Matched trigger condition " << i
593 << " (Description = '%s').\", fMenuItemDescription" << i << ".Data());" << endl;
595 code << indentation << " return true;" << endl;
596 if (item->PreScalar() != 0)
598 code << " }" << endl;
600 code << " }" << endl;
602 code << " return false;" << endl;
603 code << " }" << endl;
605 // Generate the custom Factory class.
606 code << " class FactoryImpl : public AliHLTGlobalTrigger::Factory" << endl;
607 code << " {" << endl;
608 code << " public:" << endl;
609 code << " virtual const char* ClassName() const {" << endl;
610 code << " return \"" << name << "\";" << endl;
611 code << " }" << endl;
612 code << " virtual AliHLTGlobalTrigger* New() const {" << endl;
613 code << " return new " << name << "();" << endl;
614 code << " }" << endl;
615 code << " };" << endl;
617 code << "private:" << endl;
618 // Add the symbols in the trigger menu to the list of private variables.
619 for (Int_t i = 0; i < symbols.GetEntriesFast(); i++)
621 AliHLTTriggerMenuSymbol* symbol = static_cast<AliHLTTriggerMenuSymbol*>( symbols.UncheckedAt(i) );
622 code << " " << symbol->Type() << " " << symbol->Name() << ";" << endl;
623 if (strcmp(symbol->ObjectClass(), "AliHLTTriggerDecision") == 0)
625 code << " AliHLTTriggerDomain " << symbol->Name() << "TriggerDomain;" << endl;
627 code << " AliHLTDomainEntry " << symbol->Name() << "DomainEntry;" << endl;
629 for (UInt_t i = 0; i < menu->NumberOfItems(); i++)
631 code << " TString fMenuItemDescription" << i << ";" << endl;
633 code << "};" << endl;
635 // Write a global object for the Factory class for automatic registration.
636 code << "namespace {" << endl;
637 code << " const " << name << "::FactoryImpl gkFactoryImpl;" << endl;
638 code << "};" << endl;
642 // Now we need to compile and load the new class.
643 result = LoadTriggerClass(fCodeFileName, includePaths);
648 int AliHLTGlobalTriggerComponent::LoadTriggerClass(
649 const char* filename, const TClonesArray& includePaths
652 // Loads the code for a custom global trigger class implementation on the fly.
654 TString compiler = gSystem->GetBuildCompilerVersion();
655 if (compiler.Contains("gcc") or compiler.Contains("icc"))
657 TString includePath = "-I${ALICE_ROOT}/include -I${ALICE_ROOT}/HLT/BASE -I${ALICE_ROOT}/HLT/trigger";
658 // Add any include paths that were specified on the command line.
659 for (Int_t i = 0; i < includePaths.GetEntriesFast(); i++)
661 TString path = static_cast<TObjString*>(includePaths.UncheckedAt(i))->String();
665 gSystem->SetIncludePath(includePath);
666 gSystem->SetFlagsOpt("-O3 -DNDEBUG");
667 gSystem->SetFlagsDebug("-g3 -DDEBUG -D__DEBUG");
672 result = gSystem->CompileMacro(filename, "g");
676 result = gSystem->CompileMacro(filename, "O");
680 HLTFatal("Could not compile and load global trigger menu implementation.");
686 // If we do not support the compiler then try interpret the class instead.
689 Int_t errorcode = TInterpreter::kNoError;
690 gROOT->ProcessLine(cmd, &errorcode);
691 if (errorcode != TInterpreter::kNoError)
693 HLTFatal("Could not load interpreted global trigger menu implementation"
694 " (Interpreter error code = %d).",
705 int AliHLTGlobalTriggerComponent::FindSymbol(const char* name, const TClonesArray& list)
707 // Searches for the named symbol in the given list.
708 // See header for more details.
710 for (int i = 0; i < list.GetEntriesFast(); i++)
712 const AliHLTTriggerMenuSymbol* symbol = dynamic_cast<const AliHLTTriggerMenuSymbol*>( list.UncheckedAt(i) );
713 if (symbol == NULL) continue;
714 if (strcmp(symbol->Name(), name) == 0) return i;
720 int AliHLTGlobalTriggerComponent::BuildSymbolList(const AliHLTTriggerMenu* menu, TClonesArray& list)
722 // Builds the list of symbols to use in the custom global trigger menu
723 // implementation class.
724 // See header for more details.
726 for (UInt_t i = 0; i < menu->NumberOfSymbols(); i++)
728 const AliHLTTriggerMenuSymbol* symbol = menu->Symbol(i);
729 if (FindSymbol(symbol->Name(), list) != -1)
731 HLTError("Multiple symbols with the name '%s' defined in the trigger menu.", symbol->Name());
734 new (list[list.GetEntriesFast()]) AliHLTTriggerMenuSymbol(*symbol);
737 TRegexp exp("[_a-zA-Z][_a-zA-Z0-9]*");
738 TRegexp hexexp("x[a-fA-F0-9]+");
739 for (UInt_t i = 0; i < menu->NumberOfItems(); i++)
741 const AliHLTTriggerMenuItem* item = menu->Item(i);
742 TString str = item->TriggerCondision();
747 Ssiz_t pos = exp.Index(str, &length, start);
748 if (pos == kNPOS) break;
751 // Check if there is a numerical character before the found
752 // regular expression. If so, then the symbol is not a valid one
753 // and should be skipped.
756 bool notValid = false;
759 case '0': case '1': case '2': case '3': case '4':
760 case '5': case '6': case '7': case '8': case '9':
767 if (notValid) continue;
769 TString s = str(pos, length);
771 if (s == "and" or s == "and_eq" or s == "bitand" or s == "bitor" or
772 s == "compl" or s == "not" or s == "not_eq" or s == "or" or
773 s == "or_eq" or s == "xor" or s == "xor_eq" or s == "true" or
777 // Ignore iso646.h and other keywords.
781 if (FindSymbol(s.Data(), list) == -1)
783 AliHLTTriggerMenuSymbol newSymbol;
784 newSymbol.Name(s.Data());
785 newSymbol.Type("bool");
786 newSymbol.ObjectClass("AliHLTTriggerDecision");
787 newSymbol.AssignExpression("this->Result()");
788 newSymbol.DefaultValue("false");
789 new (list[list.GetEntriesFast()]) AliHLTTriggerMenuSymbol(newSymbol);
792 while (start < str.Length());