AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerStoreV1.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRIGGERSTOREV1_H
2 #define ALIMUONTRIGGERSTOREV1_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche
14 
15 #ifndef ALIMUONVTRIGGERSTORE_H
16 # include "AliMUONVTriggerStore.h"
17 #endif
18 
19 class TClonesArray;
20 
22 {
23 public:
25  virtual ~AliMUONTriggerStoreV1();
26 
28  virtual AliMUONTriggerStoreV1* Create() const { return new AliMUONTriggerStoreV1; }
29 
30  virtual Bool_t CanConnect() const { return kTRUE; }
31 
33  virtual void Add(const AliMUONLocalTrigger& localTrigger);
34  virtual void Add(const AliMUONRegionalTrigger& regionalTrigger);
35 
36  virtual void SetGlobal(const AliMUONGlobalTrigger& globalTrigger);
37 
38  virtual TIterator* CreateLocalIterator() const;
39  virtual TIterator* CreateRegionalIterator() const;
40 
41  virtual AliMUONGlobalTrigger* Global() const;
42 
43  virtual AliMUONLocalTrigger* FindLocal(Int_t boardNumber) const;
44  virtual AliMUONRegionalTrigger* FindRegional(Int_t boardNumber) const;
45 
47 
48  virtual void Print(Option_t* wildcard, Option_t* opt) const;
49 
50  virtual Bool_t Connect(TTree& tree, Bool_t alone=kTRUE) const;
51 
52  virtual void Clear(Option_t* opt="");
53 
55 
56  virtual Int_t GetSize() const;
57 
58 private:
60  TClonesArray** GlobalPtr() const { return const_cast<TClonesArray**>(&fGlobal); }
62  TClonesArray** LocalPtr() const { return const_cast<TClonesArray**>(&fLocal); }
64  TClonesArray** RegionalPtr() const { return const_cast<TClonesArray**>(&fRegional); }
65 
70 
71 private:
72  TClonesArray* fLocal;
73  TClonesArray* fRegional;
74  TClonesArray* fGlobal;
75  mutable TClonesArray* fEmptyLocal;
76 
77  ClassDef(AliMUONTriggerStoreV1,1) // Implementation of AliMUONVTriggerStore
78 };
79 
80 #endif
virtual Bool_t Connect(TTree &tree, Bool_t alone=kTRUE) const
Connect us to a TTree (only valid if CanConnect()==kTRUE)
virtual void Add(const AliMUONLocalTrigger &localTrigger)
Add local trigger.
Implementation of AliMUONVTriggerStore.
virtual Int_t GetSize() const =0
The number of objects stored.
virtual Int_t GetSize() const
The number of objects stored.
virtual AliMUONRegionalTrigger * FindRegional(Int_t boardNumber) const
Find a regional trigger by the board number (not an index, it is a number really) ...
TTree * tree
Base class of a trigger information store.
virtual void Print(Option_t *wildcard, Option_t *opt) const
Print, with option, all objects whose name matches wildcard.
virtual Bool_t CanConnect() const
Whether the Connect(TTree&) method is implemented.
TClonesArray * fEmptyLocal
! internal array of empty local trigger
TClonesArray ** RegionalPtr() const
Return the address of the array of regional trigger information.
Reconstructed regional Trigger object.
virtual void SetGlobal(const AliMUONGlobalTrigger &globalTrigger)
Set global trigger.
Reconstructed Local Trigger object.
virtual TIterator * CreateLocalIterator() const
Create iterator on local trigger.
TClonesArray ** GlobalPtr() const
Return the address of the array of global trigger information.
virtual TIterator * CreateRegionalIterator() const
Create iterator on regional trigger.
virtual AliMUONGlobalTrigger * Global() const
Return global trigger.
TClonesArray * fRegional
internal array of regional trigger information
TClonesArray * fLocal
internal array of local trigger information
AliMUONTriggerStoreV1 & operator=(const AliMUONTriggerStoreV1 &)
Not implemented.
virtual AliMUONTriggerStoreV1 * Create() const
Whether the Connect(TTree&) method is implemented.
Global trigger object.
virtual void Print(Option_t *wildcard="") const
Print all objects whose name matches wildcard.
virtual Bool_t Add(TObject *object)
Add an object, if of the right type.
virtual void Clear(Option_t *opt="")
Clear ourselves (i.e. Reset)
virtual AliMUONLocalTrigger * FindLocal(Int_t boardNumber) const
Find a local trigger by the board number (not an index, it is a number really)
TClonesArray ** LocalPtr() const
Return the address of the array of local trigger information.
TClonesArray * fGlobal
internal array of global trigger information