]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTTriggerMenuItem.cxx
Adding the trigger menu for the HLT global trigger.
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerMenuItem.cxx
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
28 ClassImp(AliHLTTriggerMenuItem)
29
30
31 AliHLTTriggerMenuItem::AliHLTTriggerMenuItem() :
32   TObject(),
33   fConditionExpr(),
34   fDomainExpr(),
35   fPrescalar(0)
36 {
37   // Default constructor.
38 }
39
40
41 AliHLTTriggerMenuItem::~AliHLTTriggerMenuItem()
42 {
43   // Default destructor.
44 }
45
46
47 void AliHLTTriggerMenuItem::Print(Option_t* option) const
48 {
49   // Prints the contents of the trigger menu item.
50   
51   TString opt = option;
52   if (opt.Contains("compact"))
53   {
54     cout << "   Trigger condision expression = " << fConditionExpr.Data();
55     cout << "Trigger domain merge expression = " << fDomainExpr.Data();
56     cout << "                     Pre-scalar = " << fPrescalar;
57   }
58   else
59   {
60     cout << setw(10) << fPrescalar << " | "
61          << setw(30) << fConditionExpr.Data() << " | "
62          << setw(30) << fDomainExpr.Data() << setw(0) << endl;
63   }
64 }
65