AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerCrateConfig.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 // $MpId: AliMpTrigger.cxx,v 1.4 2006/05/24 13:58:52 ivana Exp $
18 
19 //-----------------------------------------------------------------------------
20 // Class AliMUONTriggerCrateConfig
21 // --------------------
22 // The class defines the configuration of trigger crate
23 // Author: Ch. Finck, Subatech Nantes
24 //-----------------------------------------------------------------------------
25 
27 
28 #include "AliLog.h"
29 
30 #include <Riostream.h>
31 
35 
36  //______________________________________________________________________________
38  : TObject(),
39  fMpCrate(mpTriggerCrate),
40  fMask(0),
41  fMode(0),
42  fCoinc(0),
43  fId(0),
44  fLocalBoard()
45 {
47 
48  if ( mpTriggerCrate ) {
49  fId = mpTriggerCrate->GetId();
50  for ( Int_t i=0; i<mpTriggerCrate->GetNofLocalBoards(); ++i ) {
51  fLocalBoard.Add(mpTriggerCrate->GetLocalBoardId(i));
52  }
53  }
54 }
55 
56 
57  //______________________________________________________________________________
59  : TObject(),
60  fMpCrate(0x0),
61  fMask(0),
62  fMode(0),
63  fCoinc(0),
64  fId(0),
65  fLocalBoard(ioCtor)
66 {
68 }
69 
70 
71 //______________________________________________________________________________
73 {
75 }
76 
77 //
78 // public methods
79 //
80 
81 //______________________________________________________________________________
82 Bool_t AliMUONTriggerCrateConfig::AddLocalBoard(Int_t localBoardId)
83 {
86 
87  fLocalBoard.Add(localBoardId);
88  return fMpCrate->AddLocalBoard(localBoardId);
89 }
90 
91 
92 //______________________________________________________________________________
94 {
96 
97  return fMpCrate->GetNofLocalBoards();
98 }
99 
100 //______________________________________________________________________________
102 {
104 
105  return fMpCrate->GetLocalBoardId(index);
106 }
107 
108 //______________________________________________________________________________
109 Bool_t AliMUONTriggerCrateConfig::HasLocalBoard(Int_t localBoardId) const
110 {
112 
113  return fMpCrate->HasLocalBoard(localBoardId);
114 }
115 
116 
117 //______________________________________________________________________________
119 {
122 
123  return fLocalBoard.GetSize();
124 }
125 //______________________________________________________________________________
127 {
130 
131  return fLocalBoard.GetValue(index);
132 }
The class defines the configuration of trigger crate.
AliMpArrayI fLocalBoard
local board connected to this crate
Int_t GetSize() const
Int_t GetLocalBoardIdOld(Int_t index) const
The class defines the properties of trigger crate.
Int_t GetLocalBoardId(Int_t index) const
Bool_t Add(Int_t value, Bool_t warn=kTRUE)
Definition: AliMpArrayI.cxx:97
Bool_t AddLocalBoard(Int_t localBoardId)
UShort_t GetId() const
Return Id.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
Int_t GetNofLocalBoards() const
AliMUONTriggerCrateConfig()
Not implemented.
Bool_t HasLocalBoard(Int_t localBoardId) const
Int_t GetLocalBoardId(Int_t index) const
AliMpTriggerCrate * fMpCrate
mapping crate
Bool_t AddLocalBoard(Int_t localBoardId)
Int_t GetValue(Int_t index) const
Bool_t HasLocalBoard(Int_t localBoardId) const