]>
Commit | Line | Data |
---|---|---|
81d62bb4 | 1 | // $Id$ |
e2bb8ddd | 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 | ClassImp(AliHLTTriggerMenuItem) | |
30 | ||
31 | ||
32 | AliHLTTriggerMenuItem::AliHLTTriggerMenuItem() : | |
33 | TObject(), | |
52f67e50 | 34 | fDescription(), |
e2bb8ddd | 35 | fConditionExpr(), |
36 | fDomainExpr(), | |
81d62bb4 | 37 | fPrescalar(0), |
38 | fPriority(0) | |
e2bb8ddd | 39 | { |
40 | // Default constructor. | |
41 | } | |
42 | ||
43 | ||
44 | AliHLTTriggerMenuItem::~AliHLTTriggerMenuItem() | |
45 | { | |
46 | // Default destructor. | |
47 | } | |
48 | ||
49 | ||
50 | void AliHLTTriggerMenuItem::Print(Option_t* option) const | |
51 | { | |
52 | // Prints the contents of the trigger menu item. | |
53 | ||
54 | TString opt = option; | |
55 | if (opt.Contains("compact")) | |
56 | { | |
52f67e50 | 57 | cout << setw(10) << fPrescalar << " | " |
81d62bb4 | 58 | << setw(10) << fPriority << " | " |
52f67e50 | 59 | << setw(60) << fConditionExpr.Data() << " | " |
60 | << setw(60) << fDomainExpr.Data() << setw(0) << endl; | |
e2bb8ddd | 61 | } |
62 | else | |
63 | { | |
52f67e50 | 64 | cout << " Description = " << fDescription.Data() << endl; |
65 | cout << " Trigger condition expression = " << fConditionExpr.Data() << endl; | |
66 | cout << "Trigger domain merge expression = " << fDomainExpr.Data() << endl; | |
67 | cout << " Pre-scalar = " << fPrescalar << endl; | |
81d62bb4 | 68 | cout << " Priority = " << fPriority << endl; |
e2bb8ddd | 69 | } |
70 | } | |
71 |