CMS 3D CMS Logo

Public Member Functions

RPCPacMuon Class Reference

#include <RPCPacMuon.h>

Inheritance diagram for RPCPacMuon:
RPCMuon

List of all members.

Public Member Functions

bool operator< (const RPCPacMuon &pacMuon) const
bool operator== (const RPCPacMuon &pacMuon) const
bool operator> (const RPCPacMuon &pacMuon) const
 RPCPacMuon (const RPCPattern &pattern, int quality, unsigned short firedPlanes)
 Constructor.
 RPCPacMuon ()
 Default constructor. No muon.
void setAll (const RPCPattern &pattern, int quality, unsigned short firedPlanes)
void setPatternNum (int patternNum)

Detailed Description

Muon candidate found by m_PAC for one LogCone. Containes the compare operators used during sorting inside the m_PAC. The m_PAC sets for muon its cone coordinates.

Author:
Karol Bunkowski (Warsaw)

Definition at line 15 of file RPCPacMuon.h.


Constructor & Destructor Documentation

RPCPacMuon::RPCPacMuon ( )

Default constructor. No muon.

Definition at line 10 of file RPCPacMuon.cc.

: RPCMuon() {}
RPCPacMuon::RPCPacMuon ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)

Constructor.

Definition at line 13 of file RPCPacMuon.cc.

                                                                                        :
    RPCMuon(pattern.getCode(), quality, pattern.getSign(), pattern.getNumber(), firedPlanes) 
    { }

Member Function Documentation

bool RPCPacMuon::operator< ( const RPCPacMuon pacMuon) const

Definition at line 29 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

                                                           {
  if( this->m_Quality < pacMuon.m_Quality)
    return true;
  else if( this->m_Quality > pacMuon.m_Quality)
    return false;
  else { //==
    if( this->m_PtCode < pacMuon.m_PtCode)
      return true;
    else if( this->m_PtCode > pacMuon.m_PtCode)
      return false;
    else { //==
      //if( this->m_Sign < pacMuon.m_Sign)
      if( this->m_Sign > pacMuon.m_Sign)
        return true;
      else
        return false;
    }
  }
}
bool RPCPacMuon::operator== ( const RPCPacMuon pacMuon) const

Definition at line 67 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

                                                            {
  if( this->m_Quality == pacMuon.m_Quality &&
      this->m_PtCode == pacMuon.m_PtCode &&
      this->m_Sign == pacMuon.m_Sign)
    return true;
  else
    return false;
}
bool RPCPacMuon::operator> ( const RPCPacMuon pacMuon) const

Definition at line 49 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

                                                           {
  if( this->m_Quality > pacMuon.m_Quality)
    return true;
  else if( this->m_Quality < pacMuon.m_Quality)
    return false;
  else { //==
    if( this->m_PtCode > pacMuon.m_PtCode)
      return true;
    else if( this->m_PtCode < pacMuon.m_PtCode)
      return false;
    else { //==
      if( this->m_Sign < pacMuon.m_Sign)
        return true;
      else
        return false;
    }
  }
}
void RPCPacMuon::setAll ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)
void RPCPacMuon::setPatternNum ( int  patternNum)

Reimplemented from RPCMuon.

Definition at line 25 of file RPCPacMuon.cc.

References RPCMuon::m_PatternNum.

                                             {
  m_PatternNum = patternNum;
}