Separating run-dependent mapping data from data, which are not
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCrateConfig.cxx
CommitLineData
92c23b09 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
26#include "AliMUONTriggerCrateConfig.h"
27
28#include "AliLog.h"
29
30#include <Riostream.h>
31
32/// \cond CLASSIMP
33ClassImp(AliMUONTriggerCrateConfig)
34/// \endcond
35
92c23b09 36 //______________________________________________________________________________
5cc125b2 37AliMUONTriggerCrateConfig::AliMUONTriggerCrateConfig(AliMpTriggerCrate* mpTriggerCrate)
38 : TObject(),
39 fMpCrate(mpTriggerCrate),
92c23b09 40 fMask(0),
41 fMode(0),
5cc125b2 42 fCoinc(0)
92c23b09 43{
44/// Standard constructor for Shuttle + DA
45}
46
47
48 //______________________________________________________________________________
5cc125b2 49AliMUONTriggerCrateConfig::AliMUONTriggerCrateConfig(TRootIOCtor* ioCtor)
50 : TObject(),
51 fMpCrate(0x0),
52 fMask(0),
53 fMode(0),
54 fCoinc(0)
92c23b09 55{
56/// Standard constructor for Shuttle + DA
57}
58
59
60//______________________________________________________________________________
61AliMUONTriggerCrateConfig::~AliMUONTriggerCrateConfig()
62{
63/// Destructor
64}
65
66//
67// public methods
68//
69
70//______________________________________________________________________________
71Bool_t AliMUONTriggerCrateConfig::AddLocalBoard(Int_t localBoardId)
72{
5cc125b2 73/// Add local boards with given detElemId.
74/// Return true if the local board was added
75
76 return fMpCrate->AddLocalBoard(localBoardId);
92c23b09 77}
78
79
80//______________________________________________________________________________
81Int_t AliMUONTriggerCrateConfig::GetNofLocalBoards() const
82{
83/// Return the number of local board in this crate
84
5cc125b2 85 return fMpCrate->GetNofLocalBoards();
92c23b09 86}
87
88//______________________________________________________________________________
89Int_t AliMUONTriggerCrateConfig::GetLocalBoardId(Int_t index) const
90{
91/// Return the local board by index (in loop)
92
5cc125b2 93 return fMpCrate->GetLocalBoardId(index);
92c23b09 94}
95
96//______________________________________________________________________________
97Bool_t AliMUONTriggerCrateConfig::HasLocalBoard(Int_t localBoardId) const
98{
99/// Return true if crate has local boardwith given localBoardId
100
5cc125b2 101 return fMpCrate->HasLocalBoard(localBoardId);
92c23b09 102}
103