BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
MucChain Class Reference

#include <MucChain.h>

Public Member Functions

 MucChain (int id, string name, int module, int socket, int fecOrder)
 
 ~MucChain ()
 
int GetID ()
 
int GetPart ()
 
int GetSegment ()
 
int GetFecTotal ()
 
int GetFecOrder ()
 
string GetName ()
 
vector< MucFecGetFecVect ()
 
MucFecGetFec (int fecId)
 
int GetFecLayerID (int fecID)
 
int GetFirstStripID (int fecID)
 
void ReMap (string name, int module, int socket)
 
void SetFecOrder (int fecOrder)
 
void SetStripOrder (int stripOrder)
 
void SetStripOrder (int fecID, int stripOrder)
 
void ArrayInvert (int *array, int number)
 
 MucChain (int id, string name, int module, int socket, int fecOrder)
 
 ~MucChain ()
 
int GetID ()
 
int GetPart ()
 
int GetSegment ()
 
int GetFecTotal ()
 
int GetFecOrder ()
 
string GetName ()
 
vector< MucFecGetFecVect ()
 
MucFecGetFec (int fecId)
 
int GetFecLayerID (int fecID)
 
int GetFirstStripID (int fecID)
 
void ReMap (string name, int module, int socket)
 
void SetFecOrder (int fecOrder)
 
void SetStripOrder (int stripOrder)
 
void SetStripOrder (int fecID, int stripOrder)
 
void ArrayInvert (int *array, int number)
 

Detailed Description

Constructor & Destructor Documentation

◆ MucChain() [1/2]

MucChain::MucChain ( int  id,
string  name,
int  module,
int  socket,
int  fecOrder 
)

◆ ~MucChain() [1/2]

MucChain::~MucChain ( )

Definition at line 31 of file MucChain.cxx.

32{
33// cout << "MucChain:: Destructor()." <<endl;
34 delete []m_FirstStripID;
35 delete []m_FecLayerID;
36 delete []m_StripOrder;
37
38 m_FecVect.clear();
39}

◆ MucChain() [2/2]

MucChain::MucChain ( int  id,
string  name,
int  module,
int  socket,
int  fecOrder 
)

◆ ~MucChain() [2/2]

MucChain::~MucChain ( )

Member Function Documentation

◆ ArrayInvert() [1/2]

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}

◆ ArrayInvert() [2/2]

void MucChain::ArrayInvert ( int *  array,
int  number 
)

◆ GetFec() [1/2]

MucFec * MucChain::GetFec ( int  fecId)
inline

Definition at line 59 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

59{ return &m_FecVect[fecId]; }

Referenced by MucMappingAlg::finalize().

◆ GetFec() [2/2]

MucFec * MucChain::GetFec ( int  fecId)
inline

Definition at line 59 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

59{ return &m_FecVect[fecId]; }

◆ GetFecLayerID() [1/2]

int MucChain::GetFecLayerID ( int  fecID)
inline

Definition at line 60 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

60{ return m_FecLayerID[fecID]; }

◆ GetFecLayerID() [2/2]

int MucChain::GetFecLayerID ( int  fecID)
inline

Definition at line 60 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

60{ return m_FecLayerID[fecID]; }

◆ GetFecOrder() [1/2]

int MucChain::GetFecOrder ( )
inline

Definition at line 55 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

55{ return m_FecOrder;}

◆ GetFecOrder() [2/2]

int MucChain::GetFecOrder ( )
inline

Definition at line 55 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

55{ return m_FecOrder;}

◆ GetFecTotal() [1/2]

int MucChain::GetFecTotal ( )
inline

Definition at line 54 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

54{ return m_FecTotal;}

Referenced by MucMappingAlg::finalize().

◆ GetFecTotal() [2/2]

int MucChain::GetFecTotal ( )
inline

Definition at line 54 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

54{ return m_FecTotal;}

◆ GetFecVect() [1/2]

vector< MucFec > MucChain::GetFecVect ( )
inline

Definition at line 57 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

57{ return m_FecVect; }

◆ GetFecVect() [2/2]

vector< MucFec > MucChain::GetFecVect ( )
inline

Definition at line 57 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

57{ return m_FecVect; }

◆ GetFirstStripID() [1/2]

int MucChain::GetFirstStripID ( int  fecID)
inline

Definition at line 61 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

61{ return m_FirstStripID[fecID]; }

◆ GetFirstStripID() [2/2]

int MucChain::GetFirstStripID ( int  fecID)
inline

Definition at line 61 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

61{ return m_FirstStripID[fecID]; }

◆ GetID() [1/2]

int MucChain::GetID ( )
inline

Definition at line 51 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

51{ return m_ID; }

◆ GetID() [2/2]

int MucChain::GetID ( )
inline

Definition at line 51 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

51{ return m_ID; }

◆ GetName() [1/2]

string MucChain::GetName ( )
inline

Definition at line 56 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

56{ return m_Name; }

◆ GetName() [2/2]

string MucChain::GetName ( )
inline

Definition at line 56 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

56{ return m_Name; }

◆ GetPart() [1/2]

int MucChain::GetPart ( )
inline

Definition at line 52 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

52{ return m_Part; }

◆ GetPart() [2/2]

int MucChain::GetPart ( )
inline

Definition at line 52 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

52{ return m_Part; }

◆ GetSegment() [1/2]

int MucChain::GetSegment ( )
inline

Definition at line 53 of file InstallArea/include/MucMappingAlg/MucMappingAlg/MucChain.h.

53{ return m_Segment; }

◆ GetSegment() [2/2]

int MucChain::GetSegment ( )
inline

Definition at line 53 of file Muc/MucMappingAlg/MucMappingAlg-00-00-02/MucMappingAlg/MucChain.h.

53{ return m_Segment; }

◆ ReMap() [1/2]

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}

◆ ReMap() [2/2]

void MucChain::ReMap ( string  name,
int  module,
int  socket 
)

◆ SetFecOrder() [1/2]

void MucChain::SetFecOrder ( int  fecOrder)

Definition at line 51 of file MucChain.cxx.

52{
53 m_FecOrder = fecOrder;
54
55 MucChain::InitFecVect();
56}

◆ SetFecOrder() [2/2]

void MucChain::SetFecOrder ( int  fecOrder)

◆ SetStripOrder() [1/4]

void MucChain::SetStripOrder ( int  fecID,
int  stripOrder 
)

Definition at line 70 of file MucChain.cxx.

71{
72 // Decode FecVect member number by fecID
73 int i = m_FecOrder * ( fecID - ((1-m_FecOrder)/2)*(m_FecTotal - 1) );
74
75 m_FecVect[i].SetStripOrder( stripOrder );
76}

◆ SetStripOrder() [2/4]

void MucChain::SetStripOrder ( int  fecID,
int  stripOrder 
)

◆ SetStripOrder() [3/4]

void MucChain::SetStripOrder ( int  stripOrder)

Definition at line 59 of file MucChain.cxx.

60{
61// cout << "MucChain:: SetStripOrder( int )." << endl;
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}

◆ SetStripOrder() [4/4]

void MucChain::SetStripOrder ( int  stripOrder)

The documentation for this class was generated from the following files: