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 AliHLTTriggerMenuItem.cxx
19 /// @author Artur Szostak <artursz@iafrica.com>
21 /// @brief Implementation of the AliHLTTriggerMenuItem class.
23 /// The AliHLTTriggerMenuItem contains information about a entry in the global
26 #include "AliHLTTriggerMenuItem.h"
27 #include "Riostream.h"
29 ClassImp(AliHLTTriggerMenuItem)
32 AliHLTTriggerMenuItem::AliHLTTriggerMenuItem() :
41 // Default constructor.
43 DefaultResult(true); // The default result for the item is always true.
47 AliHLTTriggerMenuItem::~AliHLTTriggerMenuItem()
49 // Default destructor.
53 void AliHLTTriggerMenuItem::Print(Option_t* option) const
55 // Prints the contents of the trigger menu item.
58 if (opt.Contains("compact"))
60 cout << "{fConditionExpr = \"" << fConditionExpr.Data()
61 << "\", fDomainExpr = \"" << fDomainExpr.Data()
62 << "\", fPrescalar = " << fPrescalar
63 << ", fScaleDown = " << fScaleDown
64 << ", fPriority = " << fPriority
65 << ", default result = " << (DefaultResult() ? "true" : "false")
70 cout << " Description = " << fDescription.Data() << endl;
71 cout << " Trigger condition expression = " << fConditionExpr.Data() << endl;
72 cout << "Trigger domain merge expression = " << fDomainExpr.Data() << endl;
73 cout << " Pre-scalar = " << fPrescalar << endl;
74 cout << " Priority = " << fPriority << endl;
75 cout << " Scale-down = " << fScaleDown << endl;
76 cout << " Default global trigger result = " << (DefaultResult() ? "true" : "false") << endl;