1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
5 * Primary Authors: Artur Szostak <artursz@iafrica.com> *
6 * for The ALICE HLT Project. *
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 **************************************************************************/
17 /// @file AliHLTTriggerDecision.cxx
18 /// @author Artur Szostak <artursz@iafrica.com>
20 /// @brief Implementation of the AliHLTTriggerDecision class.
22 /// The trigger decision class stores the HLT decision from an AliHLTTrigger component.
24 #include "AliHLTTriggerDecision.h"
25 #include "Riostream.h"
27 ClassImp(AliHLTTriggerDecision)
30 AliHLTTriggerDecision::AliHLTTriggerDecision() :
37 // Default constructor.
41 AliHLTTriggerDecision::AliHLTTriggerDecision(bool result, const char* name) :
48 // Constructor specifying the name and result of the trigger decision.
54 AliHLTTriggerDecision::AliHLTTriggerDecision(
55 bool result, const char* name, const AliHLTReadoutList& readoutList,
56 const AliHLTTriggerDomain& triggerDomain, const char* description
60 fDescription(description),
61 fReadoutList(readoutList),
62 fTriggerDomain(triggerDomain)
64 // Constructor specifying all information fields.
70 AliHLTTriggerDecision::~AliHLTTriggerDecision()
72 // Default destructor.
76 void AliHLTTriggerDecision::Print(Option_t* option) const
78 // Prints the contents of the trigger decision.
80 cout << "Trigger (" << fName.Data() << ") result = " << Result() << endl;
82 if (opt.Contains("short")) return;
83 cout << "Description = \"" << fDescription.Data() << "\"" << endl;
85 fTriggerDomain.Print();