AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerCrate.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
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  **************************************************************************/
15 
16 /* $Id$ */
17 
18 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
26 
27 #include <TObjArray.h>
28 
29 #include "AliMUONTriggerBoard.h"
30 #include "AliMUONTriggerCrate.h"
31 
33 
34 //___________________________________________
36  : fNslots(0),
37  fNboards(0),
38  fBoards(0x0),
39  fSourceFileName(0)
40 {
42 }
43 
44 //___________________________________________
46 {
48 
49  delete fBoards;
50 }
51 
52 //___________________________________________
53 AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) :
54  TNamed(name,"Regional trigger crate"),
55  fNslots(n),
56  fNboards(0),
57  fBoards(new TObjArray(fNslots)),
58  fSourceFileName(0)
59 {
61  fBoards->SetOwner(kTRUE);
62 }
63 
64 //___________________________________________
66 {
68  fBoards->AddAt(board,i);
69  fNboards++;
70 }
71 
#define TObjArray
virtual void AddBoard(AliMUONTriggerBoard *board, Int_t i)
Trigger board base class.
ClassImp(AliMUONTriggerCrate) AliMUONTriggerCrate
Int_t fNboards
Number of boards.
TObjArray * fBoards
Pointer to board objects.