AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerStoreV1 Class Reference

Implementation of AliMUONVTriggerStore. More...

#include <AliMUONTriggerStoreV1.h>

Inheritance diagram for AliMUONTriggerStoreV1:

Public Member Functions

 AliMUONTriggerStoreV1 ()
 
virtual ~AliMUONTriggerStoreV1 ()
 
virtual AliMUONTriggerStoreV1Create () const
 Whether the Connect(TTree&) method is implemented. More...
 
virtual Bool_t CanConnect () const
 Whether the Connect(TTree&) method is implemented. More...
 
virtual void Add (const AliMUONLocalTrigger &localTrigger)
 Add local trigger. More...
 
virtual void Add (const AliMUONRegionalTrigger &regionalTrigger)
 Add regional trigger. More...
 
virtual void SetGlobal (const AliMUONGlobalTrigger &globalTrigger)
 Set global trigger. More...
 
virtual TIterator * CreateLocalIterator () const
 Create iterator on local trigger. More...
 
virtual TIterator * CreateRegionalIterator () const
 Create iterator on regional trigger. More...
 
virtual AliMUONGlobalTriggerGlobal () const
 Return global trigger. More...
 
virtual AliMUONLocalTriggerFindLocal (Int_t boardNumber) const
 Find a local trigger by the board number (not an index, it is a number really) More...
 
virtual AliMUONRegionalTriggerFindRegional (Int_t boardNumber) const
 Find a regional trigger by the board number (not an index, it is a number really) More...
 
virtual void Print (Option_t *wildcard, Option_t *opt) const
 Print, with option, all objects whose name matches wildcard. More...
 
virtual Bool_t Connect (TTree &tree, Bool_t alone=kTRUE) const
 Connect us to a TTree (only valid if CanConnect()==kTRUE) More...
 
virtual void Clear (Option_t *opt="")
 Clear ourselves (i.e. Reset) More...
 
virtual Int_t GetSize () const
 The number of objects stored. More...
 
- Public Member Functions inherited from AliMUONVTriggerStore
 AliMUONVTriggerStore ()
 
virtual ~AliMUONVTriggerStore ()
 
virtual Bool_t Add (TObject *object)
 Add an object, if of the right type. More...
 
virtual TIterator * CreateIterator () const
 Create iterator (on local card) More...
 
virtual void Print (Option_t *wildcard="") const
 Print all objects whose name matches wildcard. More...
 
- Public Member Functions inherited from AliMUONVStore
 AliMUONVStore ()
 
virtual ~AliMUONVStore ()
 
virtual TObject * FindObject (const char *name) const
 Find an object by name. More...
 
virtual TObject * FindObject (const TObject *object) const
 Find an object. More...
 
virtual TObject * FindObject (UInt_t uniqueID) const
 Find an object using a single id. More...
 
virtual TObject * FindObject (Int_t i, Int_t j) const
 Find an object using 2 ids. More...
 
virtual Int_t GetSize (Int_t i) const
 The number of objects stored for firstid=i. Not implemented by default. More...
 
virtual Bool_t IsEmpty () const
 Whether we are empty or not. More...
 

Private Member Functions

TClonesArray ** GlobalPtr () const
 Return the address of the array of global trigger information. More...
 
TClonesArray ** LocalPtr () const
 Return the address of the array of local trigger information. More...
 
TClonesArray ** RegionalPtr () const
 Return the address of the array of regional trigger information. More...
 
 AliMUONTriggerStoreV1 (const AliMUONTriggerStoreV1 &)
 Not implemented. More...
 
AliMUONTriggerStoreV1operator= (const AliMUONTriggerStoreV1 &)
 Not implemented. More...
 

Private Attributes

TClonesArray * fLocal
 internal array of local trigger information More...
 
TClonesArray * fRegional
 internal array of regional trigger information More...
 
TClonesArray * fGlobal
 internal array of global trigger information More...
 
TClonesArray * fEmptyLocal
 ! internal array of empty local trigger More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVTriggerStore
static AliMUONVTriggerStoreCreate (TTree &tree)
 Create a store from the tree (if possible). More...
 
- Static Public Member Functions inherited from AliMUONVStore
static AliMUONVStoreCreate (TTree &tree, const char *what)
 Create a store from a TTree. More...
 

Detailed Description

Implementation of AliMUONVTriggerStore.

Implementation of AliMUONVTriggerStore, which is backward compatible, i.e. should be able to read back old TreeR and TreeD files, produced before the introduction of the AliMUONVStore concept.

Author
Laurent Aphecetche, Subatech

Definition at line 21 of file AliMUONTriggerStoreV1.h.

Constructor & Destructor Documentation

AliMUONTriggerStoreV1::AliMUONTriggerStoreV1 ( )

ctor

Definition at line 45 of file AliMUONTriggerStoreV1.cxx.

Referenced by Create().

AliMUONTriggerStoreV1::~AliMUONTriggerStoreV1 ( )
virtual

dtor

Definition at line 59 of file AliMUONTriggerStoreV1.cxx.

AliMUONTriggerStoreV1::AliMUONTriggerStoreV1 ( const AliMUONTriggerStoreV1 )
private

Not implemented.

Member Function Documentation

void AliMUONTriggerStoreV1::Add ( const AliMUONLocalTrigger localTrigger)
virtual

Add local trigger.

Add local information If the local board has no information (IsNull), we add it in the fEmpty array This is really an implementation choice, to store empty boards in order to be able to return them, if asked for, as is the case in some client code. Note that only the non-empty boards are streamed to disk.

Implements AliMUONVTriggerStore.

Definition at line 70 of file AliMUONTriggerStoreV1.cxx.

void AliMUONTriggerStoreV1::Add ( const AliMUONRegionalTrigger regionalTrigger)
virtual

Add regional trigger.

Add regional information

Implements AliMUONVTriggerStore.

Definition at line 131 of file AliMUONTriggerStoreV1.cxx.

virtual Bool_t AliMUONTriggerStoreV1::CanConnect ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 30 of file AliMUONTriggerStoreV1.h.

void AliMUONTriggerStoreV1::Clear ( Option_t *  opt = "")
virtual

Clear ourselves (i.e. Reset)

Reset

Implements AliMUONVStore.

Definition at line 216 of file AliMUONTriggerStoreV1.cxx.

Referenced by AliMUONTriggerGUI::ClearTriggerStore(), and AliMUONTriggerUtilities::Init().

Bool_t AliMUONTriggerStoreV1::Connect ( TTree &  tree,
Bool_t  alone = kTRUE 
) const
virtual

Connect us to a TTree (only valid if CanConnect()==kTRUE)

Connect this store to the tree

Connect to a Ttree

Reimplemented from AliMUONVStore.

Definition at line 94 of file AliMUONTriggerStoreV1.cxx.

virtual AliMUONTriggerStoreV1* AliMUONTriggerStoreV1::Create ( ) const
inlinevirtual

Whether the Connect(TTree&) method is implemented.

Implements AliMUONVStore.

Definition at line 28 of file AliMUONTriggerStoreV1.h.

Referenced by AliMUONTriggerGUI::AliMUONTriggerGUI().

TIterator * AliMUONTriggerStoreV1::CreateLocalIterator ( ) const
virtual

Create iterator on local trigger.

Return iterator on local cards

Implements AliMUONVTriggerStore.

Definition at line 139 of file AliMUONTriggerStoreV1.cxx.

Referenced by AliMUONTriggerGUI::PrintTriggerStore().

TIterator * AliMUONTriggerStoreV1::CreateRegionalIterator ( ) const
virtual

Create iterator on regional trigger.

Return iterator on regional cards

Implements AliMUONVTriggerStore.

Definition at line 147 of file AliMUONTriggerStoreV1.cxx.

AliMUONLocalTrigger * AliMUONTriggerStoreV1::FindLocal ( Int_t  boardNumber) const
virtual

Find a local trigger by the board number (not an index, it is a number really)

Find a local board, by its number (not to be confused with its index, which used to be the key)

Implements AliMUONVTriggerStore.

Definition at line 155 of file AliMUONTriggerStoreV1.cxx.

AliMUONRegionalTrigger * AliMUONTriggerStoreV1::FindRegional ( Int_t  boardNumber) const
virtual

Find a regional trigger by the board number (not an index, it is a number really)

Return a given regional board

Implements AliMUONVTriggerStore.

Definition at line 192 of file AliMUONTriggerStoreV1.cxx.

Int_t AliMUONTriggerStoreV1::GetSize ( ) const
virtual

The number of objects stored.

Number of non-empty local boards we hold

Implements AliMUONVStore.

Definition at line 227 of file AliMUONTriggerStoreV1.cxx.

AliMUONGlobalTrigger * AliMUONTriggerStoreV1::Global ( ) const
virtual

Return global trigger.

Return global trigger

Implements AliMUONVTriggerStore.

Definition at line 208 of file AliMUONTriggerStoreV1.cxx.

Referenced by AliMUONTriggerUtilities::Init(), and AliMUONTriggerGUI::PrintTriggerStore().

TClonesArray** AliMUONTriggerStoreV1::GlobalPtr ( ) const
inlineprivate

Return the address of the array of global trigger information.

Definition at line 60 of file AliMUONTriggerStoreV1.h.

Referenced by Connect().

TClonesArray** AliMUONTriggerStoreV1::LocalPtr ( ) const
inlineprivate

Return the address of the array of local trigger information.

Definition at line 62 of file AliMUONTriggerStoreV1.h.

Referenced by Connect().

AliMUONTriggerStoreV1& AliMUONTriggerStoreV1::operator= ( const AliMUONTriggerStoreV1 )
private

Not implemented.

void AliMUONTriggerStoreV1::Print ( Option_t *  wildcard,
Option_t *  opt 
) const
virtual

Print, with option, all objects whose name matches wildcard.

Printout

Parameters
whatused to tell what to print, can be GLOBAL, LOCAL, REGIONAL or ALL
optis passed to the local, regional, global object

Reimplemented from AliMUONVStore.

Definition at line 235 of file AliMUONTriggerStoreV1.cxx.

TClonesArray** AliMUONTriggerStoreV1::RegionalPtr ( ) const
inlineprivate

Return the address of the array of regional trigger information.

Definition at line 64 of file AliMUONTriggerStoreV1.h.

Referenced by Connect().

void AliMUONTriggerStoreV1::SetGlobal ( const AliMUONGlobalTrigger globalTrigger)
virtual

Set global trigger.

Set the global information

Implements AliMUONVTriggerStore.

Definition at line 123 of file AliMUONTriggerStoreV1.cxx.

Member Data Documentation

TClonesArray* AliMUONTriggerStoreV1::fEmptyLocal
mutableprivate

! internal array of empty local trigger

Definition at line 75 of file AliMUONTriggerStoreV1.h.

Referenced by Add(), Clear(), FindLocal(), and ~AliMUONTriggerStoreV1().

TClonesArray* AliMUONTriggerStoreV1::fGlobal
private

internal array of global trigger information

Definition at line 74 of file AliMUONTriggerStoreV1.h.

Referenced by Clear(), Global(), GlobalPtr(), Print(), and ~AliMUONTriggerStoreV1().

TClonesArray* AliMUONTriggerStoreV1::fLocal
private

internal array of local trigger information

Definition at line 72 of file AliMUONTriggerStoreV1.h.

Referenced by Add(), Clear(), CreateLocalIterator(), FindLocal(), GetSize(), LocalPtr(), Print(), and ~AliMUONTriggerStoreV1().

TClonesArray* AliMUONTriggerStoreV1::fRegional
private

internal array of regional trigger information

Definition at line 73 of file AliMUONTriggerStoreV1.h.

Referenced by Add(), Clear(), CreateRegionalIterator(), FindRegional(), Print(), RegionalPtr(), and ~AliMUONTriggerStoreV1().


The documentation for this class was generated from the following files: