]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTGlobalTriggerDecision.cxx
Removal of no longer maintained neural trackers
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTGlobalTriggerDecision.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   AliHLTGlobalTriggerDecision.cxx
18 /// @author Artur Szostak <artursz@iafrica.com>
19 /// @date   26 Nov 2008
20 /// @brief  Implementation of the AliHLTGlobalTriggerDecision class.
21 /// 
22 /// The global trigger decision class stores the global HLT decision.
23
24 #include "AliHLTGlobalTriggerDecision.h"
25 #include "Riostream.h"
26
27 ClassImp(AliHLTGlobalTriggerDecision)
28
29
30 AliHLTGlobalTriggerDecision::AliHLTGlobalTriggerDecision() :
31   AliHLTTriggerDecision(),
32   fContributingTriggers(AliHLTTriggerDecision::Class()),
33   fInputObjects(),
34   fCounters()
35 {
36   // Default constructor.
37 }
38
39
40 AliHLTGlobalTriggerDecision::AliHLTGlobalTriggerDecision(
41     bool result, const AliHLTTriggerDomain& triggerDomain, const char* description
42   ) :
43   AliHLTTriggerDecision(result, "HLTGlobalTrigger", triggerDomain, description),
44   fContributingTriggers(AliHLTTriggerDecision::Class()),
45   fInputObjects(),
46   fCounters()
47 {
48   // Constructor specifying multiple information fields.
49   
50   Result(result);
51   fInputObjects.SetOwner(kTRUE);
52 }
53
54
55 AliHLTGlobalTriggerDecision::~AliHLTGlobalTriggerDecision()
56 {
57   // Default destructor.
58 }
59
60
61 void AliHLTGlobalTriggerDecision::Print(Option_t* option) const
62 {
63   // Prints the contents of the trigger decision.
64   
65   TString opt(option);
66   if (opt.Contains("compact"))
67   {
68     cout << "Global ";
69     AliHLTTriggerDecision::Print("");
70   }
71   else if (opt.Contains("short"))
72   {
73     cout << "Global ";
74     AliHLTTriggerDecision::Print(option);
75     cout << "#################### Input trigger decisions ####################" << endl;
76     for (Int_t i = 0; i < NumberOfTriggerInputs(); i++)
77     {
78       TriggerInput(i)->Print(option);
79     }
80     if (NumberOfTriggerInputs() == 0)
81     {
82       cout << "(none)" << endl;
83     }
84   }
85   else if (opt.Contains("counters"))
86   {
87     cout << "Counter\tValue" << endl;
88     for (Int_t i = 0; i < fCounters.GetSize(); i++)
89     {
90       cout << i << "\t" << fCounters[i] << endl;
91     }
92     if (fCounters.GetSize() == 0)
93     {
94       cout << "(none)" << endl;
95     }
96   }
97   else
98   {
99     cout << "Global ";
100     AliHLTTriggerDecision::Print(option);
101     cout << "#################### Input trigger decisions ####################" << endl;
102     for (Int_t i = 0; i < NumberOfTriggerInputs(); i++)
103     {
104       cout << "-------------------- Input trigger decision " << i << " --------------------" << endl;
105       TriggerInput(i)->Print(option);
106     }
107     if (NumberOfTriggerInputs() == 0)
108     {
109       cout << "(none)" << endl;
110     }
111     cout << "###################### Other input objects ######################" << endl;
112     for (Int_t i = 0; i < NumberOfInputObjects(); i++)
113     {
114       cout << "------------------------ Input object " << i << " ------------------------" << endl;
115       InputObject(i)->Print(option);
116     }
117     if (NumberOfInputObjects() == 0)
118     {
119       cout << "(none)" << endl;
120     }
121     cout << "#################### Event class counters ####################" << endl;
122     cout << "Counter\tValue" << endl;
123     for (Int_t i = 0; i < fCounters.GetSize(); i++)
124     {
125       cout << i << "\t" << fCounters[i] << endl;
126     }
127     if (fCounters.GetSize() == 0)
128     {
129       cout << "(none)" << endl;
130     }
131   }
132 }
133