Small fix for case of no time structure
[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(),
34 fReadoutList(),
35 fTriggerDomain()
36{
37 // Default constructor.
38}
39
40
41AliHLTTriggerDecision::AliHLTTriggerDecision(bool result, const char* name) :
42 TObject(),
43 fName(name),
44 fDescription(),
45 fReadoutList(),
46 fTriggerDomain()
47{
48 // Constructor specifying the name and result of the trigger decision.
49
50 Result(result);
51}
52
53
54AliHLTTriggerDecision::AliHLTTriggerDecision(
55 bool result, const char* name, const AliHLTReadoutList& readoutList,
56 const AliHLTTriggerDomain& triggerDomain, const char* description
57 ) :
58 TObject(),
59 fName(name),
60 fDescription(description),
61 fReadoutList(readoutList),
62 fTriggerDomain(triggerDomain)
63{
64 // Constructor specifying all information fields.
65
66 Result(result);
67}
68
69
70AliHLTTriggerDecision::~AliHLTTriggerDecision()
71{
72 // Default destructor.
73}
74
75
76void AliHLTTriggerDecision::Print(Option_t* option) const
77{
78 // Prints the contents of the trigger decision.
79
80 cout << "Trigger (" << fName.Data() << ") result = " << Result() << endl;
81 TString opt(option);
82 if (opt.Contains("short")) return;
83 cout << "Description = \"" << fDescription.Data() << "\"" << endl;
84 fReadoutList.Print();
85 fTriggerDomain.Print();
86}
87