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 //-----------------------------------------------------------------------------
19 /// \class AliMUONVTriggerStore
21 /// Base class of a trigger container, which holds local, regional and
22 /// global information for one event.
24 /// \author Laurent Aphecetche, Subatech
25 //-----------------------------------------------------------------------------
27 #include "AliMUONVTriggerStore.h"
28 #include "AliMUONLocalTrigger.h"
29 #include "AliMUONRegionalTrigger.h"
30 #include "AliMUONGlobalTrigger.h"
33 ClassImp(AliMUONVTriggerStore)
36 //_____________________________________________________________________________
37 AliMUONVTriggerStore::AliMUONVTriggerStore()
42 //_____________________________________________________________________________
43 AliMUONVTriggerStore::~AliMUONVTriggerStore()
48 //_____________________________________________________________________________
50 AliMUONVTriggerStore::Create(TTree& tree)
52 /// Create a VTriggerStore from the tree (if possible).
53 return static_cast<AliMUONVTriggerStore*>(AliMUONVStore::Create(tree,"Trigger"));
56 //_____________________________________________________________________________
58 AliMUONVTriggerStore::CreateIterator() const
60 /// Return local iterator
61 return CreateLocalIterator();
64 //_____________________________________________________________________________
66 AliMUONVTriggerStore::Add(TObject* object)
68 /// Add an object, if object of type local, regional or global
69 if (!object) return kFALSE;
70 AliMUONLocalTrigger* local = dynamic_cast<AliMUONLocalTrigger*>(object);
76 AliMUONRegionalTrigger* regional = dynamic_cast<AliMUONRegionalTrigger*>(object);
82 AliMUONGlobalTrigger* global = dynamic_cast<AliMUONGlobalTrigger*>(object);