#include <L1Trigger/RPCTrigger/interface/RPCPacMuon.h>
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) |
Containes the compare operators used during sorting inside the m_PAC. The m_PAC sets for muon its cone coordinates.
Definition at line 15 of file RPCPacMuon.h.
RPCPacMuon::RPCPacMuon | ( | ) |
RPCPacMuon::RPCPacMuon | ( | const RPCPattern & | pattern, | |
int | quality, | |||
unsigned short | firedPlanes | |||
) |
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.
00029 { 00030 if( this->m_Quality < pacMuon.m_Quality) 00031 return true; 00032 else if( this->m_Quality > pacMuon.m_Quality) 00033 return false; 00034 else { //== 00035 if( this->m_PtCode < pacMuon.m_PtCode) 00036 return true; 00037 else if( this->m_PtCode > pacMuon.m_PtCode) 00038 return false; 00039 else { //== 00040 if( this->m_Sign < pacMuon.m_Sign) 00041 return true; 00042 else 00043 return false; 00044 } 00045 } 00046 }
bool RPCPacMuon::operator== | ( | const RPCPacMuon & | pacMuon | ) | const |
Definition at line 66 of file RPCPacMuon.cc.
References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.
00066 { 00067 if( this->m_Quality == pacMuon.m_Quality && 00068 this->m_PtCode == pacMuon.m_PtCode && 00069 this->m_Sign == pacMuon.m_Sign) 00070 return true; 00071 else 00072 return false; 00073 }
bool RPCPacMuon::operator> | ( | const RPCPacMuon & | pacMuon | ) | const |
Definition at line 48 of file RPCPacMuon.cc.
References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.
00048 { 00049 if( this->m_Quality > pacMuon.m_Quality) 00050 return true; 00051 else if( this->m_Quality < pacMuon.m_Quality) 00052 return false; 00053 else { //== 00054 if( this->m_PtCode > pacMuon.m_PtCode) 00055 return true; 00056 else if( this->m_PtCode < pacMuon.m_PtCode) 00057 return false; 00058 else { //== 00059 if( this->m_Sign > pacMuon.m_Sign) 00060 return true; 00061 else 00062 return false; 00063 } 00064 } 00065 }
void RPCPacMuon::setAll | ( | const RPCPattern & | pattern, | |
int | quality, | |||
unsigned short | firedPlanes | |||
) |
Definition at line 17 of file RPCPacMuon.cc.
References RPCPattern::getCode(), RPCPattern::getNumber(), RPCPattern::getSign(), RPCMuon::m_FiredPlanes, RPCMuon::m_PatternNum, RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.
Referenced by RPCPac::runEnergeticPatternsGroups().
00017 { 00018 m_PatternNum = pattern.getNumber(); 00019 m_PtCode = pattern.getCode(); 00020 m_Sign = pattern.getSign(); 00021 m_Quality = quality; 00022 m_FiredPlanes = firedPlanes; 00023 }
Reimplemented from RPCMuon.
Definition at line 25 of file RPCPacMuon.cc.
References RPCMuon::m_PatternNum.
00025 { 00026 m_PatternNum = patternNum; 00027 }