Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MucSoftID Class Reference

#include <MucSoftID.h>

List of all members.

Public Member Functions

int GetGap () const
 Get gap number. (barrel 0-8, cap 0-7).
int GetGap () const
 Get gap number. (barrel 0-8, cap 0-7).
int GetPart () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int GetPart () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int GetSeg () const
 Get segment number. (barrel 0-3, cap 0-7).
int GetSeg () const
 Get segment number. (barrel 0-3, cap 0-7).
int GetStrip () const
 Get strip number. (barrel 0-47 for gap0,2,4,6,8, 0-95 for gap1,3,5,7, endcap 0-63).
int GetStrip () const
 Get strip number. (barrel 0-47 for gap0,2,4,6,8, 0-95 for gap1,3,5,7, endcap 0-63).
 MucSoftID (const MucSoftID &orig)
 Copy constructor.
 MucSoftID (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
 MucSoftID (const MucSoftID &orig)
 Copy constructor.
 MucSoftID (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Constructor.
MucSoftIDoperator= (const MucSoftID &orig)
 Assignment constructor.
MucSoftIDoperator= (const MucSoftID &orig)
 Assignment constructor.
bool operator== (const MucSoftID &id) const
 Compare whehter two MucSoftID is equal.
bool operator== (const MucSoftID &id) const
 Compare whehter two MucSoftID is equal.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Set the sub-identifier.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int strip=-1)
 Set the sub-identifier.
 ~MucSoftID ()
 Destructor.
 ~MucSoftID ()
 Destructor.

Static Public Attributes

const int m_kGapInPart [m_kPart] = {8, 9, 8}
 Number of gaps in a segment of part.
const int m_kGapInSegMax = 9
 Number of gaps in a segment max.
const int m_kGapTotal = MucSoftID::m_kGapInSegMax * MucSoftID::m_kSegTotal
 Number of gaps total in the Bes MUC.
const int m_kHitInGapMax = MucSoftID::m_kStripInGapMax
 Maximum number of hits in a gap.
const int m_kHitTotalMax = MucSoftID::m_kStripTotal
 Maximum number of hits total in the Bes MUC.
const int m_kPart = 3
 Number of parts in Bes Muc.
const int m_kSegInPart [m_kPart] = {4, 8, 4}
 Number of segments in a part.
const int m_kSegInPartMax = 8
 Number of segments in a part max.
const int m_kSegTotal = MucSoftID::m_kSegInPartMax * MucSoftID::m_kPart
 Number of segments total in the Bes MUC.
const int m_kStripInGap [m_kPart][m_kGapInSegMax]
 Number of strips in a gap.
const int m_kStripInGapMax = 96
 Number of strips in a gap max.
const int m_kStripTotal = MucSoftID::m_kStripInGapMax * MucSoftID::m_kGapTotal
 Number of strips total in the Bes MUC.

Private Attributes

int m_Gap
int m_Part
int m_Seg
int m_Strip


Detailed Description

Class MucSoftID contains the "software" representation of a MUC channel address.

Indexing a Muc readout channel (in the "software" scheme) requires 4 numbers: {enumerate} the part number, m_Part (0-east cap, 1-barrel, 2-west cap) the seg number in a part, m_Seg (barrel 0-3, cap 0-7) the gap number in a segment, m_Gap (barrel 0-8, cap 0-7) the strip number in a gap, m_Strip (barrel gap 0,2,4,6,8 0-47 \ barrel gap 1,3,5,7 0-95 \ endcap 0-63) {enumerate}

Author:
Zhengyun You {mailto:youzy@pku.edu.cn}


Constructor & Destructor Documentation

MucSoftID::MucSoftID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Constructor.

00062   : m_Part(part),
00063     m_Seg(seg),
00064     m_Gap(gap),
00065     m_Strip(strip)
00066 {
00067   // Constructor.
00068 }

MucSoftID::MucSoftID const MucSoftID orig  ) 
 

Copy constructor.

00084   : m_Part(orig.m_Part),
00085     m_Seg(orig.m_Seg),
00086     m_Gap(orig.m_Gap),
00087     m_Strip(orig.m_Strip)
00088 {
00089   // Copy constructor.
00090 }

MucSoftID::~MucSoftID  )  [inline]
 

Destructor.

00079     { };

MucSoftID::MucSoftID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Constructor.

MucSoftID::MucSoftID const MucSoftID orig  ) 
 

Copy constructor.

MucSoftID::~MucSoftID  )  [inline]
 

Destructor.

00079     { };


Member Function Documentation

int MucSoftID::GetGap  )  const [inline]
 

Get gap number. (barrel 0-8, cap 0-7).

00091 { return m_Gap; }

int MucSoftID::GetGap  )  const [inline]
 

Get gap number. (barrel 0-8, cap 0-7).

00091 { return m_Gap; }

int MucSoftID::GetPart  )  const [inline]
 

Get part number. (0-east cap, 1-barrel, 2-west cap).

00085 { return m_Part; }

int MucSoftID::GetPart  )  const [inline]
 

Get part number. (0-east cap, 1-barrel, 2-west cap).

00085 { return m_Part; }

int MucSoftID::GetSeg  )  const [inline]
 

Get segment number. (barrel 0-3, cap 0-7).

00088 { return m_Seg; }

int MucSoftID::GetSeg  )  const [inline]
 

Get segment number. (barrel 0-3, cap 0-7).

00088 { return m_Seg; }

int MucSoftID::GetStrip  )  const [inline]
 

Get strip number. (barrel 0-47 for gap0,2,4,6,8, 0-95 for gap1,3,5,7, endcap 0-63).

00094 { return m_Strip; }

int MucSoftID::GetStrip  )  const [inline]
 

Get strip number. (barrel 0-47 for gap0,2,4,6,8, 0-95 for gap1,3,5,7, endcap 0-63).

00094 { return m_Strip; }

MucSoftID& MucSoftID::operator= const MucSoftID orig  ) 
 

Assignment constructor.

MucSoftID & MucSoftID::operator= const MucSoftID orig  ) 
 

Assignment constructor.

00072 {
00073   // Assignment operator.
00074   if (this != &orig) {             // Watch out for self-assignment!
00075     m_Part  = orig.m_Part;
00076     m_Seg   = orig.m_Seg;
00077     m_Gap   = orig.m_Gap;
00078     m_Strip = orig.m_Strip;
00079   }
00080   return *this;
00081 }

bool MucSoftID::operator== const MucSoftID id  )  const
 

Compare whehter two MucSoftID is equal.

bool MucSoftID::operator== const MucSoftID id  )  const
 

Compare whehter two MucSoftID is equal.

00094 {
00095   if( m_Part     == id.GetPart() 
00096       && m_Seg   == id.GetSeg() 
00097       && m_Gap   == id.GetGap() 
00098       && m_Strip == id.GetStrip() ) {
00099     return true;
00100   }
00101   else {
00102     return false;
00103   }
00104 }

void MucSoftID::SetID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Set the sub-identifier.

void MucSoftID::SetID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  strip = -1
 

Set the sub-identifier.

00111 {
00112   // Set the sub-identifier, m_GapID and m_StripID.
00113   m_Part  = part;
00114   m_Seg   = seg;
00115   m_Gap   = gap;
00116   m_Strip = strip;
00117 }


Member Data Documentation

int MucSoftID::m_Gap [private]
 

const int MucSoftID::m_kGapInPart = {8, 9, 8} [static]
 

Number of gaps in a segment of part.

const int MucSoftID::m_kGapInSegMax = 9 [static]
 

Number of gaps in a segment max.

const int MucSoftID::m_kGapTotal = MucSoftID::m_kGapInSegMax * MucSoftID::m_kSegTotal [static]
 

Number of gaps total in the Bes MUC.

const int MucSoftID::m_kHitInGapMax = MucSoftID::m_kStripInGapMax [static]
 

Maximum number of hits in a gap.

const int MucSoftID::m_kHitTotalMax = MucSoftID::m_kStripTotal [static]
 

Maximum number of hits total in the Bes MUC.

const int MucSoftID::m_kPart = 3 [static]
 

Number of parts in Bes Muc.

const int MucSoftID::m_kSegInPart = {4, 8, 4} [static]
 

Number of segments in a part.

const int MucSoftID::m_kSegInPartMax = 8 [static]
 

Number of segments in a part max.

const int MucSoftID::m_kSegTotal = MucSoftID::m_kSegInPartMax * MucSoftID::m_kPart [static]
 

Number of segments total in the Bes MUC.

const int MucSoftID::m_kStripInGap [static]
 

Initial value:

 { {64, 64, 64, 64, 64, 64, 64, 64},
                                                                            {48, 96, 48, 96, 48, 96, 48, 96, 48},
                                                                            {64, 64, 64, 64, 64, 64, 64, 64} }
Number of strips in a gap.

const int MucSoftID::m_kStripInGapMax = 96 [static]
 

Number of strips in a gap max.

const int MucSoftID::m_kStripTotal = MucSoftID::m_kStripInGapMax * MucSoftID::m_kGapTotal [static]
 

Number of strips total in the Bes MUC.

int MucSoftID::m_Part [private]
 

int MucSoftID::m_Seg [private]
 

int MucSoftID::m_Strip [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:36:50 2011 for BOSS6.5.5 by  doxygen 1.3.9.1