1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 * Container storing all trigger decisions by the trigger selection task
18 * Author: Markus Fasel
20 #include "AliEmcalTriggerDecision.h"
21 #include "AliEmcalTriggerDecisionContainer.h"
23 ClassImp(AliEmcalTriggerDecisionContainer)
25 //______________________________________________________________________________
26 AliEmcalTriggerDecisionContainer::AliEmcalTriggerDecisionContainer():
31 * Dummy constructor, for I/O, not to be called by the user
33 fContainer.SetOwner();
36 //______________________________________________________________________________
37 AliEmcalTriggerDecisionContainer::AliEmcalTriggerDecisionContainer(const char* name):
42 * Main constructor, called by the user
44 fContainer.SetOwner();
47 //______________________________________________________________________________
48 void AliEmcalTriggerDecisionContainer::Reset() {
50 * Clear container with trigger decisions
55 //______________________________________________________________________________
56 void AliEmcalTriggerDecisionContainer::AddTriggerDecision(AliEmcalTriggerDecision* const decision) {
58 * Add trigger decision to the container
60 * @param decision: Trigger decision, created by the trigger selection task
62 fContainer.Add(decision);
65 //______________________________________________________________________________
66 const AliEmcalTriggerDecision* AliEmcalTriggerDecisionContainer::FindTriggerDecision(const char* decname) const {
68 * Find a trigger decision with a given name in the trigger decision container
70 * @param decname: the name of the trigger decision object
71 * @return: the trigger decision (NULL if not found)
73 return dynamic_cast<const AliEmcalTriggerDecision *>(fContainer.FindObject(decname));