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

MucRecHitID Class Reference

#include <MucRecHitID.h>

List of all members.

Public Member Functions

int Gap () const
 Get gap number. (0-8).
int Gap () const
 Get gap number. (0-8).
int Hit () const
 Get hit number within this gap. (starts at 0).
int Hit () const
 Get hit number within this gap. (starts at 0).
 MucRecHitID (const MucRecHitID &source)
 Copy constructor.
 MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Constructor.
 MucRecHitID (const MucRecHitID &source)
 Copy constructor.
 MucRecHitID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Constructor.
bool operator!= (const MucRecHitID &other) const
bool operator!= (const MucRecHitID &other) const
bool operator< (const MucRecHitID &other) const
bool operator< (const MucRecHitID &other) const
MucRecHitIDoperator= (const MucRecHitID &orig)
 Assignment operator.
MucRecHitIDoperator= (const MucRecHitID &orig)
 Assignment operator.
bool operator== (const MucRecHitID &other) const
 Comparison operators.
bool operator== (const MucRecHitID &other) const
 Comparison operators.
bool operator> (const MucRecHitID &other) const
bool operator> (const MucRecHitID &other) const
int Part () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int Part () const
 Get part number. (0-east cap, 1-barrel, 2-west cap).
int Seg () const
 Get seg number. (0-7).
int Seg () const
 Get seg number. (0-7).
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Set the identifier.
void SetID (const int part=-1, const int seg=-1, const int gap=-1, const int hit=-1)
 Set the identifier.
 ~MucRecHitID ()
 Destructor.
 ~MucRecHitID ()
 Destructor.

Private Attributes

int m_Gap
int m_Hit
int m_Part
int m_Seg


Detailed Description

Class BesMUCRecRawHit contains the four numbers necessary to identify a hit uniquely: part, seg, gap, strip, and hit within the gap.

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


Constructor & Destructor Documentation

MucRecHitID::MucRecHitID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  hit = -1
 

Constructor.

00021   : m_Part(part), m_Seg(seg), m_Gap(gap), m_Hit(hit)
00022 { }

MucRecHitID::MucRecHitID const MucRecHitID source  ) 
 

Copy constructor.

00026   : m_Part(source.m_Part),
00027     m_Seg(source.m_Seg),
00028     m_Gap(source.m_Gap),
00029     m_Hit(source.m_Hit)
00030 { }

MucRecHitID::~MucRecHitID  ) 
 

Destructor.

00034 { }

MucRecHitID::MucRecHitID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  hit = -1
 

Constructor.

MucRecHitID::MucRecHitID const MucRecHitID source  ) 
 

Copy constructor.

MucRecHitID::~MucRecHitID  ) 
 

Destructor.


Member Function Documentation

int MucRecHitID::Gap  )  const [inline]
 

Get gap number. (0-8).

00071 { return m_Gap; }

int MucRecHitID::Gap  )  const [inline]
 

Get gap number. (0-8).

00071 { return m_Gap; }

int MucRecHitID::Hit  )  const [inline]
 

Get hit number within this gap. (starts at 0).

00074 { return m_Hit; }

int MucRecHitID::Hit  )  const [inline]
 

Get hit number within this gap. (starts at 0).

00074 { return m_Hit; }

bool MucRecHitID::operator!= const MucRecHitID other  )  const
 

bool MucRecHitID::operator!= const MucRecHitID other  )  const
 

00064 {
00065   if ( m_Part == other.m_Part && 
00066        m_Seg  == other.m_Seg  &&
00067        m_Gap  == other.m_Gap  &&
00068        m_Hit  == other.m_Hit )
00069     return false;
00070   else 
00071     return true;
00072 }

bool MucRecHitID::operator< const MucRecHitID other  )  const
 

bool MucRecHitID::operator< const MucRecHitID other  )  const
 

00076 {
00077   if (m_Part < other.m_Part ||
00078       (m_Part == other.m_Part && m_Seg <  other.m_Seg) ||
00079       (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap <  other.m_Gap) ||
00080       (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap && m_Hit < other.m_Hit)) {
00081     return true;
00082   }
00083   else {
00084     return false;
00085   }
00086 }

MucRecHitID& MucRecHitID::operator= const MucRecHitID orig  ) 
 

Assignment operator.

MucRecHitID & MucRecHitID::operator= const MucRecHitID orig  ) 
 

Assignment operator.

00039 {
00040   // Assignment operator.
00041   if (this != &orig) {             // Watch out for self-assignment!
00042     m_Part = orig.m_Part;
00043     m_Seg  = orig.m_Seg;
00044     m_Gap  = orig.m_Gap;
00045     m_Hit  = orig.m_Hit;
00046   }
00047   return *this;
00048 }

bool MucRecHitID::operator== const MucRecHitID other  )  const
 

Comparison operators.

bool MucRecHitID::operator== const MucRecHitID other  )  const
 

Comparison operators.

00052 {
00053   if ( m_Part == other.m_Part && 
00054        m_Seg  == other.m_Seg  &&
00055        m_Gap  == other.m_Gap  &&
00056        m_Hit  == other.m_Hit )
00057     return true;
00058   else 
00059     return false;
00060 }

bool MucRecHitID::operator> const MucRecHitID other  )  const
 

bool MucRecHitID::operator> const MucRecHitID other  )  const
 

00090 {
00091   if (m_Part > other.m_Part ||
00092       (m_Part == other.m_Part && m_Seg >  other.m_Seg) ||
00093       (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap >  other.m_Gap) ||
00094       (m_Part == other.m_Part && m_Seg == other.m_Seg && m_Gap == other.m_Gap && m_Hit > other.m_Hit)) {
00095     return true;
00096   }
00097   else {
00098     return false;
00099   }
00100 }

int MucRecHitID::Part  )  const [inline]
 

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

00065 { return m_Part; }

int MucRecHitID::Part  )  const [inline]
 

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

00065 { return m_Part; }

int MucRecHitID::Seg  )  const [inline]
 

Get seg number. (0-7).

00068 { return m_Seg; }

int MucRecHitID::Seg  )  const [inline]
 

Get seg number. (0-7).

00068 { return m_Seg; }

void MucRecHitID::SetID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  hit = -1
 

Set the identifier.

void MucRecHitID::SetID const int  part = -1,
const int  seg = -1,
const int  gap = -1,
const int  hit = -1
 

Set the identifier.

00108 {
00109   m_Part = part;
00110   m_Seg  = seg;
00111   m_Gap  = gap;
00112   m_Hit  = hit;
00113 }


Member Data Documentation

int MucRecHitID::m_Gap [private]
 

int MucRecHitID::m_Hit [private]
 

int MucRecHitID::m_Part [private]
 

int MucRecHitID::m_Seg [private]
 


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