1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 **************************************************************************/
18 /// \class AliMUONVTriggerStore
20 /// Base class of a trigger container, which holds local, regional and
21 /// global information for one event.
23 /// \author Laurent Aphecetche, Subatech
26 #include "AliMUONVTriggerStore.h"
27 #include "AliMUONLocalTrigger.h"
28 #include "AliMUONRegionalTrigger.h"
29 #include "AliMUONGlobalTrigger.h"
32 ClassImp(AliMUONVTriggerStore)
35 //_____________________________________________________________________________
36 AliMUONVTriggerStore::AliMUONVTriggerStore()
41 //_____________________________________________________________________________
42 AliMUONVTriggerStore::~AliMUONVTriggerStore()
47 //_____________________________________________________________________________
49 AliMUONVTriggerStore::Create(TTree& tree)
51 /// Create a VTriggerStore from the tree (if possible).
52 return static_cast<AliMUONVTriggerStore*>(AliMUONVStore::Create(tree,"Trigger"));
55 //_____________________________________________________________________________
57 AliMUONVTriggerStore::CreateIterator() const
59 /// Return local iterator
60 return CreateLocalIterator();
63 //_____________________________________________________________________________
65 AliMUONVTriggerStore::Add(TObject* object)
67 /// Add an object, if object of type local, regional or global
68 if (!object) return kFALSE;
69 AliMUONLocalTrigger* local = dynamic_cast<AliMUONLocalTrigger*>(object);
75 AliMUONRegionalTrigger* regional = dynamic_cast<AliMUONRegionalTrigger*>(object);
81 AliMUONGlobalTrigger* global = dynamic_cast<AliMUONGlobalTrigger*>(object);