BOSS 7.1.1
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)
 

Detailed Description

Definition at line 44 of file MucChain.h.

Constructor & Destructor Documentation

◆ MucChain()

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

Definition at line 17 of file MucChain.cxx.

18{
19 // cout << "MucChain:: Create chain : " << endl;
20 // cout << "ID: " << id << "\tModule: " << module << "\tSocket: " << socket << "\tFecOrder: " << fecOrder << endl;
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()

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}

Member Function Documentation

◆ ArrayInvert()

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

Definition at line 75 of file MucChain.cxx.

76{
77 int temp;
78 for(int i=0; i<number/2; i++)
79 {
80 temp = array[i];
81 array[i] = array[number-1-i];
82 array[number-1-i] = temp;
83 }
84}

◆ GetFec()

MucFec * MucChain::GetFec ( int fecId)
inline

Definition at line 58 of file MucChain.h.

58{ return &m_FecVect[fecId]; }

Referenced by MucMappingAlg::finalize().

◆ GetFecLayerID()

int MucChain::GetFecLayerID ( int fecID)
inline

Definition at line 59 of file MucChain.h.

59{ return m_FecLayerID[fecID]; }

◆ GetFecOrder()

int MucChain::GetFecOrder ( )
inline

Definition at line 54 of file MucChain.h.

54{ return m_FecOrder; }

◆ GetFecTotal()

int MucChain::GetFecTotal ( )
inline

Definition at line 53 of file MucChain.h.

53{ return m_FecTotal; }

Referenced by MucMappingAlg::finalize().

◆ GetFecVect()

vector< MucFec > MucChain::GetFecVect ( )
inline

Definition at line 56 of file MucChain.h.

56{ return m_FecVect; }

◆ GetFirstStripID()

int MucChain::GetFirstStripID ( int fecID)
inline

Definition at line 60 of file MucChain.h.

60{ return m_FirstStripID[fecID]; }

◆ GetID()

int MucChain::GetID ( )
inline

Definition at line 50 of file MucChain.h.

50{ return m_ID; }

◆ GetName()

string MucChain::GetName ( )
inline

Definition at line 55 of file MucChain.h.

55{ return m_Name; }

◆ GetPart()

int MucChain::GetPart ( )
inline

Definition at line 51 of file MucChain.h.

51{ return m_Part; }

◆ GetSegment()

int MucChain::GetSegment ( )
inline

Definition at line 52 of file MucChain.h.

52{ return m_Segment; }

◆ 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 MucChain::InitFecVect();
55}

◆ SetStripOrder() [1/2]

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

Definition at line 68 of file MucChain.cxx.

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

◆ SetStripOrder() [2/2]

void MucChain::SetStripOrder ( int stripOrder)

Definition at line 58 of file MucChain.cxx.

59{
60 // cout << "MucChain:: SetStripOrder( int )." << endl;
61 int order;
62 if( stripOrder == 0 ) order = DEFAULT_STRIP_ORDER;
63 else order = stripOrder;
64
65 for(int i=0; i<m_FecTotal; i++) m_StripOrder[ i ] = order;
66}

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