]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/AliHLTTriggerMenuItem.cxx
Finished code for global HLT trigger and the trigger menu implementation.
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerMenuItem.cxx
CommitLineData
e2bb8ddd 1/**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
4 * *
5 * Primary Authors: Artur Szostak <artursz@iafrica.com> *
6 * for The ALICE HLT Project. *
7 * *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16
17/// @file AliHLTTriggerMenuItem.cxx
18/// @author Artur Szostak <artursz@iafrica.com>
19/// @date 19 Dec 2008
20/// @brief Implementation of the AliHLTTriggerMenuItem class.
21///
22/// The AliHLTTriggerMenuItem contains information about a entry in the global
23/// HLT trigger menu.
24
25#include "AliHLTTriggerMenuItem.h"
26#include "Riostream.h"
27
28ClassImp(AliHLTTriggerMenuItem)
29
30
31AliHLTTriggerMenuItem::AliHLTTriggerMenuItem() :
32 TObject(),
52f67e50 33 fDescription(),
e2bb8ddd 34 fConditionExpr(),
35 fDomainExpr(),
36 fPrescalar(0)
37{
38 // Default constructor.
39}
40
41
42AliHLTTriggerMenuItem::~AliHLTTriggerMenuItem()
43{
44 // Default destructor.
45}
46
47
48void AliHLTTriggerMenuItem::Print(Option_t* option) const
49{
50 // Prints the contents of the trigger menu item.
51
52 TString opt = option;
53 if (opt.Contains("compact"))
54 {
52f67e50 55 cout << setw(10) << fPrescalar << " | "
56 << setw(60) << fConditionExpr.Data() << " | "
57 << setw(60) << fDomainExpr.Data() << setw(0) << endl;
e2bb8ddd 58 }
59 else
60 {
52f67e50 61 cout << " Description = " << fDescription.Data() << endl;
62 cout << " Trigger condition expression = " << fConditionExpr.Data() << endl;
63 cout << "Trigger domain merge expression = " << fDomainExpr.Data() << endl;
64 cout << " Pre-scalar = " << fPrescalar << endl;
e2bb8ddd 65 }
66}
67