]>
Commit | Line | Data |
---|---|---|
1 | // $Id$ | |
2 | /************************************************************************** | |
3 | * This file is property of and copyright by the ALICE HLT Project * | |
4 | * ALICE Experiment at CERN, All rights reserved. * | |
5 | * * | |
6 | * Primary Authors: Artur Szostak <artursz@iafrica.com> * | |
7 | * for The ALICE HLT Project. * | |
8 | * * | |
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 | **************************************************************************/ | |
17 | ||
18 | /// @file AliHLTTriggerMenuItem.cxx | |
19 | /// @author Artur Szostak <artursz@iafrica.com> | |
20 | /// @date 19 Dec 2008 | |
21 | /// @brief Implementation of the AliHLTTriggerMenuItem class. | |
22 | /// | |
23 | /// The AliHLTTriggerMenuItem contains information about a entry in the global | |
24 | /// HLT trigger menu. | |
25 | ||
26 | #include "AliHLTTriggerMenuItem.h" | |
27 | #include "Riostream.h" | |
28 | ||
29 | using std::cout; | |
30 | using std::endl; | |
31 | ClassImp(AliHLTTriggerMenuItem) | |
32 | ||
33 | ||
34 | AliHLTTriggerMenuItem::AliHLTTriggerMenuItem() : | |
35 | TObject(), | |
36 | fDescription(), | |
37 | fConditionExpr(), | |
38 | fDomainExpr(), | |
39 | fPrescalar(0), | |
40 | fPriority(0), | |
41 | fScaleDown(1) | |
42 | { | |
43 | // Default constructor. | |
44 | ||
45 | DefaultResult(true); // The default result for the item is always true. | |
46 | } | |
47 | ||
48 | ||
49 | AliHLTTriggerMenuItem::~AliHLTTriggerMenuItem() | |
50 | { | |
51 | // Default destructor. | |
52 | } | |
53 | ||
54 | ||
55 | void AliHLTTriggerMenuItem::Print(Option_t* option) const | |
56 | { | |
57 | // Prints the contents of the trigger menu item. | |
58 | ||
59 | TString opt = option; | |
60 | if (opt.Contains("compact")) | |
61 | { | |
62 | cout << "{fConditionExpr = \"" << fConditionExpr.Data() | |
63 | << "\", fDomainExpr = \"" << fDomainExpr.Data() | |
64 | << "\", fPrescalar = " << fPrescalar | |
65 | << ", fScaleDown = " << fScaleDown | |
66 | << ", fPriority = " << fPriority | |
67 | << ", default result = " << (DefaultResult() ? "true" : "false") | |
68 | << "}" << endl; | |
69 | } | |
70 | else | |
71 | { | |
72 | cout << " Description = " << fDescription.Data() << endl; | |
73 | cout << " Trigger condition expression = " << fConditionExpr.Data() << endl; | |
74 | cout << "Trigger domain merge expression = " << fDomainExpr.Data() << endl; | |
75 | cout << " Pre-scalar = " << fPrescalar << endl; | |
76 | cout << " Priority = " << fPriority << endl; | |
77 | cout << " Scale-down = " << fScaleDown << endl; | |
78 | cout << " Default global trigger result = " << (DefaultResult() ? "true" : "false") << endl; | |
79 | } | |
80 | } | |
81 |