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