]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpTriggerCrate.h
Fix for the problem during PbPb run of Nov 2010 (Indra)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTriggerCrate.h
CommitLineData
30f77987 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4// $MpId: $
5
101ae099 6/// \ingroup mptrigger
30f77987 7/// \class AliMpTriggerCrate
8/// \brief The class defines the properties of trigger crate
9///
10/// \author Ch. Finck, Subatech Nantes
11
12#ifndef ALI_MP_TRIGGER_CRATE_H
13#define ALI_MP_TRIGGER_CRATE_H
14
15#include "AliMpArrayI.h"
16
17#include <TNamed.h>
18#include <TString.h>
19
20class AliMpTriggerCrate : public TNamed {
21
22 public:
92c23b09 23 AliMpTriggerCrate(const Char_t* name, UShort_t Id);
30f77987 24 AliMpTriggerCrate(TRootIOCtor* /*ioCtor*/);
25 virtual ~AliMpTriggerCrate();
26
27 static TString GenerateName(Int_t crateId, Int_t ddlId, Int_t nodDdls);
28
29 // methods
30 Bool_t AddLocalBoard(Int_t localBoardId);
31
ba9a8543 32 /// get methods
30f77987 33 Int_t GetDdlId() const;
b00a2ea5 34 UShort_t GetId() const;
30f77987 35 Int_t GetNofLocalBoards() const;
36 Int_t GetLocalBoardId(Int_t index) const;
37 Bool_t HasLocalBoard(Int_t localBoardId) const;
38
ba9a8543 39 /// set methods
40 void SetDdlId(Int_t ddl) {fDdlId = ddl;}
41
30f77987 42 private:
43 /// Not implemented
44 AliMpTriggerCrate();
45 /// Not implemented
46 AliMpTriggerCrate(const AliMpTriggerCrate& rhs);
47 /// Not implemented
48 AliMpTriggerCrate& operator=(const AliMpTriggerCrate& rhs);
49
b00a2ea5 50 // data members
51 UShort_t fId; ///< crate number
52 Int_t fDdlId; ///< DDL to which this bus patch is connected
30f77987 53 AliMpArrayI fLocalBoard; ///< local board connected to this crate
b00a2ea5 54
92c23b09 55 ClassDef(AliMpTriggerCrate,3) // The class collectiong electronics properties of DDL
30f77987 56};
57
58// inline functions
59
60
61/// Return the Ddl Id
62inline Int_t AliMpTriggerCrate::GetDdlId() const
63{ return fDdlId; }
64
b00a2ea5 65/// Return Id
66inline UShort_t AliMpTriggerCrate::GetId() const
67{ return fId; }
68
b00a2ea5 69
70#endif //ALI_MP_TRIGGER__CRATE_H
30f77987 71
72
73
74
75
76
77
78
79
80
81
82
83
84