]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/AliHLTTriggerDecision.cxx
Finished code for global HLT trigger and the trigger menu implementation.
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerDecision.cxx
CommitLineData
1b9a175e 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 AliHLTTriggerDecision.cxx
18/// @author Artur Szostak <artursz@iafrica.com>
19/// @date 21 Nov 2008
20/// @brief Implementation of the AliHLTTriggerDecision class.
21///
22/// The trigger decision class stores the HLT decision from an AliHLTTrigger component.
23
24#include "AliHLTTriggerDecision.h"
25#include "Riostream.h"
26
27ClassImp(AliHLTTriggerDecision)
28
29
30AliHLTTriggerDecision::AliHLTTriggerDecision() :
31 TObject(),
32 fName(),
33 fDescription(),
1b9a175e 34 fTriggerDomain()
35{
36 // Default constructor.
37}
38
39
40AliHLTTriggerDecision::AliHLTTriggerDecision(bool result, const char* name) :
41 TObject(),
42 fName(name),
43 fDescription(),
1b9a175e 44 fTriggerDomain()
45{
46 // Constructor specifying the name and result of the trigger decision.
47
48 Result(result);
49}
50
51
52AliHLTTriggerDecision::AliHLTTriggerDecision(
52f67e50 53 bool result, const char* name,
54 const AliHLTTriggerDomain& triggerDomain,
55 const char* description
1b9a175e 56 ) :
57 TObject(),
58 fName(name),
59 fDescription(description),
1b9a175e 60 fTriggerDomain(triggerDomain)
61{
62 // Constructor specifying all information fields.
63
64 Result(result);
65}
66
67
68AliHLTTriggerDecision::~AliHLTTriggerDecision()
69{
70 // Default destructor.
71}
72
73
74void AliHLTTriggerDecision::Print(Option_t* option) const
75{
76 // Prints the contents of the trigger decision.
77
78 cout << "Trigger (" << fName.Data() << ") result = " << Result() << endl;
79 TString opt(option);
80 if (opt.Contains("short")) return;
81 cout << "Description = \"" << fDescription.Data() << "\"" << endl;
1b9a175e 82 fTriggerDomain.Print();
83}
84