#include <MucChain.h>
Definition at line 45 of file MucChain.h.
◆ MucChain()
MucChain::MucChain |
( |
int | id, |
|
|
string | name, |
|
|
int | module, |
|
|
int | socket, |
|
|
int | fecOrder ) |
Definition at line 17 of file MucChain.cxx.
18{
19
20
21 m_ID = id;
22 m_Name = name;
23 m_Module = module;
24 m_Socket = socket;
25 m_FecOrder = fecOrder;
26
27 Mapping();
28}
◆ ~MucChain()
Definition at line 31 of file MucChain.cxx.
32{
33
34 delete []m_FirstStripID;
35 delete []m_FecLayerID;
36 delete []m_StripOrder;
37
38 m_FecVect.clear();
39}
◆ ArrayInvert()
void MucChain::ArrayInvert |
( |
int * | array, |
|
|
int | number ) |
Definition at line 78 of file MucChain.cxx.
79{
80 int temp;
81 for(int i=0; i<number/2; i++)
82 {
83 temp = array[i];
84 array[i] = array[number-1-i];
85 array[number-1-i] = temp;
86 }
87}
◆ GetFec()
MucFec * MucChain::GetFec |
( |
int | fecId | ) |
|
|
inline |
◆ GetFecLayerID()
int MucChain::GetFecLayerID |
( |
int | fecID | ) |
|
|
inline |
Definition at line 60 of file MucChain.h.
60{ return m_FecLayerID[fecID]; }
◆ GetFecOrder()
int MucChain::GetFecOrder |
( |
| ) |
|
|
inline |
◆ GetFecTotal()
int MucChain::GetFecTotal |
( |
| ) |
|
|
inline |
◆ GetFecVect()
vector< MucFec > MucChain::GetFecVect |
( |
| ) |
|
|
inline |
◆ GetFirstStripID()
int MucChain::GetFirstStripID |
( |
int | fecID | ) |
|
|
inline |
Definition at line 61 of file MucChain.h.
61{ return m_FirstStripID[fecID]; }
◆ GetID()
◆ GetName()
string MucChain::GetName |
( |
| ) |
|
|
inline |
◆ GetPart()
int MucChain::GetPart |
( |
| ) |
|
|
inline |
◆ GetSegment()
int MucChain::GetSegment |
( |
| ) |
|
|
inline |
◆ ReMap()
void MucChain::ReMap |
( |
string | name, |
|
|
int | module, |
|
|
int | socket ) |
Definition at line 42 of file MucChain.cxx.
43{
44 m_Name = name;
45 m_Module = module;
46 m_Socket = socket;
47
48 MucChain::Mapping();
49}
◆ SetFecOrder()
void MucChain::SetFecOrder |
( |
int | fecOrder | ) |
|
Definition at line 51 of file MucChain.cxx.
52{
53 m_FecOrder = fecOrder;
54
55 MucChain::InitFecVect();
56}
◆ SetStripOrder() [1/2]
void MucChain::SetStripOrder |
( |
int | fecID, |
|
|
int | stripOrder ) |
Definition at line 70 of file MucChain.cxx.
71{
72
73 int i = m_FecOrder * ( fecID - ((1-m_FecOrder)/2)*(m_FecTotal - 1) );
74
75 m_FecVect[i].SetStripOrder( stripOrder );
76}
◆ SetStripOrder() [2/2]
void MucChain::SetStripOrder |
( |
int | stripOrder | ) |
|
Definition at line 59 of file MucChain.cxx.
60{
61
62 int order;
63 if( stripOrder == 0 ) order = DEFAULT_STRIP_ORDER;
64 else order = stripOrder;
65
66 for(int i=0; i<m_FecTotal; i++)
67 m_StripOrder[ i ] = order;
68}
The documentation for this class was generated from the following files: