1 #ifndef ALIMUONTRIGGERSTOREV1_H
2 #define ALIMUONTRIGGERSTOREV1_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTriggerStoreV1
11 /// \brief Implementation of AliMUONVTriggerStore
13 // Author Laurent Aphecetche
15 #ifndef ALIMUONVTRIGGERSTORE_H
16 # include "AliMUONVTriggerStore.h"
21 class AliMUONTriggerStoreV1 : public AliMUONVTriggerStore
24 AliMUONTriggerStoreV1();
25 virtual ~AliMUONTriggerStoreV1();
27 /// Whether the Connect(TTree&) method is implemented
28 virtual AliMUONTriggerStoreV1* Create() const { return new AliMUONTriggerStoreV1; }
30 virtual Bool_t CanConnect() const { return kTRUE; }
32 using AliMUONVTriggerStore::Add;
33 virtual void Add(const AliMUONLocalTrigger& localTrigger);
34 virtual void Add(const AliMUONRegionalTrigger& regionalTrigger);
36 virtual void SetGlobal(const AliMUONGlobalTrigger& globalTrigger);
38 virtual TIterator* CreateLocalIterator() const;
39 virtual TIterator* CreateRegionalIterator() const;
41 virtual AliMUONGlobalTrigger* Global() const;
43 virtual AliMUONLocalTrigger* FindLocal(Int_t boardNumber) const;
44 virtual AliMUONRegionalTrigger* FindRegional(Int_t boardNumber) const;
46 using AliMUONVTriggerStore::Print;
48 virtual void Print(Option_t* wildcard, Option_t* opt) const;
50 virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
52 virtual void Clear(Option_t* opt="");
54 using AliMUONVStore::GetSize;
56 virtual Int_t GetSize() const;
59 /// Return the address of the array of global trigger information
60 TClonesArray** GlobalPtr() const { return const_cast<TClonesArray**>(&fGlobal); }
61 /// Return the address of the array of local trigger information
62 TClonesArray** LocalPtr() const { return const_cast<TClonesArray**>(&fLocal); }
63 /// Return the address of the array of regional trigger information
64 TClonesArray** RegionalPtr() const { return const_cast<TClonesArray**>(&fRegional); }
67 AliMUONTriggerStoreV1(const AliMUONTriggerStoreV1&);
69 AliMUONTriggerStoreV1& operator=(const AliMUONTriggerStoreV1&);
72 TClonesArray* fLocal; ///< internal array of local trigger information
73 TClonesArray* fRegional; ///< internal array of regional trigger information
74 TClonesArray* fGlobal; ///< internal array of global trigger information
75 mutable TClonesArray* fEmptyLocal; //!< internal array of empty local trigger
77 ClassDef(AliMUONTriggerStoreV1,1) // Implementation of AliMUONVTriggerStore