#include <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) |
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.
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.
{ 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.
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 | ||
) |
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().
{ m_PatternNum = pattern.getNumber(); m_PtCode = pattern.getCode(); m_Sign = pattern.getSign(); m_Quality = quality; m_FiredPlanes = firedPlanes; }
void RPCPacMuon::setPatternNum | ( | int | patternNum | ) |
Reimplemented from RPCMuon.
Definition at line 25 of file RPCPacMuon.cc.
References RPCMuon::m_PatternNum.
{ m_PatternNum = patternNum; }