1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
6 * Artur Szostak <artursz@iafrica.com> *
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 **************************************************************************/
20 /// @file AliHLTMUONEvent.cxx
21 /// @author Artur Szostak <artursz@iafrica.com>
23 /// @brief Implementation of the AliHLTMUONEvent class.
25 /// The class is used to store all ROOTified data objects from the dHLT chain
26 /// for a single event together.
28 #include "AliHLTMUONEvent.h"
29 #include "AliHLTMUONDecision.h"
32 ClassImp(AliHLTMUONEvent);
35 const AliHLTMUONDecision* AliHLTMUONEvent::FindDecision() const
37 /// Finds the decision object in the event from the list of dHLT objects.
38 /// There should only be one such object in the event. If not, then only
39 /// the first object found is returned. You will need to manually search
40 /// for the other objects.
41 /// \returns The AliHLTMUONDecision object in the event or NULL if none exists.
43 for (Int_t i = 0; i < fArray.GetEntriesFast(); i++)
45 if (fArray[i]->IsA() == AliHLTMUONDecision::Class())
47 return static_cast<const AliHLTMUONDecision*>(fArray[i]);
55 void AliHLTMUONEvent::Print(Option_t* option) const
58 /// Inherited from TObject. Prints the contents of the event objects in fArray.
59 /// \param option This is an option string that is just passed on to individual
60 /// objects in the event's fArray list of objects.
63 std::cout << "################## EVENT: " << fEventId << " ##################" << std::endl;
64 for (Int_t i = 0; i < fArray.GetEntriesFast(); i++)
65 if (fArray[i] != NULL) fArray[i]->Print(option);